~bac/lazr.uri/trunk

« back to all changes in this revision

Viewing changes to src/lazr/uri/README.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2009-03-23 21:46:11 UTC
  • mfrom: (25.1.6 lazr.uri)
  • Revision ID: launchpad@pqm.canonical.com-20090323214611-ufurv3r1lvndntvp
MergeĀ fromĀ lp:~gary/lazr.uri/trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
    lazr.uri is free software: you can redistribute it and/or modify it
5
5
    under the terms of the GNU Lesser General Public License as published by
6
 
    the Free Software Foundation, either version 3 of the License, or (at your
7
 
    option) any later version.
 
6
    the Free Software Foundation, version 3 of the License.
8
7
 
9
8
    lazr.uri is distributed in the hope that it will be useful, but
10
9
    WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14
13
    You should have received a copy of the GNU Lesser General Public License
15
14
    along with lazr.uri.  If not, see <http://www.gnu.org/licenses/>.
16
15
 
17
 
= lazr.uri =
 
16
lazr.uri
 
17
********
18
18
 
19
19
The lazr.uri package includes code for parsing and dealing with URIs.
20
20
 
22
22
    >>> print 'VERSION:', lazr.uri.__version__
23
23
    VERSION: ...
24
24
 
25
 
 
26
 
== The URI class ==
 
25
=============
 
26
The URI class
 
27
=============
27
28
 
28
29
    >>> from lazr.uri import URI
29
30
    >>> uri1 = URI('http://localhost/foo/bar?123')
105
106
    >>> uri.fragment
106
107
    'horse+cart'
107
108
 
108
 
 
109
 
== Finding URIs in Text ==
 
109
====================
 
110
Finding URIs in Text
 
111
====================
110
112
 
111
113
lazr.uri also knows how to retrieve a list of URIs from a block of
112
114
text.  This is intended for uses like finding bug tracker URIs or
135
137
  xmpp:fred@example.org
136
138
  http://bazaar.launchpad.net/~name12/firefox/foo
137
139
  http://somewhere.in/time?track=[02]#wasted-years
 
140
 
 
141
===============
 
142
Other Documents
 
143
===============
 
144
 
 
145
.. toctree::
 
146
   :glob:
 
147
 
 
148
   *
 
149
   docs/*