Skip to main content

SlimURL - Fast library for parsing and building URL addresses

Project description

https://travis-ci.org/mosquito/slimurl.svg Latest Version https://img.shields.io/pypi/wheel/slimurl.svg https://img.shields.io/pypi/pyversions/slimurl.svg https://img.shields.io/pypi/l/slimurl.svg

Slim URL - is fast wrapper for construction or/and parse URL components. Parsing based on regular expressions.

Example:

from slimurl import URL

url = URL('http://example.net')
print("%r" % url)
# <URL "http://example.net/">

print((url.host, url.port, url.scheme))
# ('example.net', 80, 'http')

URL('http://example.net') == URL('http://example.net/')
# True

URL('http://example.net:80') == URL('http://example.net/')
# True

URL('http://example.net') == URL('http://example.net/?foo=bar')
# False

Project details


Download files

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

Source Distribution

slimurl-0.5.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

slimurl-0.5.4-py2-none-any.whl (5.3 kB view details)

Uploaded Python 2

File details

Details for the file slimurl-0.5.4.tar.gz.

File metadata

  • Download URL: slimurl-0.5.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for slimurl-0.5.4.tar.gz
Algorithm Hash digest
SHA256 fd179b3517c8f3584c15d86f24ffeb1c0493b8b9e901b73ab8191dd730966985
MD5 4163db2a6400e4484d8c4a3656bddfbf
BLAKE2b-256 9673c6c858c4cfefa25122a249cf1e3314453a532605dcc6deffb09a65e69b6a

See more details on using hashes here.

File details

Details for the file slimurl-0.5.4-py2-none-any.whl.

File metadata

File hashes

Hashes for slimurl-0.5.4-py2-none-any.whl
Algorithm Hash digest
SHA256 a77153487d743008de7b6285717d3d8313757b75fc0c48182f0accb51c7f5f29
MD5 c3167e75472ce59ddc9f6c48df1e6342
BLAKE2b-256 b2118f68babfe34c8b826071af51e3332fda23e5eea34052dfb5c47a08ce6b98

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page