Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Nice URLs for Python

Project Description

Sometimes it feels like working with URLs is harder than it should be. Urly is a little wrapper around the werkzeug URL class to make things easy and pleasant. One module to pip install, one import, and then everything is easy. For instance:

>>> from urly import URL
>>> url = URL('http://example.com/old/path?a=b')
>>> url.path = '/new/path'
>>> url.add_param('a', 'c')
>>> print(url)
http://example.com/new/path?a=b&a=c
>>> print(url.relative_url)
/new/path?a=b&a=c

Common tasks like changing a path, adding a parameter, and getting the relative URL, are all simple.

Urly also lets you parse URLs the way a browser would. For instance:

>>> url = URL('example.com', parse_like_browser=True)
>>> print(url)
http://example.com

Documentation

Full documentation is at https://urly.readthedocs.org.

Install

Simply install with pip:

$ pip install urly
Release History

Release History

This version
History Node

0.1.1455780396

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
urly-0.1.1455780396-py2.py3-none-any.whl (5.2 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Feb 18, 2016
urly-0.1.1455780396.tar.gz (3.5 kB) Copy SHA256 Checksum SHA256 Source Feb 18, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting