Skip to main content

Python API for fetching info from Můj Kaktus samoobsluha

Project description

pymujkaktus

Python API pro získávání informací z Můj Kaktus samoobsluhy.

Instalace

Doporučujeme použít moderní nástroje jako pip, uv nebo pdm.

pip install .

Nebo pro vývoj:

pip install -e .

Vývoj a testování

Pro instalaci vývojových závislostí:

pip install -e ".[test]"

Pro spuštění integračních testů (vyžaduje reálné přihlašovací údaje):

export PYMUJKAKTUS_USER="vaše_jméno"
export PYMUJKAKTUS_PASS="vaše_heslo"
pytest -s tests/test_integration.py

CI/CD

Projekt používá GitHub Actions pro:

  • Automatické testování při každém pushi nebo PR.
  • Automatickou publikaci na PyPI při vytvoření release.

Použití

from pymujkaktus import KaktusAPI

# Klasické přihlášení (nyní plně automatizované)
api = KaktusAPI("username", "password")

if api.login():
    credit = api.get_credit()
    print(f"Kredit: {credit} Kč")
    
    calls = api.get_call_history()
    for call in calls:
        print(f"Volání: {call}")

api.close()

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

pymujkaktus-0.1.18.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

pymujkaktus-0.1.18-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file pymujkaktus-0.1.18.tar.gz.

File metadata

  • Download URL: pymujkaktus-0.1.18.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pymujkaktus-0.1.18.tar.gz
Algorithm Hash digest
SHA256 391a63cfc991abed5aa94bfafc78983d58c489469f910b54f258a926bbe1b2ef
MD5 d4daade9911b34ca00e994c936669353
BLAKE2b-256 86d6d9f72fa4594cc5c6c70a6c6be659e12a3ac9a470f7d4748786fa35566822

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymujkaktus-0.1.18.tar.gz:

Publisher: publish.yml on konikvranik/pymujkaktus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymujkaktus-0.1.18-py3-none-any.whl.

File metadata

  • Download URL: pymujkaktus-0.1.18-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pymujkaktus-0.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 389042f9d289daaa0feb23caf9378ed64957420fd253bfe44dd74e5cae5606f5
MD5 ad29bfcdc9fe6015940da003188e5dfb
BLAKE2b-256 870e616cf77446429f99e1908921cdfcdb3c601c8c80da8b579ec77e1db0d85e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymujkaktus-0.1.18-py3-none-any.whl:

Publisher: publish.yml on konikvranik/pymujkaktus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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