Skip to main content

moviebox_api_v3

moviebox_api_v3 est une bibliothèque Python asynchrone pour interagir avec l'API MovieBox v3.

Projet non officiel. Ce package n'est pas affilié à MovieBox. Utilisez-le uniquement dans le respect des lois applicables et des conditions d'utilisation des services concernés.

Installation

pip install moviebox_api_v3

Avec les outils CLI :

pip install "moviebox_api_v3[cli]"

Exemple rapide

import asyncio

from moviebox_api_v3.v3.constants import SubjectType
from moviebox_api_v3.v3.core import Search
from moviebox_api_v3.v3.http_client import MovieBoxHttpClient


async def main():
    async with MovieBoxHttpClient(timeout=8) as client:
        api = Search(
            client_session=client,
            query="avatar",
            subject_type=SubjectType.ALL,
            page=1,
            per_page=10,
        )
        data = await api.get_content()
        print(data)


if __name__ == "__main__":
    asyncio.run(main())

Configuration région/langue

La bibliothèque lit plusieurs variables d'environnement avant l'import des constantes :

export MOVIEBOX_ACCEPT_LANGUAGE="fr-MG,fr-FR;q=0.95,fr;q=0.9,en-US;q=0.6,en;q=0.5"
export MOVIEBOX_ACCEPT_COUNTRY="MG"
export MOVIEBOX_ACCEPT_TIMEZONE="Indian/Antananarivo"
export MOVIEBOX_REGION="MG"
export MOVIEBOX_SYSTEM_LANGUAGE="fr"
export MOVIEBOX_LOCALE_TAG="fr_MG"
export MOVIEBOX_PREFERRED_DUB="French"

CLI

Après installation avec l'extra cli :

moviebox-api-v3 --help
moviebox-v3 --help

Publication PyPI

Les étapes complètes sont dans PUBLISH_PYPI.md.

Résumé :

python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload --repository testpypi dist/*
python -m twine upload dist/*

Structure

moviebox_api_v3/
├── v1/
├── v2/
└── v3/

La partie recommandée pour les nouveaux projets est moviebox_api_v3.v3.

Android / Pydroid compatibility

The base package does not require pydantic, so installation works on platforms where pydantic-core wheels are unavailable.

For typed Pydantic models on desktop/server environments, install:

pip install moviebox_api_v3[models]

On Android/Pydroid, prefer the raw dictionary methods such as get_content() instead of get_content_model().

Release files for moviebox-api-v3 3.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moviebox-api-v3 3.0.2
File Size Uploaded
moviebox_api_v3-3.0.2.tar.gz 175.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moviebox-api-v3 3.0.2
File Interpreter ABI Platform
moviebox_api_v3-3.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 399.8 kB

Release files / moviebox_api_v3-3.0.2.tar.gz

Download URL moviebox_api_v3-3.0.2.tar.gz
Size 175.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a2c031b99236512ee21d483d76e1b627eb2b7ca6469fdccbe429ecbde6586257
BLAKE2b-256 checksum
How to use checksums
66660a393ae2de62a81bd6e301adb982237ad98bb9f0a4b5227fd965537ef032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / moviebox_api_v3-3.0.2-py3-none-any.whl

Download URL moviebox_api_v3-3.0.2-py3-none-any.whl
Size 224.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acb842dd1c86d4776a24e9cdf4b7bd1abf0bbe93fce42280fee1a5c2384a492e
BLAKE2b-256 checksum
How to use checksums
aa4764983a8f6263925cc8fbeb52a2a3b76aaa690f406d510dc61edfd3b8a28d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

3.0.2 This release

2 release files

3.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page