Skip to main content

uData content recommendations bridge

Project description

udata-recommendations

This plugin acts as a bridge between uData and a recommendation system.

In our case (data.gouv.fr), it’s a set of scripts living here https://github.com/etalab/datasets_reco.

Compatibility

udata-recommendations requires Python 2.7+ and uData.

Installation

Install uData.

Remain in the same virtual environment (for Python) and use the same version of npm (for JS).

Install udata-recommendations:

pip install udata-recommendations

Modify your local configuration file of udata (typically, udata.cfg) as following:

PLUGINS = ['recommendations']
RECOMMENDATIONS_DATASETS_SOURCE_URL = 'http://path/to/recommendations.json'

Then run the command to fetch recommendations:

udata recommendations datasets

Expectations

This plugin expects the following format to provide datasets recommendations:

{
    "id": "dataset-id",
    "recommendations": [
        {
            "id": "dataset-recommended-1"
        },
        {
            "id": "dataset-recommended-2"
        }
    ]
}

Changelog

1.0.0 (2018-06-06)

  • Allow slug instead of id for datasets #8

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

udata_recommendations-1.0.0-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file udata_recommendations-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for udata_recommendations-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6db6d4c0ad45049d0ab8465fecb43e9228ceb5ccf211f9877c974084c84bddf4
MD5 88d69c0ecf981c2a77503a67a8908192
BLAKE2b-256 4b34d87b779b378a6d80c05a209f307c84a8ea3440a56a6d1f0b57f58575e682

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