food_gov_uk
Tools for grabbing data from food.gov.uk
pip install --upgrade git+https://github.com/ouseful-datasupply/food_gov_uk.git
Command Line Interface
The CLI will scrape the UK Food Standards Agency ratings data XML files and construct a simple SQLite database from them containing two tables:
fsa_ratings_metadata: containing the name and publication date of each scraped fileUSER-DEFINED(default:ratingstable) containing the ratings data from the XML files.
The created database can then be used with tools such as datasette.
Usage: fsa_data [OPTIONS] COMMAND
Commands:
collect Collect data from FSA website
Options:
--dbname TEXT SQLite database name (default: fsa_ratings_all.db)
--ratingstable TEXT FSA Ratings table name (default: ratingstable)
--area TEXT Specfiy an area to download data for
--authority TEXT Specfiy a local authority to download data for
--help Show this message and exit.
Metadata
Release files for ouseful-fsa-datasupply 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ouseful_fsa_datasupply-0.2.0.tar.gz | 6.7 kB | Without provenance | Details for ouseful_fsa_datasupply-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ouseful_fsa_datasupply-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ouseful_fsa_datasupply-0.2.0-py3-none-any.whl |
Total release size: 14.7 kB
Release files / ouseful_fsa_datasupply-0.2.0.tar.gz
| Download URL | ouseful_fsa_datasupply-0.2.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33d5db00bd4886f42542ecc0542096e43c923621322a765cce0c73e6e5c5f75b
|
|
BLAKE2b-256 checksum How to use checksums |
96b9ebdcb1f4fa28aae6b3873669f54a736c21a7f32d86712891c2f3012adadf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.0
|
Release files / ouseful_fsa_datasupply-0.2.0-py3-none-any.whl
| Download URL | ouseful_fsa_datasupply-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4bfeead0e54158ce570dabf876653e2ca244638a265659846b45c1c37bd5de8
|
|
BLAKE2b-256 checksum How to use checksums |
482331cfc6dec52bdb282e709ab90cf68bb70c36cf7df2cddc1b32bb58206152
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.0
|
Security for ouseful-fsa-datasupply 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.