Skip to main content

Allow to interact with the new FFBB apis

Project description

PyPI-Server Project generated with PyScaffold

FFBBApiClientV2_Python

Allow to interact with the new FFBB apis

ffbb_api_client_v2 allow to interact with the new FFBB api. You can retrieve information about clubs, teams, matches, etc…

Installation

pip install ffbb_api_client_v2

Quick start

import os
from ffbb_api_client_v2 import FFBBAPIClientV2

# Load env from file if needed
# from dotenv import load_dotenv
# load_dotenv()

# Retrieve apis bearer tokens
MEILISEARCH_TOKEN = os.getenv("MEILISEARCH_BEARER_TOKEN")
API_TOKEN = os.getenv("API_FFBB_APP_BEARER_TOKEN")

# Create an instance of the api client
ffbb_api_client = FFBBAPIClientV2.create(MEILISEARCH_TOKEN, API_TOKEN)

# Get the lives
lives = ffbb_api_client.get_lives()

# Get the organismes
organismes = ffbb_api_client.search_organismes("Paris")

# Get the rencontres
rencontres = ffbb_api_client.search_rencontres("Basket")

# Get the terrains
terrains = ffbb_api_client.search_terrains("Basket")

# Get the competitions
competitions = ffbb_api_client.search_competitions("Basket")

# Get the salles
salles = ffbb_api_client.search_salles("Basket")

# Get pratiques
pratiques = ffbb_api_client.search_pratiques("Basket")

# Get tournois
tournois = ffbb_api_client.search_tournois("Basket")

Examples

Take a look at quick_start.py to see how to use the library.

Note

This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.

Licence

ffbb_api_client_v2 is distributed under the Apache 2.0 license.

Dev notes

Command used to create this project:

putup FFBBApiClientV2_Python -p ffbb_api_client_v2 -l Apache-2.0 -d "Allow to interact with the new FFBB apis" -u "https://github.com/Rinzler78/FFBBApiClientV2_Python" -v --github-actions --venv .venv

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

ffbb_api_client_v2-0.0.0.2.tar.gz (70.2 kB view details)

Uploaded Source

Built Distribution

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

ffbb_api_client_v2-0.0.0.2-py3-none-any.whl (83.8 kB view details)

Uploaded Python 3

File details

Details for the file ffbb_api_client_v2-0.0.0.2.tar.gz.

File metadata

  • Download URL: ffbb_api_client_v2-0.0.0.2.tar.gz
  • Upload date:
  • Size: 70.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for ffbb_api_client_v2-0.0.0.2.tar.gz
Algorithm Hash digest
SHA256 10e8e3c9d010b058c6eb06d5131d44b2c9ce71c0c5dc7f73263ada4824fdcff9
MD5 41b2f38216d7bbc6d0b329e839ab73dc
BLAKE2b-256 a5b3aac1f6d37326855e02b5dad81512e2e65196210f748258d5d19ecc0ab826

See more details on using hashes here.

File details

Details for the file ffbb_api_client_v2-0.0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ffbb_api_client_v2-0.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc7de967ef5d958460c0d1e6f2950d81f48c4e161ef8e448e75cbc076b1f0c68
MD5 4e0defbe1e27220eed69d17bdc256b42
BLAKE2b-256 70a88ee06cd0219caad67e18cfe2e08a9ec85f73b98dff3ae592b0a975a035fd

See more details on using hashes here.

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