Skip to main content

Connect to Cukcuk Shop API

Project description

Cukcuk SDK

Examples:

  1. 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)
  1. 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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cukcuk-0.5.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

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

Hashes for cukcuk-0.5.3.tar.gz
Algorithm Hash digest
SHA256 f9fb1d385db3e82071720783d3d9881284a637e705732c8ee3474f3f86ce32b4
MD5 81ca7ec6afe3e73b787d4a32b6489d78
BLAKE2b-256 b23eed6848d7d5cde01ef50d95a30e84031b079c5170af7fdb53051341c9316e

See more details on using hashes here.

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

Hashes for cukcuk-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a08bec5bf98e884b1374cb5f4914c9db9adcc0b1c5723056451bcd27b39be82a
MD5 9f4d2daba9dda4ec3dbc1f1ba1a4f63c
BLAKE2b-256 eebef5eaa463132029a95c58e8375afa434afd9ff6e426265e6152f84d186654

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page