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.7.0.tar.gz (4.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for slimurl-0.7.0.tar.gz
Algorithm Hash digest
SHA256 99874faa4cf4e362d277fd88f4c412a84761db4e656d2083d2318e9012caa905
MD5 e08ba5894c3b5bf8b411790f431c88a1
BLAKE2b-256 c3fced691f20e7de3fb2f77f3c3cc533024218a99725de24e2981eaeb437c494

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