Skip to main content

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

Project description

MovieLens filmsmik

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 Licence : MIT


Installation

pip install filmsmik

Configuration

from filmsmik import MovieClient MovieConfig
# configuration avec l'URL de votre API (Render ou local)
config = MovieConfig(movie_base_url="https://movie-backend-4sx2.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 des listes (list_movies, list_ratings, etc.) peuvent retourner

  • des objets Pydantic par défaut
  • des Dictionnaires
  • des DataFrames pandas

Exemples :

client.list_movie(limit=10, output_format="dict")
client.list_ratings(limit=10, output_format="pandas")

Tester en local

Vous pouvez également utiliser en local l'API

config = MovieConfig(movie_base_url="http:localhost:8000")
client = MivieClient(config=config)

Public cible

  • Data analysts
  • Data scientists
  • Etudiants et curieux en data
  • Développeurs Python

Licence

MIT License


Liens

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

filmsmik-0.0.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

filmsmik-0.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for filmsmik-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c61e7b2ce9f57c21ffa966b7a104a967a0243c5dcaef83044c6742029fa42d05
MD5 8dee5b482d8dbe8e0fd591fed5340f68
BLAKE2b-256 5f6c46fc94f00d6a5d326d898b6a198cd8690f54e8e191e5b0e53ab8ed665c1d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for filmsmik-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bdc5653a51cf81a4b3dbab4d9b92ed0ed17bcbefc93116ca932c8d28be8d1d2a
MD5 221212dd46f81b81df0c967ef98e8482
BLAKE2b-256 2d7222c7ca13f3e254bae3c3ffa8520c025c576c2686aa9059f86bde825b7bc0

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