Skip to main content

Genre classification used by Paylogic.

Project description

Classification of genres used in the Paylogic API.

The keys represent descriptive genre codes. Genres have hierarchy and some genres have a reference to a parent genre. There are also name translations provided for different language codes.

paylogic_genres.json:

{
    "SPORTS": {
        "ecc": "02",
        "name": {
            "fr": "Sports",
            "en": "Sports",
            "nl": "Sports",
            "pt": "Sports",
            "de": "Sports",
            "tr": "Sports",
            "es": "Sports"
        }
    },
    "SPORTS:RUGBY": {
        "ecc": "02.06",
        "name": {
            "fr": "Rugby",
            "en": "Rugby",
            "nl": "Rugby",
            "pt": "Rugby",
            "de": "Rugby",
            "tr": "Rugby",
            "es": "Rugby"
        },
        "parent": "SPORTS"
    },
    ...
}

Usage

You can include paylogic_genres.json to your project and lookup the genre names and traverse the hierarchy.

Python

Genre definitions can also be installed as python package. Django users can simply add it to INSTALLED_APPS and get names translation using gettext (Example: ugettext(“SPORTS:RUGBY”)).

The genres json file is parsed in python and also avalable for use.

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

paylogic-genres-1.0.0.tar.gz (25.2 kB view details)

Uploaded Source

File details

Details for the file paylogic-genres-1.0.0.tar.gz.

File metadata

File hashes

Hashes for paylogic-genres-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9b3865754a2dbb67baa2d56ac56c34bacae533bb9b0b1abd5597ff4aa0439ae5
MD5 463347bf809682b0ce26e3915b59092c
BLAKE2b-256 f9db0133b2919d691db1946d05b7130846dacc34e0938278db7bc919cc837dc2

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