Skip to main content

A helper for UrbanTZ's public undocumented API

Project description

pyurbantz

A Python package to help with an undocumented API of UrbanTZ.

The UrbanTZ company provides a delivery management platform of the same name for other companies. To provide delivery tracking to their customers, those companies can send links to a tracking page on UrbanTZ's website, which uses a unique delivery ID in the URL to show tracking information.

Those tracking pages perform requests to an undocumented API endpoint with this tracking ID. The endpoint provides much more information than what is actually used in the pages; this package aims to provide a Python interface to help creating better tracking interfaces.

Requirements

This package just needs requests. That's it.

Scripts

This package provides a simple tracker script, urbantz.tracker, that can be invoked like this:

python -m urbantz.tracker <ID> [-f|--frequency <seconds>]

The script will perform a request every 10 seconds (by default) to the UrbanTZ API, then print the current date, time, and distance between the delivery truck and the destination.

Development

Setup

Sample setup using virtualenvwrapper:

mkvirtualenv pyurbantz -a .
pip install -e .[dev]

Linting

The source code follows the PEP 8 code style and performs CI checks using the flake8 tool. To perform the same checks locally, run flake8 on the root directory of this repository.

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

pyurbantz-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

pyurbantz-0.1.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file pyurbantz-0.1.0.tar.gz.

File metadata

  • Download URL: pyurbantz-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.6

File hashes

Hashes for pyurbantz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8ac745bf65de76dcf4aee961716d991ed9a72dbf7cfef6150c9a9d14c77ce09d
MD5 b921c35616c914c8f3eea915d0491735
BLAKE2b-256 e38952f33f4096ca8264cb741bc3faef4cd0f0ea963e8970722009c0088cfd13

See more details on using hashes here.

File details

Details for the file pyurbantz-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyurbantz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0

File hashes

Hashes for pyurbantz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8004954d4d611300aa315f2ebb2927c1201b2e97ce05be24efb7e4afd08b87a
MD5 114f207ebfec4aeeb90726563b569b6b
BLAKE2b-256 1fecb14cbc3bfd89ca63f28fe6df2388858167b046e85e583387ed5a2e6ff092

See more details on using hashes here.

Supported by

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