Skip to main content

Mysodexo Python client

Project description

Mysodexo Python client

Build Status Coverage Status PyPI version

A Python client for the Mysodexo reverse engineered API.

Install & Usage

Install it with pip.

pip install mysodexo

Then use the command line client.

mysodexo --balance

Or the library.

from mysodexo import api
session, account_info = api.login("foo@bar.com", "password")
dni = account_info["dni"]
cards = api.get_cards(session, dni)
card = cards[0]
card_number = card["cardNumber"]
card_details = api.get_detail_card(session, card_number)
card_details["cardBalance"]

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

mysodexo-20191112.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

mysodexo-20191112-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file mysodexo-20191112.tar.gz.

File metadata

  • Download URL: mysodexo-20191112.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for mysodexo-20191112.tar.gz
Algorithm Hash digest
SHA256 07030164b1745cad87933e1063d8f0a019de038f40b02ad5a79bea32cdfac695
MD5 b819fa0758252af9c1d1f9cc52ef2c4e
BLAKE2b-256 8fe09f7a6aed1a1670582873c97f9ae6a4a93e8924688846621cfa4dcfc002ae

See more details on using hashes here.

File details

Details for the file mysodexo-20191112-py3-none-any.whl.

File metadata

  • Download URL: mysodexo-20191112-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for mysodexo-20191112-py3-none-any.whl
Algorithm Hash digest
SHA256 5dcbdd0c44bf3e0a90319189addf9199209a9cd29897e8a624e2affac8afd259
MD5 f206d607b129b40b630d6defb17f5459
BLAKE2b-256 24646551bdef973b1b27d5e1de11866870eeefadceb91d7352e9eb97f4082964

See more details on using hashes here.

Supported by

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