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.1.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.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: urlformat-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 783ccf8a046a24f73a6b974cb2364d35cd1cd090a811c7219e69c0475bfa88ed
MD5 29c0942ca783c49015ea19ed6a85f2fd
BLAKE2b-256 a888b5c3c0f58ae5cca2197c54ca57c36055559fac8108cfa23bc07a8ae5f48e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: urlformat-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 681d81f312a82f79afccc6a3ce0095235b0d5d1615f4da04ee07d4e51696070f
MD5 cb4532b6e9544d1785bf5488761fe28c
BLAKE2b-256 19d7261cdd318e0763420c175c477926058a0ba6b5787961eb17533d4a5c07ac

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