MovieLens SDK - genitosdk
Un SDK Python simple pour interagir avec l’API REST MovieLens. Il est conçu pour les Data Analysts et Data Scientists, avec une prise en charge native de Pydantic, dictionnaires et DataFrames Pandas.
Installation
pip install genitosdk
Configuration
from genitosdk import MovieClient, MovieConfig
# Configuration avec l’URL de votre API (Render ou locale)
config = MovieConfig(movie_base_url="https://movies-api-backend-tcju.onrender.com")
client = MovieClient(config=config)
Tester le SDK
1. Health check
client.health_check()
# Retourne : {"status": "ok"}
2. Récupérer un film
movie = client.get_movie(1)
print(movie.title)
3. Liste de films au format DataFrame
df = client.list_movies(limit=5, output_format="pandas")
print(df.head())
Modes de sortie disponibles
Toutes les méthodes de liste (list_movies, list_ratings, etc.) peuvent retourner :
- des objets Pydantic (défaut)
- des dictionnaires
- des DataFrames Pandas
Exemple :
client.list_movies(limit=10, output_format="dict")
client.list_ratings(limit=10, output_format="pandas")
Tester en local
Vous pouvez aussi utiliser une API locale :
config = MovieConfig(movie_base_url="http://localhost:8000")
client = MovieClient(config=config)
Public cible
- Data Analysts
- Data Scientists
- Étudiants et curieux en Data
- Développeurs Python
Licence
MIT License
Liens utiles
- API Render : https://movies-api-backend-tcju.onrender.com
- PyPI : https://pypi.org/project/genitosdk
Metadata
Release files for genitosdk 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| genitosdk-0.0.4.tar.gz | 5.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| genitosdk-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / genitosdk-0.0.4.tar.gz
| Download URL | genitosdk-0.0.4.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7536fdd85cbc62f4bc3bb72bff8da1a7ed3abd3223bf80d931ac30604bde08dc
|
|
BLAKE2b-256 checksum How to use checksums |
3f75e6bae66ff905526cf8ca56a5e79711d582d6cda96ff6f530ab6f523cf0ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|
Release files / genitosdk-0.0.4-py3-none-any.whl
| Download URL | genitosdk-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fdf96d8ef118a82114843783464d84660f4f04c3db794361d33c222d767dc36c
|
|
BLAKE2b-256 checksum How to use checksums |
fe53320ff98e9b7895155585736aebe16045d7363ff64431a5e7aca23b7fdf74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|
Security for genitosdk 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.