Connect to Cukcuk Shop API
Project description
Cukcuk SDK
Examples:
- Get all invoices in a date range
import cukcuk
from datetime import datetime, timedelta
session = cukcuk.LoginSession.from_json("login.json")
last_sync_date = datetime(2023, 5, 1)
before_date = datetime(2023, 5, 5)
invoices = session.get_invoices(last_sync_date=last_sync_date, before_date=before_date)
df = invoices.to_df() # Convert to pandas DataFrame
print(df)
- Using asynchronous session to speed up requests
import asyncio
import cukcuk
from datetime import datetime, timedelta
session = cukcuk.AsyncLoginSession.from_json("login.json")
last_sync_date = datetime(2023, 5, 1)
before_date = datetime(2023, 5, 5)
invoices = asyncio.run(session.get_invoices(last_sync_date=last_sync_date, before_date=before_date))
df = invoices.to_df() # Convert to pandas DataFrame
print(df)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cukcuk-0.5.3.tar.gz
(7.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cukcuk-0.5.3.tar.gz.
File metadata
- Download URL: cukcuk-0.5.3.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9fb1d385db3e82071720783d3d9881284a637e705732c8ee3474f3f86ce32b4
|
|
| MD5 |
81ca7ec6afe3e73b787d4a32b6489d78
|
|
| BLAKE2b-256 |
b23eed6848d7d5cde01ef50d95a30e84031b079c5170af7fdb53051341c9316e
|
File details
Details for the file cukcuk-0.5.3-py3-none-any.whl.
File metadata
- Download URL: cukcuk-0.5.3-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a08bec5bf98e884b1374cb5f4914c9db9adcc0b1c5723056451bcd27b39be82a
|
|
| MD5 |
9f4d2daba9dda4ec3dbc1f1ba1a4f63c
|
|
| BLAKE2b-256 |
eebef5eaa463132029a95c58e8375afa434afd9ff6e426265e6152f84d186654
|