Skip to main content

API utils simplify life when creating or consuming APIs

Project description

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

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

api-utils-2019.9.18-3.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

api_utils-2019.9.18-3-py3-none-any.whl (17.5 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