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
2.0.0 (2020-03-11)
1.0.1 (2018-08-03)
- Nothing yet
1.0.0 (2018-06-06)
- Allow slug instead of id for datasets #8
- Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file udata_recommendations-2.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: udata_recommendations-2.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a96bdd3470b50a1411c46b5b6443277a4d86a9e46ed437229bf1af57fd99b28 |
|
MD5 | 20126500f288ad9fbc79409d47706bba |
|
BLAKE2b-256 | 7092c569d58c355a13d1070a87a0f51c2cebf6b1cf50df85f49457938d941063 |