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_TOKEN")
API_TOKEN = os.getenv("API_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-1.0.0.0.tar.gz (64.2 kB view details)

Uploaded Source

Built Distribution

ffbb_api_client_v2-1.0.0.0-py3-none-any.whl (83.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ffbb_api_client_v2-1.0.0.0.tar.gz
  • Upload date:
  • Size: 64.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for ffbb_api_client_v2-1.0.0.0.tar.gz
Algorithm Hash digest
SHA256 94b8bdd42368ccade38854bc968fd970640aced9099c132f3a0782f8b92bafb5
MD5 2491c87826cc7db3350178a6511d67c4
BLAKE2b-256 d3a1aabaffb3db3ccd82785ca8134880b92ebcca3d9484600dfc5265720bc64b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ffbb_api_client_v2-1.0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae38ae601d08b26cceffe36f407ef14574ea2c80f20b92f34e5f78b215dd966f
MD5 142411582094033e4982013fc5b721f2
BLAKE2b-256 f77161e4656e7033596eed661fc5c8d67d797b83bdbb81e6139a6ba8528ab0d4

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