🍕 Dodo IS API Wrapper
Installation
Via pip:
pip install dodo-is-api
Via poetry:
poetry add dodo-is-api
📝 Changelog is here.
🧪 Usage:
🌩️ Synchronous version:
from datetime import datetime
from uuid import UUID
import httpx
from dodo_is_api import models
from dodo_is_api.connection.synchronous import DodoISAPIConnection
def main():
access_token = 'your access token'
country_code = models.CountryCode.RU
from_date = datetime(2004, 10, 7)
to_date = datetime(2004, 10, 7, 23)
units = [UUID('ec81831c-b8a7-4ba8-a6aa-7ae7d0c4e0bb')]
with httpx.Client() as http_client:
connection = DodoISAPIConnection(
http_client=http_client,
access_token=access_token,
country_code=country_code,
)
stop_sales = connection.get_stop_sales_by_products(
from_date=from_date,
to_date=to_date,
units=units,
)
print(stop_sales)
if __name__ == '__main__':
main()
⚡️ Asynchronous version:
import asyncio
from datetime import datetime
from uuid import UUID
import httpx
from dodo_is_api import models
from dodo_is_api.connection.asynchronous import AsyncDodoISAPIConnection
async def main():
access_token = 'your access token'
country_code = models.CountryCode.RU
from_date = datetime(2004, 10, 7)
to_date = datetime(2004, 10, 7, 23)
units = [UUID('ec81831c-b8a7-4ba8-a6aa-7ae7d0c4e0bb')]
async with httpx.AsyncClient() as http_client:
connection = AsyncDodoISAPIConnection(
http_client=http_client,
access_token=access_token,
country_code=country_code,
)
stop_sales = await connection.get_stop_sales_by_products(
from_date=from_date,
to_date=to_date,
units=units,
)
print(stop_sales)
if __name__ == '__main__':
asyncio.run(main())
Metadata
Release files for dodo-is-api 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dodo_is_api-0.8.0.tar.gz | 10.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dodo_is_api-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.0 kB
Release files / dodo_is_api-0.8.0.tar.gz
| Download URL | dodo_is_api-0.8.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
977ad9966ebf5fbcf0a820e4622ab7a6948bc3b22fffcd8b778b24c5523a9659
|
|
BLAKE2b-256 checksum How to use checksums |
33a2efadb9f2b91bfd178860c6bc7bab41abcc1878a93474ed6d757ef1b42406
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.10.7 Darwin/22.5.0
|
Release files / dodo_is_api-0.8.0-py3-none-any.whl
| Download URL | dodo_is_api-0.8.0-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6672ab25cba3259969efad7ed9571770be4869aa80b6c84eb01cfbf31e9c7548
|
|
BLAKE2b-256 checksum How to use checksums |
8015384ae7b334b2d6146d808d3781c011a1ec1de3e0131eebd81e12c88c46d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.10.7 Darwin/22.5.0
|
Security for dodo-is-api 0.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.