Skip to main content

Python client library for interacting with the MultiSport platform.

Project description

multisport-py

A Python library for interacting with the MultiSport API.

Installation

pip install multisport-py

Usage

For a complete, working example of how to use the library, please see the simple_usage.py file in the examples directory.

» View Example: examples/simple_usage.py

To run the example, you will need to:

  1. Create a .env file in the root of the project (you can copy .env.example).
  2. Fill in your MULTISPORT_USERNAME and MULTISPORT_PASSWORD.
  3. Run the script:
    python examples/simple_usage.py
    

Development

To set up the development environment:

  1. Clone the repository:
    git clone https://github.com/TheUndefined/multisport-py.git
    cd multisport-py
    
  2. Create and activate a virtual environment:
    python -m venv .venv
    source .venv/bin/activate
    
  3. Install development dependencies:
    pip install hatchling pytest ruff black mypy httpx
    pip install -e . # Install the library in editable mode
    

Running Tests

pytest

Formatting and Linting

black .
ruff check . --fix
mypy src

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

multisport_py-0.0.20251127.143746.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

multisport_py-0.0.20251127.143746-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file multisport_py-0.0.20251127.143746.tar.gz.

File metadata

File hashes

Hashes for multisport_py-0.0.20251127.143746.tar.gz
Algorithm Hash digest
SHA256 18f036664d4c241aedbff428f7437b901a57cf6ea3cca8d1e9cf6b232fe666ec
MD5 9a984830dc19e62bd93fd44380181534
BLAKE2b-256 14b7fbec76296dbaf6b92fa37465003153029abae2669180ef0ed7aa0c4d1590

See more details on using hashes here.

Provenance

The following attestation bundles were made for multisport_py-0.0.20251127.143746.tar.gz:

Publisher: publish.yml on theundefined/multisport-py

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

File details

Details for the file multisport_py-0.0.20251127.143746-py3-none-any.whl.

File metadata

File hashes

Hashes for multisport_py-0.0.20251127.143746-py3-none-any.whl
Algorithm Hash digest
SHA256 e6b8a96843997aba3b84c725cd5cfc73c756b2dee2cdd8e27eb45820fad70478
MD5 6ca584135ec1136e1456717c27da91a4
BLAKE2b-256 fc0031a7cf5da3e42ddef2854b023cbe69178be1fab85c402ba7fcd6826067a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for multisport_py-0.0.20251127.143746-py3-none-any.whl:

Publisher: publish.yml on theundefined/multisport-py

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