API utils simplify life when creating or consuming APIs
Project description
API utils
API utils simplify life when creating or consuming APIs
Module: apiu.path
Method: apiu.path.join()
Join one or more path components intelligently.
Rules:
- If any component starts with "http", all previous parts will be discarded.
- The returned path will always start with "/", except if it starts with "http".
- The returned path will never end with "/", except when ending in a protocol notation ("://") or enforced (see below)
- A trailing slash can be enforced with a final component "/"
- Empty strings are skipped
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
api-utils-2019.9.18-3.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for api_utils-2019.9.18-3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf0757299cfaa30c6d91a9c9c10334179f286101bff14f2d71edd3e824e941ee |
|
MD5 | 9e2778cc0c539455bd1349b4365784d2 |
|
BLAKE2b-256 | eed3172d967c34459646ca2c9394e96d22f4ec6abefd6b6c6383b58b5d1ad37c |