Skip to main content

A Python API for info from the City and County of Denver, CO

Project description

📡 pyden: A simple Python API for Tile® Bluetooth trackers

.. image:: :target:

.. image:: :target:

.. image:: :target:

.. image:: :target:

.. image:: :target:

.. image:: :target:

.. image::!-1EAEDB.svg :target:

pyden is a simple library to get data from the city and county of Denver, CO.

📡 PLEASE READ: 1.0.0 and Beyond

Version 1.0.0 of pyden makes several breaking, but necessary changes:

  • Moves the underlying library from Requests <>_ to aiohttp <>_
  • Changes the entire library to use :code:asyncio
  • Makes 3.5 the minimum version of Python required

If you wish to continue using the previous, synchronous version of pyden, make sure to pin version 1.1.2.

📡 Installation

.. code-block:: bash

$ pip install pyden

📡 Usage

.. code-block:: python

import pyden

pyden starts within an aiohttp <>_ :code:ClientSession:

.. code-block:: python

import asyncio

from aiohttp import ClientSession

from pyden import Client

async def main() -> None: """Create the aiohttp session and run the example.""" async with ClientSession() as websession: await run(websession)

async def run(websession): """Run.""" # YOUR CODE HERE


Create a client:

.. code-block:: python

client = pyden.Client(websession)

Then, get to it!

Trash Schedule

.. code-block:: python

Initialize the trash module:

await client.trash.init_from_coords(<lat>, <lon>, <google_api_key>)

Get the full schedule:

await client.trash.schedule()

...or get the date of next pickup:

await client.trash.next_pickup(client.trash.PickupTypes.recycling)

📡 Contributing

#. Check for open features/bugs <>_ or initiate a discussion on one <>. #. Fork the repository <>. #. Install the dev environment: :code:make init. #. Enter the virtual environment: :code:pipenv shell #. Code your new feature or bug fix. #. Write a test that covers your new functionality. #. Run tests: :code:make test #. Build new docs: :code:make docs #. Add yourself to AUTHORS.rst. #. Submit a pull request!

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyden, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size pyden-1.0.0-py2-none-any.whl (5.6 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size pyden-1.0.0.tar.gz (6.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page