paylogic-genres 1.0.0

Last updated:

0 purchases

paylogic-genres 1.0.0 Image
paylogic-genres 1.0.0 Images
Add to Cart

Description:

paylogicgenres 1.0.0

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.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.