# urilib
[](http://travis-ci.org/core/uricore)
WARNING: Rough, raw, and fast changing code. Check back later. ;-)
–
Example of use:
>>> from httpcore.uri import URI
>>> from httpcore.iri import IRI
>>> iri = IRI(u'http://\N{SNOWMAN}/')
>>> iri
IRI(u'http://\u2603/')
>>> uri = URI(iri)
>>> uri
URI('http://xn--n3h/')
>>> iri.netloc
u'http://\u2603/'
>>> iri.hostname
'\u2603'
>>> iri.port is None
True
>>> iri.path
u'/'
>>> hasattr(iri, '__hash__')
True
>>> iri.replace(port=8000)
IRI(u'http://\u2603:8000/')
>>> iriq = iri.update_query({'foo': u'42'})
>>> iriq
IRI(u'http://\u2603/?foo=42')
>>> iriq.update_query(foo=None)
IRI(u'http://\u2603/')
>>> iriq.query
MultiDict([('foo', '42')])
>>> URI.from_template('http://{domain}/find{?year*}', domain="example.com",
... year=("1965", "2000", "2012"))
URI('http://example.com/find?year=1965&year=2000&year=2012')
Metadata
Release files for uricore 0.1.2
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 |
|---|---|---|---|---|
| uricore-0.1.2.tar.gz | 16.1 kB | Without provenance | Details for uricore-0.1.2.tar.gz |
Release files / uricore-0.1.2.tar.gz
| Download URL | uricore-0.1.2.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
390a45f51b73f32cbaa6335c6a6776b3076a84b2b27872927b128d979a20ee14
|
|
BLAKE2b-256 checksum How to use checksums |
7c2d6302ff85afbf315257e64eee39131cebf45b94e3c6f98c09fed04634f732
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for uricore 0.1.2
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.