Skip to main content

CLI for working with Netflix Open Content resources.

Project description

Netflix Open Content Helper

A command-line utility for downloading test frames from Netflix Open Content.

PyPI - Python Version Build Status Documentation PyPI - Version

GitHub License Tests Status Coverage Status codecov

This is the readme for developers. The documentation for users is available here: https://jdmacleod.github.io/netflix-open-content-helper/

Prerequisites

You will need the AWS CLI installed and available in $PATH to download frame content. No AWS account is needed however, as we use -no-sign-request when downloading files.

Quickstart

Install using pip or pipx.

$ pip install netflix-open-content-helper

or

$ pipx install netflix-open-content-helper

This will provide the command-line utility noc.

Using noc with Netflix Open Content

Download the first frame of Sparks to the current directory.

$ noc download sparks
Downloading: sparks frames 1-1
Downloading... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:11

List the available Netflix Open Content Assets with frame content.

$ noc list
Available content with frames:
- chimera             : Live action footage, 4K. Download configured for the 23.98fps frame rate version. TIFF files.
- cosmoslaundromat    : Animated short film done in Blender, 2K 24p. EXR files.
- meridian            : Live action noir UHD short, 59.94fps. Mastered in Dolby Vision HDR. TIFF files.
- sparks              : Live action 4K HDR test short, 59.94fps, finished at 4000 nits. ACES EXR files.

Open a new web browser window to the Netflix Open Content URL.

$ noc browse
... (web browser opens)

Get a list of Shots from a file (CSV, JSON, or YAML).

$ noc get shotlist.yaml
Getting Shots...  [------------------------------------]    0%Downloading: sparks frames 5000-5001
Downloading Frames... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:23
Getting Shots...  [####################################]  100%

See the user documentation for more examples.

Developer Setup

Clone this repository (or fork on GitHub).

In the local repository directory, set up for Python development. The steps below show Astral's uv in use - but using Python venv is also fine.

# Create and activate Python virtual environment
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install development dependencies with the project set as editable
uv pip install -e ".[dev]"

# Install Git pre-commit hooks
pre-commit install

Create a feature branch and make changes. See TESTS.md for details on running this product's tests.

Contributing

Contributions to improve this utility are welcome! Please submit issues and pull requests on GitHub.

License

This code is MIT licensed. See the LICENSE file for details.

Credits

Created and maintained by Jason MacLeod.

Reference

See REFERENCE.md for details on how this project is set up, including more developer details.

Made using Marc Goodner's Python Template

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

netflix_open_content_helper-0.2.0.tar.gz (57.9 kB view details)

Uploaded Source

Built Distribution

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

netflix_open_content_helper-0.2.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file netflix_open_content_helper-0.2.0.tar.gz.

File metadata

File hashes

Hashes for netflix_open_content_helper-0.2.0.tar.gz
Algorithm Hash digest
SHA256 33e5b74f02790cd043a8c8a06c67b32e19ba79f34c30988f3184a6a2ced4a22c
MD5 3ea6141e6dda4837c76ec3f893e9fa89
BLAKE2b-256 0c05da982405d617e42e702d3bfe76a13b473fc0cac582f3dbc56dc015b071b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for netflix_open_content_helper-0.2.0.tar.gz:

Publisher: release-to-pypi.yml on jdmacleod/netflix-open-content-helper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file netflix_open_content_helper-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for netflix_open_content_helper-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5a76fb9cfd2a66695a8e9edf092e6f12342940b285ce6acac0ec76a5d932359
MD5 d5facc75357618f46b611d8aff89a249
BLAKE2b-256 cefe535a433ffd5553be0268b1ef5a87cb97166fbc0ca2375ce400ecb0b8a897

See more details on using hashes here.

Provenance

The following attestation bundles were made for netflix_open_content_helper-0.2.0-py3-none-any.whl:

Publisher: release-to-pypi.yml on jdmacleod/netflix-open-content-helper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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