Skip to main content

API utils

Code style: black

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

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

Uploaded Source

Built Distribution

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

api_utils-2019.9.18-3-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file api-utils-2019.9.18-3.tar.gz.

File metadata

  • Download URL: api-utils-2019.9.18-3.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for api-utils-2019.9.18-3.tar.gz
Algorithm Hash digest
SHA256 6b823478e760fae8a6be552301db08b5528f7dab0c9244d4f74b1974f6820325
MD5 871581e06f727f6ab3fda8f3e4b03938
BLAKE2b-256 c66ee45e92ad8d7328bf3fbbb1347f8e7fa652e39722075269a99231752eb1c2

See more details on using hashes here.

File details

Details for the file api_utils-2019.9.18-3-py3-none-any.whl.

File metadata

  • Download URL: api_utils-2019.9.18-3-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for api_utils-2019.9.18-3-py3-none-any.whl
Algorithm Hash digest
SHA256 bf0757299cfaa30c6d91a9c9c10334179f286101bff14f2d71edd3e824e941ee
MD5 9e2778cc0c539455bd1349b4365784d2
BLAKE2b-256 eed3172d967c34459646ca2c9394e96d22f4ec6abefd6b6c6383b58b5d1ad37c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2019.9.18 This release

2 files

Supported by

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