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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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