Skip to main content

Helper to get pickup times for garbage

Project description

VafabApi

A small api wrapper to handle the complexity of getting the json and converting it to a typed object.

Warning

Currently this uses a backward engineered API and could therefore break at any moment.

Installation


pip install VafabApi

Get started

How to use:

# At this point VafabMiljö does not have an official API.

from VafabApi import VafabUnafficial as Vafab



# Call with address

address = "..."

addr_id = Vafab.get_address_identifier(address).buildings[0]

print(addr_id)  # Prints the address id

addr_services = Vafab.get_service_info(addr_id)

print(addr_services)  # Prints the object containing all fetched services

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

VafabApi-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

VafabApi-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: VafabApi-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for VafabApi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e55427bba79acbb270c7de27775bf12d70fd5e9766af1c97a969a8b4f25ddb03
MD5 ddbaa98a883da435a9d9c439355dfc9d
BLAKE2b-256 b282e275a5b0ab95536b28bfbcce27d5b49fa1d0eeb3962c7ab368263ad96a47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: VafabApi-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for VafabApi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1130cdae0782c0661c3b6aafc1a11faa7e6253c0ad615178562bbfa36fad28d
MD5 7a412247212348b925b4adaf211d5343
BLAKE2b-256 d13d3f3e2fe01d06ad3b3b019c765bbada6d14e3ae10b56f05b60cd3cd60245a

See more details on using hashes here.

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