Skip to main content

Software Development Kit (SDK) for MovieLens API Analyst et Scientists

Project description

MovieLens SDK - cinemasdk

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


Créé et maintenu par

  • Attemene Kouassi

Installation

pip install cinemasdk

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
  • 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

cinemasdk-0.0.4.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

cinemasdk-0.0.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file cinemasdk-0.0.4.tar.gz.

File metadata

  • Download URL: cinemasdk-0.0.4.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for cinemasdk-0.0.4.tar.gz
Algorithm Hash digest
SHA256 147c7af032c6fcfbd8bf2eb52fd5fddfef561d5d440dd4d67e815300b795b915
MD5 889005ca6f2da3c5a44b6431df671b97
BLAKE2b-256 e4c962696c4d0ced078757d22f07f3aa59698a4cb23957214f1b53f09ee56ad4

See more details on using hashes here.

File details

Details for the file cinemasdk-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cinemasdk-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for cinemasdk-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fdd870010a9cd902e7930ee69a73bf3fc3a0c308ab89e1d9f134fe434be78c45
MD5 d842f52847dac6fd81b12db171e863d7
BLAKE2b-256 21345f75cb81444fd43d13921d1ab517f419ae488db96f309fb0ec8f030f2a8d

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