semvec/pypi-packages huggingface dataset:
photocard 0.1.2
A Pythonic interface for TfL's Photocard service
License: MIT
Requires Python: <4.0,>=3.10

# photocard [<img src="https://img.shields.io/pypi/pyversions/photocard">](https://pypi.org/project/photocard/)

A Pythonic interface for TfL's Photocard service.

TfL couldn't be bothered to add photocard support to their app, so I made an API for their photocard service in half a
day.
Not too difficult after all, huh?

## Benefits

* Full read access to TfL's Photocard service
* 11-15 Photocard support

## Limitations:

* All API endpoints, require [logging on](#logon).
* All API endpoints are read only
* Limited support for 5-10, 16+, 18+, and 60+ photocards. If you need support for these please provide screenshots of
  the
  network inspector calling the card endpoint for these, please open an issue in the issues tab.

## CLI

A CLI tool is available.

```
python -m photocard
```

## Usage

### Logon

Logon requires email and password.

Try not to get the password wrong - TfL has been known to lock you out of your account for 30 minutes if you get your
password wrong just once.

### Example: Getting People & Cards

```python
from photocard import PhotocardService

photocard = PhotocardService()
photocard.logon(input("Enter email: "), input("Enter password: "))

# Gets all people associated with the web account
people = photocard.get_people()
for person in people:
    # Get cards for person
    cards = photocard.cards_for_person(person)  # More than one card can be associated with a person
    for card in cards:
        print(f"Balance for card {card.oyster_card_number}: £{card.prepaid_balance:.2f}")
        # Example output (censored PII): Balance for card 0*********5: £3.50
```

## Disclaimer

This doesn't appear to break any T&C, but I'm not a lawyer, so get one to read TfL's:
https://tfl.gov.uk/corporate/terms-and-conditions/
edna2 2.1.0
Framework for tasks
License: MIT
Requires Python: >=3.7

EDNA2
=========

The EDNA2 project is a complete rewrite of the EDNA project.
For more info about the EDNA project see http://www.edna-site.org.
The version of ENDA used at the ESRF is: https://github.com/olofsvensson/edna-mx.

The EDNA2 project tries to keep the 'spirit' of the EDNA project and at the
same time make the framework lightweight. These are the main differences with the EDNA project:

- Not compatible with python 2.7 - requires python 3
- No data modelling framework
- Data persisted as json instead of XML
- Tasks instead of plugins
- Logging based on Python logging
- Python unit tests

These are the main features retained in the EDNA2 project:

- Asynchronous execution of tasks
- Task configuration based on sites
- Hierarchical working directory structure handled by the framework.

Wherever possible a link is provided in the EDNA2 source code to the
corresponding EDNA code.

Installation
------------

The EDNA2 project provides a setup.py file for installation.

Documentation
-------------

The documentation can be found at https://edna2.readthedocs.io.

Testing and code review
-----------------------

- Travis CI status: |Travis Status|
- Automatic code quality check: https://app.codacy.com/project/olofsvensson/edna2/dashboard

Contribute
----------

- Issue Tracker: https://github.com/olofsvensson/edna2/issues
- Source Code: https://github.com/olofsvensson/edna2

Support
-------

If you are having issues, please let us know via the issue tracker.

License
-------

The source code of *edna2* is licensed under the MIT license.
See the `LICENSE <https://github.com/olofsvensson/edna2/blob/master/LICENSE>`_
and `copyright <https://github.com/olofsvensson/edna2/blob/master/copyright>`_
files for details.

.. |Travis Status| image:: https://api.travis-ci.com/olofsvensson/edna2.svg?branch=master
   :target: https://app.travis-ci.com/olofsvensson/edna2?branch=master