Skip to main content

Scriptable Database-Driven NFO Generator for Movies and TV.

Project description

nfog

License Python Support Release GitHub issues

Scriptable Database-Driven NFO Generator for Movies and TV.

Installation

pip install --user nfog

Building

Dependencies

Installation

  1. git clone https://github.com/rlaphoenix/nfog
  2. cd nfog
  3. poetry config virtualenvs.in-project true (optional, but recommended)
  4. poetry install
  5. nfo -h

Creating Templates

We use Template's to define the structure and logic that creates your NFO file. Your Template file may create NFOs of any kind of encoding or style, including ASCII, ANSI, and such. You don't have to conform to any specifications of any kind, but are encouraged to if possible.

To create a Template file, you simply need to inherit the Template class in nfog.template, fill out the various abstract methods/properties, and create an nfo property that returns a final string.

Take a look at the Example Templates for pre-made examples for various NFO usage scenarios. You may modify these Templates in any way you like.

Note: While you have complete freedom with what Python code you run from within the template, this also means you should not immediately trust template file as they are after all still Python files.

Creating Artwork

Just like Templates, we use Artwork files to define the look and style of the surrounding NFO. You may also do introspection of the NFO output to merge style within the contents of the NFO as well.

To create an Artwork file, inherit the Artwork class in nfog.artwork, fill out any abstract methods and properties, and create the with_template function that returns the final string containing both the NFO output (from template argument) and the Artwork.

Take a look at the Example Artwork to see how these are used. However, you cannot re-use these, or make derivative works. Please see the Artwork License for more information.

Using Templates and Artwork

To use Templates and Artwork, calling nfo (or nfo generate) will ask you for various information, but one of them is a Template to use. The Templates it makes available to use are loaded from the user templates directory which can be found by typing nfo version.

To use an Artwork, specify the name of the Artwork file (case-sensitive) to -a/--artwork. Using an Artwork is completely optional.

For more information on using nfog, see the usage help by calling nfo --help.

License

Apache License, Version 2.0

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

nfog-1.1.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

nfog-1.1.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file nfog-1.1.0.tar.gz.

File metadata

  • Download URL: nfog-1.1.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.10.2 Linux/5.11.0-1027-azure

File hashes

Hashes for nfog-1.1.0.tar.gz
Algorithm Hash digest
SHA256 660960971cb438e8d480a351df45f38b290b1316b049f7232fdb7f1137c6b9d7
MD5 7505b6a41c384cf83ab7abffd7f601b1
BLAKE2b-256 17947f650cd1afaffb983cb4051e5253661bdb33afa7e55885a5125216deb7cb

See more details on using hashes here.

File details

Details for the file nfog-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: nfog-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.10.2 Linux/5.11.0-1027-azure

File hashes

Hashes for nfog-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03874d9919ed5ee0c9706fddfa33a19fe955ba2924658da8a47949dfd2128bdf
MD5 2c2bf5880fd163b54f63c8e6713867dd
BLAKE2b-256 c4ecc694fa5c1953972cdf2f6c366c909027656b2c6c552cd2c741525aafc128

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page