dubidoc 0.1.3__tar.gz → 0.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {dubidoc-0.1.3 → dubidoc-0.1.4}/PKG-INFO +2 -2
  2. {dubidoc-0.1.3 → dubidoc-0.1.4}/README.md +1 -1
  3. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/__init__.py +1 -1
  4. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/client.py +3 -3
  5. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc.egg-info/PKG-INFO +2 -2
  6. {dubidoc-0.1.3 → dubidoc-0.1.4}/pyproject.toml +1 -1
  7. {dubidoc-0.1.3 → dubidoc-0.1.4}/LICENSE +0 -0
  8. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/_modules/__init__.py +0 -0
  9. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/_modules/access_token.py +0 -0
  10. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/_modules/authentication.py +0 -0
  11. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/_modules/device.py +0 -0
  12. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/_modules/document.py +0 -0
  13. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/_modules/document_link.py +0 -0
  14. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/_modules/download.py +0 -0
  15. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/_modules/organization.py +0 -0
  16. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/_modules/organization_user.py +0 -0
  17. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/_modules/participant.py +0 -0
  18. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/_modules/storecode.py +0 -0
  19. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/enum.py +0 -0
  20. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc/response.py +0 -0
  21. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc.egg-info/SOURCES.txt +0 -0
  22. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc.egg-info/dependency_links.txt +0 -0
  23. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc.egg-info/requires.txt +0 -0
  24. {dubidoc-0.1.3 → dubidoc-0.1.4}/dubidoc.egg-info/top_level.txt +0 -0
  25. {dubidoc-0.1.3 → dubidoc-0.1.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dubidoc
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Python SDK for dubidoc.com.ua API
5
5
  Maintainer-email: Dmytro Litvinov <me@dmytrolitvinov.com>
6
6
  License: MIT License
@@ -67,7 +67,7 @@ api_token = 'xxxxxxxxxxxxxxx'
67
67
  dubidoc = DubidocAPIClient(api_token)
68
68
 
69
69
  documents = dubidoc.document_api.list()
70
- print(documents)
70
+ print(documents.data, documents.response_code)
71
71
  ```
72
72
 
73
73
  ## License
@@ -38,7 +38,7 @@ api_token = 'xxxxxxxxxxxxxxx'
38
38
  dubidoc = DubidocAPIClient(api_token)
39
39
 
40
40
  documents = dubidoc.document_api.list()
41
- print(documents)
41
+ print(documents.data, documents.response_code)
42
42
  ```
43
43
 
44
44
  ## License
@@ -2,6 +2,6 @@
2
2
 
3
3
  __author__ = 'Dmytro Litvinov'
4
4
  __email__ = 'me@dmytrolitvinov.com'
5
- __version__ = '0.1.3'
5
+ __version__ = '0.1.4'
6
6
 
7
7
  from .client import DubidocAPIClient
@@ -32,9 +32,9 @@ class DubidocAPIClient:
32
32
  'user-agent': f'python-dubidoc/{__version__} | (https://github.com/DmytroLitvinov/python-dubidoc)',
33
33
  }
34
34
 
35
- def __init__(self, api_token: str, environment: str = 'stage'):
35
+ def __init__(self, api_token: str, *, is_stage_env: bool = False):
36
36
  self.api_token = api_token
37
- if environment == 'stage':
37
+ if is_stage_env:
38
38
  self.base_url = 'https://docs-stage.navkolo.one'
39
39
  else:
40
40
  self.base_url = 'https://my.dubidoc.com.ua'
@@ -51,7 +51,7 @@ class DubidocAPIClient:
51
51
  self.participant_api = self._get_module(ParticipantAPI)
52
52
  self.download_api = self._get_module(DownloadAPI)
53
53
 
54
- if environment == 'stage':
54
+ if is_stage_env == 'stage':
55
55
  self.access_token_api = self._get_module(AccessTokenAPI)
56
56
  self.authentication_api = self._get_module(AuthenticationAPI)
57
57
  self.device_api = self._get_module(DeviceAPI)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dubidoc
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Python SDK for dubidoc.com.ua API
5
5
  Maintainer-email: Dmytro Litvinov <me@dmytrolitvinov.com>
6
6
  License: MIT License
@@ -67,7 +67,7 @@ api_token = 'xxxxxxxxxxxxxxx'
67
67
  dubidoc = DubidocAPIClient(api_token)
68
68
 
69
69
  documents = dubidoc.document_api.list()
70
- print(documents)
70
+ print(documents.data, documents.response_code)
71
71
  ```
72
72
 
73
73
  ## License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dubidoc"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  requires-python = ">=3.8"
9
9
  description = "Python SDK for dubidoc.com.ua API"
10
10
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes