Skip to main content

Phylm

Actions Status Actions Status codecov PyPI version

Film data aggregation with async support.

Motivation

When deciding which film to watch next, it can be helpful to have some key datapoints at your fingertips, for example, the genre, the cast, the Metacritic score and, perhaps most importantly, the runtime. This package provides a Phylm class to gather information from various sources for a given film.

Installation

pip install phylm

Usage

>>> from phylm import Phylm
>>> p = Phylm("The Matrix")
>>> await p.load_sources(["imdb", "mtc"])
>>> p.imdb.year
1999
>>> p.imdb.rating
8.7
>>> p.mtc.rating
73

phylm also provides some tools around movie search results and more:

>>> from phylm.tools import search_movies, get_streaming_providers
>>> search_movies("the matrix")
[{
  'title': 'The Matrix',
  'kind': 'movie',
  'year': 1999,
  'cover_photo': 'https://some-url.com',
  'imdb_id': '0133093',
}, {
  'title': 'The Matrix Reloaded',
  'kind': 'movie',
  'year': 2003,
  'cover_photo': 'https://some-url.com',
  'imdb_id': '0234215',
}, {
...
>>> get_streaming_providers("0234215", regions=["gb"])
{
  'gb': {
    'rent': [{
      'display_priority': 8,
      'logo_path': '/pZgeSWpfvD59x6sY6stT5c6uc2h.jpg',
      'provider_id': 130,
      'provider_name': 'Sky Store',
    }],
    'flatrate': [{
      'display_priority': 8,
      'logo_path': '/ik9djlxNlex6sY6Kjsundc2h.jpg',
      'provider_id': 87,
      'provider_name': 'Netflix',
    }]
  }, {
  ...
}

Help

See the documentation for more details.

Licence

MIT

Metadata

Release files for phylm 6.1.4

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

Source distribution (sdist)

Source distribution for phylm 6.1.4
File Size Uploaded Provenance Actions
phylm-6.1.4.tar.gz 12.2 kB Without provenance Details for phylm-6.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phylm 6.1.4
File Interpreter ABI Platform Actions
phylm-6.1.4-py3-none-any.whl Python 3 none any Details for phylm-6.1.4-py3-none-any.whl

Total release size: 27.8 kB

Release files / phylm-6.1.4.tar.gz

Download URL phylm-6.1.4.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
769603193aee3ff6670bd5346e5872825b727592e1b94f3de0dcc875ee81fc96
BLAKE2b-256 checksum
How to use checksums
dfdd849b1f1d24d75f76cc07394cd3153d93dee464e0cb5a319ef9330da6a357
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / phylm-6.1.4-py3-none-any.whl

Download URL phylm-6.1.4-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a80f7151903a280321a7b76dfece2348a0439a7f471b56374308475511bc2493
BLAKE2b-256 checksum
How to use checksums
df7863fedf2e372b720285e9134fd17fa676716f3382415bb491ffb02294f354
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for phylm 6.1.4

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.

Release history Release notifications | RSS feed

This release

6.1.4 This release

2 release files No provenance

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