Skip to main content

Human-friendly URL parsing in python

Project description

HFURL - Human-friendly URL

This is a tiny python library taht provides parsing for human-firendly. Completely disregarding RFC it correctly parses url with no schema (eg. example.com is equivalent to https://example.com/).

Useful when reading input URL from user, who as we al know, often omit schema.

Usage

from hfurl import parse_url

url = parse_url("example.com:443/about")
assert url.host == "example.com"

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

hfurl-0.1.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

hfurl-0.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file hfurl-0.1.0.tar.gz.

File metadata

  • Download URL: hfurl-0.1.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.10.0 Windows/10

File hashes

Hashes for hfurl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cef7d08cec1f3a78fef08241f516e82d9cdb463c992118f2410f1947c94571d2
MD5 2deb27f1609670d441a67ea2fb88317c
BLAKE2b-256 698dc5fbf05a9251de6b347d82df9e1ea8c133324b7f907d0a9b155801149ed9

See more details on using hashes here.

File details

Details for the file hfurl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hfurl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.10.0 Windows/10

File hashes

Hashes for hfurl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d26ab532202c1ffe242c34f3114f9448afc8148d51657a8ce88263b8f76155a
MD5 5c42c6c61e9a982fa9d338563753238d
BLAKE2b-256 cb54d444fca6dfcbccdcb4519495dd94b7c84ca36c9ab1c1d339fc0bd02efa9c

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