Skip to main content

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

Project description

MovieLens SDK - filmsdk

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 filmsdk

Configuration

from filmsdk import MovieClient, MovieConfig

# Configuration avec l’URL de votre API (Render ou locale)
config = MovieConfig(movie_base_url="https://movie-backend-xelv.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

sylla_films-0.0.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

sylla_films-0.0.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file sylla_films-0.0.2.tar.gz.

File metadata

  • Download URL: sylla_films-0.0.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for sylla_films-0.0.2.tar.gz
Algorithm Hash digest
SHA256 656a855e1121ee9a8a854b0843e0a3ab634b56a776b71b1635d79575784b4e6f
MD5 2ec6f8d27f9f31a9ac3287811a7b170d
BLAKE2b-256 cb1cc2fe72c945be954ba8ad49f649af04e00b62cb31f13a53d0eb166286472c

See more details on using hashes here.

File details

Details for the file sylla_films-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: sylla_films-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for sylla_films-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9bd37df846c4a1968281d98e673570aa5e8e95c711d6b979f8ea9a65c659bb7f
MD5 5d2cee500c4c4a7e4f03145b51834443
BLAKE2b-256 7bac611aa067f728e8a86357f35e0d92536d55ae2226b14130fbb30b01bd2b6f

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