How to install
============================
easy_install miniuri
What does it do?
============================
miniuri is a universal URI parser class.
The parser grants access to the following attributes::
foo://username:password@test.com:808/go/to/index.php?pet=cat&name=bam#eye
\_/ \_______________/ \______/ \_/ \___/ \_/ \_______________/\_/
| | | | | | | |
| userinfo hostname | | | query fragment
| \___________________________|/\________|____|_/
| | | | | |
scheme authority | path | extension
| |
port filename
How to use
============================
This example shows how you can set and get any of the URI attributes::
>>> from miniuri import Uri
>>> u = Uri( "http://www.foxhop.net/samsung/HL-T5087SA/red-LED-failure" )
>>> u.uri = "https://fox:pass@www.foxhop.net:81/path/filename.jpg?p=2#5"
>>> print u.uri
https://fox:pass@www.foxhop.net:81/path/filename.jpg?p=2#5
>>> print u.hostname
www.foxhop.net
>>> print u.scheme
https
>>> u.username = 'max'
>>> print u
https://max:pass@www.foxhop.net:81/path/filename.jpg?p=2#5
How do I thank you?
============================
You should follow me on http://twitter.com/russellbal
License
============================
Public Domain
============================
easy_install miniuri
What does it do?
============================
miniuri is a universal URI parser class.
The parser grants access to the following attributes::
foo://username:password@test.com:808/go/to/index.php?pet=cat&name=bam#eye
\_/ \_______________/ \______/ \_/ \___/ \_/ \_______________/\_/
| | | | | | | |
| userinfo hostname | | | query fragment
| \___________________________|/\________|____|_/
| | | | | |
scheme authority | path | extension
| |
port filename
How to use
============================
This example shows how you can set and get any of the URI attributes::
>>> from miniuri import Uri
>>> u = Uri( "http://www.foxhop.net/samsung/HL-T5087SA/red-LED-failure" )
>>> u.uri = "https://fox:pass@www.foxhop.net:81/path/filename.jpg?p=2#5"
>>> print u.uri
https://fox:pass@www.foxhop.net:81/path/filename.jpg?p=2#5
>>> print u.hostname
www.foxhop.net
>>> print u.scheme
https
>>> u.username = 'max'
>>> print u
https://max:pass@www.foxhop.net:81/path/filename.jpg?p=2#5
How do I thank you?
============================
You should follow me on http://twitter.com/russellbal
License
============================
Public Domain
Metadata
Release files for miniuri 0.0.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 | |
|---|---|---|---|
| miniuri-0.0.2.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| miniuri-0.0.2-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 7.1 kB
Release files / miniuri-0.0.2.tar.gz
| Download URL | miniuri-0.0.2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a441cf457913db0e35da1c4fbb3e6f67d3398d22b2b3627de63ae674c5e03a90
|
|
BLAKE2b-256 checksum How to use checksums |
802c6bd53390ae71127a1eb3de17f47a73f91596f87b317a9da3308a42f3d2c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / miniuri-0.0.2-py2.7.egg
| Download URL | miniuri-0.0.2-py2.7.egg |
|---|---|
| Size | 4.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
212aab8c187b9df627736b60556b82b3a2e9473c89fa272cf6c426094349e392
|
|
BLAKE2b-256 checksum How to use checksums |
8b4901066df7a6a6e4e0a9f679ea381ec72ad2474d8e82d44da2963189ee8d19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |