Skip to main content

Package to encode and decode JSON files with the standard exchange format of the Federation International de Bureaux d'Extraits de Presse.

Project description

FIBEP-JSON-Interpreter

This is a simple interpreter for the FIBEP JSON Format. It includes both the methods to encode and decode Official FIBEP standard JSON format files. You can easily integrate into your own software by using the methods fibep_decode() which takes a json file as input and returns an Article class object, including the following attributes: Mandatory: provider, item_id, country_iso, language_iso, source_id, source_name, article_publication_timestamp, article_lead, article_text, article_source_channel

Optional: additional_content_list, content_url, contract_id, customer_id, profile_id, article_author, article_headline, matching_words_list

additional_content_list and matching_words_list are both list of dictionaries that can contain many dictionaries.In the case of additional_content_list, if it has base64 encoded elements, the library automatically decodes them and regenerates the original file per the standard.

You can try the programa directly in your cli using the following syntax: fibep_interpreter DIR -d FILETODECODE where DIR is the directory in wich the file is in (defaults to the directory in which the program is installed).

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

fibepjson-0.2.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

fibepjson-0.2-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

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