Friday Movie Club Client
Python client for the Friday Movie Club API.
fmc wraps the FMC REST API in a synchronous, typed client built on
httpx and pydantic.
Resources are exposed as attributes on a single FMCClient:
| Attribute | Purpose |
|---|---|
client.auth |
Register, login (email/password or PAT), refresh tokens |
client.users |
Current-user profile and personal access tokens |
client.clubs |
Club CRUD, members, invitations, cover images |
client.movies |
Movie suggestions, rankings, TMDB search |
client.events |
Event CRUD, RSVPs, movie assignment |
Requirements
- Python 3.12+
Installation
pip install python-fmc
Or with uv:
uv add python-fmc
Quickstart
from fmc import FMCClient
with FMCClient(base_url="https://api.example.com/api/v1") as client:
# Login with email/password (sets the access token on the client)
client.auth.login(email="user@example.com", password="hunter2")
# Or login with a Personal Access Token
# client.auth.login(token="fmc_pat_...")
# Create a club and list its members
club = client.clubs.create("Friday Movie Club", description="Weekly hangout")
members = client.clubs.list_members(club.id)
for user in members.items:
print(user.name, user.email)
If you already have an access token, pass it directly:
client = FMCClient(base_url="...", token="eyJhbGciOi...")
Errors
API errors are raised as subclasses of FMCError:
from fmc import FMCClient, NotFoundError, ValidationError
try:
club = client.clubs.get("00000000-0000-0000-0000-000000000000")
except NotFoundError:
...
except ValidationError as e:
...
Available exceptions: APIError, AuthenticationError, ForbiddenError,
NotFoundError, ConflictError, ValidationError — all inherit from FMCError.
Examples
The examples/ directory contains runnable scripts that
read BASE_URL and AUTH_TOKEN from the environment:
create-club/— create a club if it doesn't already existcreate-suggestions/— bulk-suggest movies from a JSON filecreate-events/— create movie-night events from a JSON file
export BASE_URL=https://api.example.com/api/v1
export AUTH_TOKEN=fmc_pat_...
python examples/create-club/create-club.py
Development
This project uses uv for dependency management and ruff for linting.
uv sync
uv run ruff check
uv build
Metadata
Release files for python-fmc 1.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_fmc-1.6.2.tar.gz | 8.6 kB | With provenance | Details for python_fmc-1.6.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_fmc-1.6.2-py3-none-any.whl | Python 3 | none | any | Details for python_fmc-1.6.2-py3-none-any.whl |
Total release size: 21.6 kB
Release files / python_fmc-1.6.2.tar.gz
| Download URL | python_fmc-1.6.2.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45cdc14941838b8a6b529095b9716b5efcfe09a3d7bf655b0ddc32cd82862dc9
|
|
BLAKE2b-256 checksum How to use checksums |
1bbc193d13060570ef7af5766b1565586ae099c7842f5d10dd6c7ef9969bd631
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 12, 2026.
Transparency logRelease files / python_fmc-1.6.2-py3-none-any.whl
| Download URL | python_fmc-1.6.2-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da62089e4334a1d7db9d840568732bed0d8dd18a64441581df84187f873f5acd
|
|
BLAKE2b-256 checksum How to use checksums |
2fabc6292615375e7ad0b52780225e147a42567c8c9007d4dc807dccc786dedf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 12, 2026.
Transparency logSecurity for python-fmc 1.6.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for python_fmc-1.6.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.