Skip to main content

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

Project description

MovieLens SDK - filmAneesdk

Un SDK Python simple pour interagir avec l’API REST Films. 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 filmAneesdk

Configuration

from filmAneesdk import MovieClient, MovieConfig

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

filmaneesdk-0.0.5.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

filmaneesdk-0.0.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file filmaneesdk-0.0.5.tar.gz.

File metadata

  • Download URL: filmaneesdk-0.0.5.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for filmaneesdk-0.0.5.tar.gz
Algorithm Hash digest
SHA256 85ed584d1cf31265db68af6672254fc870bd94012e40d49ce58ff6fdf3a9a0ef
MD5 c5e7c67657e8615c7729e19ba01459a6
BLAKE2b-256 410fd38acc6c204090c00328bf937e9f73bf67038646cd5940901e1df6b4d57d

See more details on using hashes here.

File details

Details for the file filmaneesdk-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: filmaneesdk-0.0.5-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.13.3

File hashes

Hashes for filmaneesdk-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9c7f9f136a73da8f89f935c1e705e80e8d64ddebfd77150119ec060f5d6a803b
MD5 beb0c2afe1366696db116cae09d6cad0
BLAKE2b-256 6ea3644af797aea4cb2783be27ea58ea1006b5dc4442702ad9c3e1f494bfba49

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