changed README.rst
changed setup.py
This commit is contained in:
parent
f04c7ff72d
commit
7366d718c4
2 changed files with 12 additions and 9 deletions
19
README.rst
19
README.rst
|
|
@ -28,6 +28,7 @@ The parser grants access to the following attributes:
|
|||
scheme authority | path | extension
|
||||
| |
|
||||
port filename
|
||||
|
||||
Tutorial
|
||||
========
|
||||
|
||||
|
|
@ -38,15 +39,17 @@ 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
|
||||
>>> 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
|
||||
>>> print(u)
|
||||
'https://max:pass@www.foxhop.net:81/path/filename.jpg?p=2#5'
|
||||
>>> print(u.relative_uri)
|
||||
'/path/filename.jpg?p=2#5'
|
||||
|
||||
How do I thank you?
|
||||
===================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue