Skip to main content

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

Project description

MovieLens SDK - ibmoviesdk

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 ibmoviesdk

Configuration

from ibmoviesdk import MovieClient, MovieConfig

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

ibmoviesdk-0.0.2.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.

ibmoviesdk-0.0.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ibmoviesdk-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0c62754266c6d45beb64dd5a3a3da4093908c540649874d5105532c1677d0582
MD5 0338ede23aeb3aa5b0c6ec5694c1afd1
BLAKE2b-256 4f786864ef4e1788bed9367480f7b4c8009c70ee5ef946937043a86190b7039a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ibmoviesdk-0.0.2-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.11.9

File hashes

Hashes for ibmoviesdk-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f162fdb8d652c6f9bf7ff9adefdf4bf8c4015f8f72eaf8354b141d7f974d8068
MD5 0b531ef05f23cad0c810996014f44eb8
BLAKE2b-256 38b48eb220d84e1945f90cc0b120c9ffe4364bc7d4ff2b58f30a7eb90e2c4712

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