Skip to main content

Software Development Kit (SDK) for MovieLens API

Project description

MovieLens SDK - filmo

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 filmo

Configuration

from filmo import MovieClient, MovieConfig

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

filmo-0.0.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

filmo-0.0.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: filmo-0.0.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for filmo-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5f69c4c66b436178a07bba019da7f914bb4fbf9664b4fba0f7d2e05a819ac3df
MD5 22076d69e14010935c8e8d7ab30f6ccd
BLAKE2b-256 3fd1ac277d6f50afea71af9bb0a6a957b1513af941be6ef63aaaf37a55fa5b2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: filmo-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for filmo-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d7c05be9327f94e281b4b71ad344929ce0a01bb14613986334defdba1bb28a0c
MD5 2b7d549675188bed9c3bdf2f14feea88
BLAKE2b-256 2c47a05854fe4a3427db80c3165ccaa1b3f462aa1c6487be5ff815b0f48634a6

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