Skip to main content
miniuri
#######

miniuri is a universal URI parser class.

It is written in 120 lines of Python.

Installation
============

.. code-block:: bash

pip install miniuri

What does it do?
================

The parser grants access to the following attributes:

.. code-block:: python

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
Tutorial
========

This example shows how you can set and get any of the URI attributes:

.. code-block:: python

>>> 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


Public Revision Control
=======================

https://bitbucket.org/russellballestrini/miniuri/overview

Metadata

Release files for miniuri 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for miniuri 1.0.2
File Size Uploaded
miniuri-1.0.2.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for miniuri 1.0.2
File Interpreter ABI Platform
miniuri-1.0.2-py2.7.egg Legacy Egg format - - Details

Total release size: 8.0 kB

Release files / miniuri-1.0.2.tar.gz

Download URL miniuri-1.0.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bafb9cce81b138a8e315d45090ab3339723c5ddbd035485f31131430048fc7f6
BLAKE2b-256 checksum
How to use checksums
8d66f9a9260217196525b24451b80a00688eee445f737563f5c348529a3970fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / miniuri-1.0.2-py2.7.egg

Download URL miniuri-1.0.2-py2.7.egg
Size 5.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
5ce425e17ce4a3653fd103c84ba8ec43f86406656507f9ae851311e518aad839
BLAKE2b-256 checksum
How to use checksums
f8c17753a2b744279972a6eded6aa8cef803b52fa9471f35c3f31ddf01fa6b23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.2.0

2 release files

1.1.0

1 release file

1.0.9

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page