We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f608329 commit 46a216dCopy full SHA for 46a216d
dspace_rest_client/client.py
@@ -23,6 +23,7 @@
23
import os
24
from uuid import UUID
25
from .models import *
26
+from . import __version__
27
28
__all__ = ['DSpaceClient']
29
@@ -56,7 +57,7 @@ class DSpaceClient:
56
57
API_ENDPOINT = 'http://localhost:8080/server/api'
58
SOLR_ENDPOINT = 'http://localhost:8983/solr'
59
SOLR_AUTH = None
- USER_AGENT = 'DSpace Python REST Client'
60
+ USER_AGENT = f'DSpace-Python-REST-Client/{__version__}'
61
if 'DSPACE_API_ENDPOINT' in os.environ:
62
API_ENDPOINT = os.environ['DSPACE_API_ENDPOINT']
63
LOGIN_URL = f'{API_ENDPOINT}/authn/login'
0 commit comments