Skip to main content

A package for formatting valid URL's.

Project description

urlformat

URL formatter for web addresses written in Python

This URL parsing/building class can handle any and all correctly formed URL's. Feel free to use any of the code and if you have any improvements please feel free to fork this repo. and push updates to me. Thank you.

It should be noted that I try to maintain a high level of PEP codestyle and linting guidelines. I used the PIP package manager with the pylint, pycodestyle and flake8 packages.

Installation:

python3 pip -m install urlformat

or

pip install urlformat

Usage:

import urlformat

x = urlformat.UrlParser("https://www.google.com")
x = x.get_scheme()

print(x)

Output: https

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

urlformat-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

urlformat-0.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: urlformat-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for urlformat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 abb2f9260c057a65ad25c2d56238cc2ea04cc244018280b88e77d051d72d1578
MD5 e8fa376b30493fa082b2c274eaf4807b
BLAKE2b-256 dcaf4e55a123cd48500a8064726980e4bbac058d3a335039fd3b9fe2fe77ce8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: urlformat-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for urlformat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8dd7ee2c018ca135c9281939d55433bd510e243dd2427aa2897917cae358fa39
MD5 2bad1341706db2c07550f97739912c19
BLAKE2b-256 cb0c8b623b0f9bf77e06638bf7859840129827d36c8068ef5b723c7412e9e5f7

See more details on using hashes here.

Supported by

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