Skip to main content

UriNormRules

PyPI version Latest Stable Version License

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)

Source distribution for acdh-uri-norm-rules 2.0.0
File Size Uploaded
acdh_uri-norm-rules-2.0.0.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for acdh-uri-norm-rules 2.0.0
File Interpreter ABI Platform
acdh_uri_norm_rules-2.0.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page