dubidoc 0.1.3__py3-none-any.whl → 0.1.4__py3-none-any.whl

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.
dubidoc/__init__.py CHANGED
@@ -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
dubidoc/client.py CHANGED
@@ -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
@@ -1,5 +1,5 @@
1
- dubidoc/__init__.py,sha256=6l4n2dkEYCl6u_S0UaTouCrFrPSez64EBrHDeSNz3Ps,177
2
- dubidoc/client.py,sha256=UXRt6IykV-Pc9r9GCQv3xrAZP8VieIVcNz0CnbKG7yg,3216
1
+ dubidoc/__init__.py,sha256=zt7Fg8wQrM92iZdiqQ9Eh1DrosJ2iWB4nigaUK5fduE,177
2
+ dubidoc/client.py,sha256=R4F6EZSM8cP6Nc4_Oj3VyUkwVt0nBZCVs7gXZXCq07g,3210
3
3
  dubidoc/enum.py,sha256=RTIS0WplquZrFTqZGtzkc95i_9jqu2Xvl6j0SFXZ72I,120
4
4
  dubidoc/response.py,sha256=8k2GkMW2F5FX4U2TGJPfJD-_UE6DA4c1FGGQL_Vzr-E,133
5
5
  dubidoc/_modules/__init__.py,sha256=NUeLh3Onke4cs4BGkowtqbaBByLVh_tEqtXNtacKI2w,184
@@ -13,8 +13,8 @@ dubidoc/_modules/organization.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhz
13
13
  dubidoc/_modules/organization_user.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
14
14
  dubidoc/_modules/participant.py,sha256=AJ60D7cokQNQFFeUWCngWvx-NQl6VuG-YarREAW9HtE,811
15
15
  dubidoc/_modules/storecode.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
16
- dubidoc-0.1.3.dist-info/LICENSE,sha256=wYGgsJKkNcLDvJQfbrT5HabzSp3imJCmSpCOS8_pu9o,1072
17
- dubidoc-0.1.3.dist-info/METADATA,sha256=TnzKpuPPfjbpy8IiwTHGJrzcPuIvPXXa9mJbE8SkeyA,3018
18
- dubidoc-0.1.3.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
19
- dubidoc-0.1.3.dist-info/top_level.txt,sha256=SQKT6uKBzQCmsVr8MCszUFz4WYCc5Oq7wvy5Y-ZReU0,8
20
- dubidoc-0.1.3.dist-info/RECORD,,
16
+ dubidoc-0.1.4.dist-info/LICENSE,sha256=wYGgsJKkNcLDvJQfbrT5HabzSp3imJCmSpCOS8_pu9o,1072
17
+ dubidoc-0.1.4.dist-info/METADATA,sha256=klo5kGONqKhbGiRpsQ_5F_SzSH4jZkO2Mkac7uk20IA,3048
18
+ dubidoc-0.1.4.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
19
+ dubidoc-0.1.4.dist-info/top_level.txt,sha256=SQKT6uKBzQCmsVr8MCszUFz4WYCc5Oq7wvy5Y-ZReU0,8
20
+ dubidoc-0.1.4.dist-info/RECORD,,