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 scheme authority | path | extension
| | | |
port filename port filename
Tutorial Tutorial
======== ========
@ -38,15 +39,17 @@ This example shows how you can set and get any of the URI attributes:
>>> from miniuri import Uri >>> from miniuri import Uri
>>> u = Uri( "http://www.foxhop.net/samsung/HL-T5087SA/red-LED-failure" ) >>> 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" >>> u.uri = "https://fox:pass@www.foxhop.net:81/path/filename.jpg?p=2#5"
>>> print u.uri >>> print(u.uri)
https://fox:pass@www.foxhop.net:81/path/filename.jpg?p=2#5 'https://fox:pass@www.foxhop.net:81/path/filename.jpg?p=2#5'
>>> print u.hostname >>> print(u.hostname)
www.foxhop.net 'www.foxhop.net'
>>> print u.scheme >>> print(u.scheme)
https 'https'
>>> u.username = 'max' >>> u.username = 'max'
>>> print u >>> print(u)
https://max:pass@www.foxhop.net:81/path/filename.jpg?p=2#5 '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? How do I thank you?
=================== ===================

View file

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