K
K
Katerina92_lomova2021-11-23 08:10:05
Python
Katerina92_lomova, 2021-11-23 08:10:05

How to link to GitLab in code (Python language)?

I have a code that specifies SQL database data, but I need the code to take this data from a yaml file hosted on GitLab.

Please tell me how this can be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
calculator212, 2021-11-23
@calculator212

Download a file from gitlab and take data from it?

P
Python Newbie, 2021-11-23
@Levman5

Usually on such sites there is a raw button for files (as on github). This opens text files without unnecessary elements (stupidly text). You can make a request to this page and get this code, take data from it and connect to the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question