Skip to main content

SDK Python pour accéder à l’API MovieLens (Data Analysts/Data Scientists friendly)

Project description

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.

PyPI version License: MIT


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

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

genitosdk-0.0.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

genitosdk-0.0.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file genitosdk-0.0.3.tar.gz.

File metadata

  • Download URL: genitosdk-0.0.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for genitosdk-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7e94063280d8a4e1db882dfc7822453c14d71eef6e83a846139b146410cc9d48
MD5 df47da56bb7acb7ce0e0463f9e32798a
BLAKE2b-256 36405bab47324662f60659fc7e2da9c256e1cac16195a12cd8b03a0cfe5738fe

See more details on using hashes here.

File details

Details for the file genitosdk-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: genitosdk-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for genitosdk-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 365992ddac79fd9fad5634621a2baedefec7206012cb344575bf3d71ce35c416
MD5 7c12d526140f4657a35df216cc27b219
BLAKE2b-256 be441eb0ff2c3bad73c316a6be6fc94f62138f8d285c71d83cd75f14bad267b7

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