{"id":15722971,"url":"https://github.com/bachya/pyden","last_synced_at":"2025-03-31T00:16:02.269Z","repository":{"id":23034180,"uuid":"97988021","full_name":"bachya/pyden","owner":"bachya","description":"📡 A Python API for getting information from the City and County of Denver, CO","archived":false,"fork":false,"pushed_at":"2021-12-02T21:03:41.000Z","size":80,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"dev","last_synced_at":"2025-03-06T21:46:57.218Z","etag":null,"topics":["asyncio","city","denver","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bachya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-21T21:30:54.000Z","updated_at":"2020-06-10T19:48:21.000Z","dependencies_parsed_at":"2022-07-27T03:47:16.966Z","dependency_job_id":null,"html_url":"https://github.com/bachya/pyden","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachya%2Fpyden","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachya%2Fpyden/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachya%2Fpyden/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachya%2Fpyden/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bachya","download_url":"https://codeload.github.com/bachya/pyden/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246395590,"owners_count":20770243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","city","denver","python3"],"created_at":"2024-10-03T22:09:51.985Z","updated_at":"2025-03-31T00:16:02.247Z","avatar_url":"https://github.com/bachya.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📡 pyden: A simple Python API for Denver, CO Data\n\n[![Travis CI](https://travis-ci.org/bachya/pyden.svg?branch=master)](https://travis-ci.org/bachya/pyden)\n[![PyPi](https://img.shields.io/pypi/v/pyden.svg)](https://pypi.python.org/pypi/pyden)\n[![Version](https://img.shields.io/pypi/pyversions/pyden.svg)](https://pypi.python.org/pypi/pyden)\n[![License](https://img.shields.io/pypi/l/pyden.svg)](https://github.com/bachya/pyden/blob/master/LICENSE)\n[![Code Coverage](https://codecov.io/gh/bachya/pyden/branch/master/graph/badge.svg)](https://codecov.io/gh/bachya/pyden)\n[![Maintainability](https://api.codeclimate.com/v1/badges/6a3dbe1deaf343d90c01/maintainability)](https://codeclimate.com/github/bachya/pyden/maintainability)\n[![Say Thanks](https://img.shields.io/badge/SayThanks-!-1EAEDB.svg)](https://saythanks.io/to/bachya)\n\n`pyden` is a simple library to get data from the city and county of Denver, CO.\n\n# PLEASE READ: Version 1.0.0 and Beyond\n\nVersion 1.0.0 of `pyden` makes several breaking, but necessary changes:\n\n* Moves the underlying library from\n  [Requests](http://docs.python-requests.org/en/master/) to\n  [aiohttp](https://aiohttp.readthedocs.io/en/stable/)\n* Changes the entire library to use `asyncio`\n* Makes 3.6 the minimum version of Python required\n\nIf you wish to continue using the previous, synchronous version of\n`pyden`, make sure to pin version 0.4.1.\n\n# Python Versions\n\n`pyden` is currently supported on:\n\n* Python 3.5\n* Python 3.6\n* Python 3.7\n\nHowever, running the test suite currently requires Python 3.6 or higher; tests\nrun on Python 3.5 will fail.\n\n# Installation\n\n```python\n pip install pyden\n```\n\n# Usage\n\n`pyden` starts within an\n[aiohttp](https://aiohttp.readthedocs.io/en/stable/) `ClientSession`:\n\n```python\nimport asyncio\n\nfrom aiohttp import ClientSession\n\nfrom pyden import Client\n\n\nasync def main() -\u003e None:\n    \"\"\"Create the aiohttp session and run the example.\"\"\"\n    async with ClientSession() as websession:\n      # YOUR CODE HERE\n\n\nasyncio.get_event_loop().run_until_complete(main())\n```\n\nTo create a client, simply:\n\n```python\nimport asyncio\n\nfrom aiohttp import ClientSession\n\nfrom pyden import Client\n\n\nasync def main() -\u003e None:\n    \"\"\"Create the aiohttp session and run the example.\"\"\"\n    async with ClientSession() as websession:\n      client = Client(websession)\n\n\nasyncio.get_event_loop().run_until_complete(main())\n```\n\n## Trash Schedule\n\n```python\nimport asyncio\n\nfrom aiohttp import ClientSession\n\nfrom pyden import Client\n\n\nasync def main() -\u003e None:\n    \"\"\"Create the aiohttp session and run the example.\"\"\"\n    async with ClientSession() as websession:\n      client = Client(websession)\n\n      # Initialize the trash module:\n      await client.trash.init_from_coords(\u003cLAT\u003e, \u003cLON\u003e, \"\u003cGOOGLE_API_KEY\u003e\")\n\n      # Get the full schedule:\n      await client.trash.schedule()\n\n      # ...or get the date of next pickup:\n      await client.trash.next_pickup(client.trash.PickupTypes.recycling)\n\n\nasyncio.get_event_loop().run_until_complete(main())\n```\n\n# Contributing\n\n1. [Check for open features/bugs](https://github.com/bachya/pyden/issues)\n  or [initiate a discussion on one](https://github.com/bachya/pyden/issues/new).\n2. [Fork the repository](https://github.com/bachya/pyden/fork).\n3. Install the dev environment: `make init`.\n4. Enter the virtual environment: `pipenv shell`\n5. Code your new feature or bug fix.\n6. Write a test that covers your new functionality.\n7. Run tests and ensure 100% code coverage: `make coverage`\n8. Add yourself to `AUTHORS.md`.\n9. Submit a pull request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbachya%2Fpyden","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbachya%2Fpyden","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbachya%2Fpyden/lists"}