summaryrefslogtreecommitdiff
path: root/gitlab/const.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-01-31 11:10:41 +0100
committerNejc Habjan <hab.nejc@gmail.com>2021-01-31 17:56:53 +0100
commit4bb201b92ef0dcc14a7a9c83e5600ba5b118fc33 (patch)
treebb6a33482b65595d372f6508974bdee7f45da935 /gitlab/const.py
parent48cb89bad043f7e406e2358a20512653fc40556d (diff)
downloadgitlab-4bb201b92ef0dcc14a7a9c83e5600ba5b118fc33.tar.gz
feat(api,cli): make user agent configurable
Diffstat (limited to 'gitlab/const.py')
-rw-r--r--gitlab/const.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gitlab/const.py b/gitlab/const.py
index bdd3d73..36e3c1a 100644
--- a/gitlab/const.py
+++ b/gitlab/const.py
@@ -15,6 +15,9 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+from gitlab.__version__ import __title__, __version__
+
+
NO_ACCESS = 0
MINIMAL_ACCESS = 5
GUEST_ACCESS = 10
@@ -51,3 +54,5 @@ SEARCH_SCOPE_GLOBAL_SNIPPET_TITLES = "snippet_titles"
# specific project scope
SEARCH_SCOPE_PROJECT_NOTES = "notes"
+
+USER_AGENT = "{}/{}".format(__title__, __version__)