Skip to main content

PyPI version. Supported Python versions. Project license.

Cinemagoer (previously known as IMDbPY) is a Python package for retrieving and managing IMDb data about movies, people and companies from IMDb non-commercial downloadable datasets.

This project and its authors are not affiliated in any way to Internet Movie Database Inc.; see the DISCLAIMER.txt file for details about data licenses.

Main features

  • imports IMDb’s non-commercial datasets into a local SQL database and queries it offline: no web scraping, no API key

  • SQLite support with no third-party dependencies; PostgreSQL, MariaDB, MySQL and other databases through the optional SQLAlchemy integration

  • search for titles and people, with filters (kind, year, genre, rating, votes, runtime) and sorting; retrieve movies, series, episodes and people

  • a cinemagoer command line tool, with text and JSON output

  • written in Python 3, platform-independent, released under the terms of the GPL 2 license

Cinemagoer powers many other software and has been used in various research papers. Curious about that?

Installation

Whenever possible, please use the latest version from the repository:

pip install git+https://github.com/cinemagoer/cinemagoer

But if you want, you can also install the latest release from PyPI:

pip install cinemagoer

This base installation includes native SQLite support. To use PostgreSQL, MariaDB, MySQL, or an explicitly selected SQLAlchemy dialect, install the optional integration and your chosen database driver:

pip install "cinemagoer[sqlalchemy]"

Example

Here’s an example that demonstrates how to use Cinemagoer:

s32cinemagoer.py /path/to/imdb-tsv-files/ sqlite:///cinemagoer.db
from imdb import Cinemagoer

# Open the SQLite database populated with s32cinemagoer.py.
ia = Cinemagoer('s3', uri='sqlite:///cinemagoer.db')

# get a movie
movie = ia.get_movie('0133093')

# print the names of the directors of the movie
print('Directors:')
for director in movie['directors']:
    print(director['name'])

# print the genres of the movie
print('Genres:')
for genre in movie['genres']:
    print(genre)

# search for a person name
people = ia.search_person('Mel Gibson')
for person in people:
    print(person.personID, person['name'])

The same database can be queried from the command line:

cinemagoer --uri sqlite:///cinemagoer.db search movie "the matrix" -n 5
cinemagoer --uri sqlite:///cinemagoer.db get movie tt0133093 --format json

Getting help

Please refer to the support page on the project homepage and to the the online documentation on Read The Docs.

The sources are available on GitHub.

Contribute

Visit the CONTRIBUTOR_GUIDE.rst to learn how you can contribute to the Cinemagoer package.

License

Copyright (C) 2004-2026 Davide Alberani <da@mimante.net> et al.

Cinemagoer is released under the GPL license, version 2 or later. Read the included LICENSE.txt file for details.

NOTE: For a list of persons who share the copyright over specific portions of code, see the CONTRIBUTORS.txt file.

NOTE: See also the recommendations in the DISCLAIMER.txt file.

Metadata

Release files for cinemagoer 2026.11.29

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

Source distribution (sdist)

Source distribution for cinemagoer 2026.11.29
File Size Uploaded Provenance Actions
cinemagoer-2026.11.29.tar.gz 574.1 kB Without provenance Details for cinemagoer-2026.11.29.tar.gz

Release files / cinemagoer-2026.11.29.tar.gz

Download URL cinemagoer-2026.11.29.tar.gz
Size 574.1 kB
Tags Source
SHA-256 checksum
How to use checksums
33dfd12d36750480ed96d028a0f31cfa8a64a74ea79cf1f3d0a449cfc44fbc31
BLAKE2b-256 checksum
How to use checksums
09a141fa3784943538fb032f84325110bd862f4c21e0a523bef56276605c85db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for cinemagoer 2026.11.29

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

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