changed README.rst

changed setup.py
This commit is contained in:
russellballestrini 2017-12-10 14:04:26 -05:00
parent f04c7ff72d
commit 7366d718c4
2 changed files with 12 additions and 9 deletions

View file

@ -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?
===================

View file

@ -7,7 +7,7 @@ from setuptools import (
setup(
name='miniuri',
version='1.0.3',
version='1.0.4',
long_description = open('README.rst').read(),
description='miniuri: The Universal URI Parser',
keywords = 'miniuri uri url parser',