UriNormRules
Set of URI normalization rules used within the ACDH-CD.
Provides Python 3 and PHP bindings.
Rules are stored as a JSON in the UriNormRules/rules.json file.
Installation & usage
Python
- Install using pip3:
pip3 install acdh_uri-norm-rules
- Use with
from AcdhUriNormRules import get_rules, get_normalized_uri print(AcdhUriNormRules.get_rules()) wrong_id = "http://sws.geonames.org/1232324343/linz.html" good_id = get_normalized_uri(wrong_id) print(good_id) # "https://www.geonames.org/1232324343"
PHP
- Install using using composer:
composer require acdh-oeaw/uri-norm-rules
- Usage with
require_once 'vendor/autoload.php'; print_r(acdhOeaw\UriNormRules::getRules());
Metadata
Release files for acdh-uri-norm-rules 2.0.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 |
|---|---|---|---|---|
| acdh_uri-norm-rules-2.0.0.tar.gz | 3.0 kB | Without provenance | Details for acdh_uri-norm-rules-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| acdh_uri_norm_rules-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for acdh_uri_norm_rules-2.0.0-py3-none-any.whl |
Total release size: 7.6 kB
Release files / acdh_uri-norm-rules-2.0.0.tar.gz
| Download URL | acdh_uri-norm-rules-2.0.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13f78f4c89bf6eca731e4eb8865512b0d61914468c189b1a6138d308184382ab
|
|
BLAKE2b-256 checksum How to use checksums |
57a019fa2aa878934417b9b28355b8cb794a3a365eda4d0614a9cd7b709ade25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|
Release files / acdh_uri_norm_rules-2.0.0-py3-none-any.whl
| Download URL | acdh_uri_norm_rules-2.0.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e6317b422cd8f5744e01bac5f5607f73ad7037331af07911d87e18cce426114
|
|
BLAKE2b-256 checksum How to use checksums |
68063351d50f10b9037f649476a00c523946b788d6fb2b05ae6a054998c1c941
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|
Security for acdh-uri-norm-rules 2.0.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.