Skip to main content

The purpose of this package is to standardize URL declaration in the codebase

Project description

urlx

UrlX

Supported Python versions Package version Build Docs

Supported Versions Supported Versions Supported Versions Supported Versions


urlx - provide new data type - Url. The purpose of this package is to standardize URL declaration in the codebase. This approach should reduce the number of errors and speed up code writing.


Example

from pathlib import Path

from urlx import Url, Protocol, Port

url = Url(
    protocol=Protocol.HTTPS,
    host='localhost',
    port=Port.HTTPS_443,
    path=Path('api/user-list'),
    query={
        'limit': '100',
        'skip': '20',
    },
)
print(url)

Output:

https://localhost:443/api/user-list?limit=100&skip=20


Links

Source code: github.com/VolodymyrBor/urlx

Documentation: urlx

Changelog: changelog

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

urlx-1.0.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

urlx-1.0.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file urlx-1.0.1.tar.gz.

File metadata

  • Download URL: urlx-1.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.15.0-1023-azure

File hashes

Hashes for urlx-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c1e7b92f207a7f968eded182f0070e4859e02e1c000e1772ee22f62c1f730925
MD5 bd0485ca727ca0fd1c25b27159e9c5cd
BLAKE2b-256 225385d0708bdc4e19e2f94865dcc7464b22b8f544ef99c7c77fac61a5e4ebb0

See more details on using hashes here.

File details

Details for the file urlx-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: urlx-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.15.0-1023-azure

File hashes

Hashes for urlx-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4bae4cc635e93194b1af857cf5652027529120b275421899ecf5dd84f546a03
MD5 29f0a7b484dc9ff718cca8bae7098a08
BLAKE2b-256 563b36524717d1d14a25080b7aafc00b1d7ab34e8e782313e9c58f87839d01b7

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