Skip to main content

A library to interact with ov-chip cards on line api.

Project description

A library to interact with the ov-chip card service.

It utilizes the webapi of the mobile apps to get the information. Very loosely based on https://github.com/OVChip/ovchipapi-python for the authentication part.

Be aware that the ov-chip card system used in the Netherlands for public transport was not designed to be real time. So expect a hefty time drift before the actual checkin/out action and information showing up on the api and by extension on the transactions list.

Also the sequence of transactions is not guaranteed. It is absolutelly certain that if there are a lot of checkins/outs closely together they will appear out of order on the web api. Apparently there is a serverside job that sorts them once a day.

The library handles that by sorting the list of transactions always. So on any action it would return a properly ordered list of events but in case of monitoring through the card.get_latest_transactions() method it is absolutelly guaranteed that transaction will appear out of order and with a delay ranging between 2 and 15 minutes according to some simple benchmarks.

Features

  • Can get cards bound with the account and lists of transactions for the cards.

History

0.1 (14-04-2017)

  • First release on pypi

0.1.1 (07-07-2021)

  • Updated template, bumped dependencies and implemented a pipeline.

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

ovchipcardlib-0.1.1.tar.gz (48.4 kB view details)

Uploaded Source

Built Distribution

ovchipcardlib-0.1.1-py3.7.egg (29.6 kB view details)

Uploaded Source

File details

Details for the file ovchipcardlib-0.1.1.tar.gz.

File metadata

  • Download URL: ovchipcardlib-0.1.1.tar.gz
  • Upload date:
  • Size: 48.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.10

File hashes

Hashes for ovchipcardlib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7ae763215eafa261bd9255b9dfe5e1f486c8249245dbf91a6caaa304339b5a10
MD5 db12e620340612b88bb2f0e7c595276f
BLAKE2b-256 ed571091177c95bc3655a1a3b0010c8f239038bf3f6d80c273b71cb3de6eec97

See more details on using hashes here.

File details

Details for the file ovchipcardlib-0.1.1-py3.7.egg.

File metadata

  • Download URL: ovchipcardlib-0.1.1-py3.7.egg
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.10

File hashes

Hashes for ovchipcardlib-0.1.1-py3.7.egg
Algorithm Hash digest
SHA256 fb341c8d4e01c8b20efb9afad2ac65e0879cc4c173a665cfd5b976ab0ad79aa3
MD5 95322fa20ddf5bdf05447901cf0c705d
BLAKE2b-256 64144f47119bea6a164c5bdaa0a07da0b2510073ff2a0d56f4e94212321a169c

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