yggdryl — a Rust-core URI/URL library, exposed to Python
Project description
yggdryl (Python)
Python bindings for yggdryl, backed by
the Rust yggdryl core crate.
Install
pip install maturin
maturin develop # build & install into the current virtualenv
# or build a wheel:
maturin build --release
Usage
import yggdryl
uri = yggdryl.Uri("urn:isbn:0451450523")
print(uri.scheme) # urn
print(uri.path) # isbn:0451450523
url = yggdryl.Url("https://user:pw@example.com:8443/api?v=1#top")
print(url.host) # example.com
print(url.port) # 8443
print(url.username) # user
print(str(url)) # https://user:pw@example.com:8443/api?v=1#top
Invalid input raises ValueError.
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 Distribution
yggdryl-0.1.0.tar.gz
(11.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yggdryl-0.1.0.tar.gz.
File metadata
- Download URL: yggdryl-0.1.0.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36ddf43762e025e0ef4c990b363f58579743e65d98d3123df2fab36bddea9d0f
|
|
| MD5 |
b801c9abff53150f1063abdb69a73e78
|
|
| BLAKE2b-256 |
096d54219958990023e32df71656c0b79e9160fc922b6b1f99a274240b7c384a
|
File details
Details for the file yggdryl-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: yggdryl-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 220.1 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c78cf253002344176e98b14bf4ae9626e3f32d82c42bce0c6a50daeac5e981c5
|
|
| MD5 |
f65e6920d32b4797c28c90d3e3340ecd
|
|
| BLAKE2b-256 |
a0eb0089d71d0844713f9b0590052041a1677e6973ffbdb77f4da4804e2608a6
|