Skip to main content

A library to get garbage collection dates in Hamburg.

Project description

Stadtreinigung Hamburg

PyPI

This library provides access to garbage collection dates in Hamburg. It scrapes the official website of Stadtreinigung Hamburg, so this library can break at any time. Please open an issue if the library does not work anymore.

Installation

Using pip:

pip install stadtreinigung-hamburg

Using uv:

uv pip install stadtreinigung-hamburg

Usage

After installing, use the terminal to run the program:

stadtreinigung_hamburg Sesamstraße 123

If your street name has a space, wrap the street in quotes:

stadtreinigung_hamburg "Sesame Street" 123

If you have problems with the street or street number, use the official website and get the collection dates. Then, search for asId and hnId. Those are the IDs for your street and street number. You can use them too:

stadtreinigung_hamburg --asid 1234 --hnid 99999

Or mix it:

stadtreinigung_hamburg Sesamstraße --hnid 99999

Development

This project uses uv for dependency management and packaging.

Setup Development Environment

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Create a virtual environment and install dependencies
uv venv
uv pip install -e .

Building the package

uv build

Publishing to PyPI

This project uses GitHub Actions with trusted publishing to automatically release to PyPI when a new GitHub release is created. The workflow uses PyPI's trusted publisher mechanism, which means no API tokens need to be stored in GitHub secrets.

To set up trusted publishing:

  1. Go to PyPI and navigate to your project
  2. Go to "Settings" > "Publishing"
  3. Add a new publisher with:
    • Publisher: GitHub Actions
    • Organization: your-github-username
    • Repository: stadtreinigung_hamburg
    • Workflow name: Publish Python Package

Once configured, creating a new release on GitHub will automatically trigger a build and publish to PyPI.

Version Management

The package version is automatically set to match the GitHub release tag. When creating a new release:

  1. Use semantic versioning for your tag (e.g., v1.0.0, v1.0.1)
  2. The GitHub Action will extract the version number from the tag and update the package version before publishing

For local publishing (if you have the necessary permissions):

uv build
uv publish

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

stadtreinigung_hamburg-0.3.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

stadtreinigung_hamburg-0.3.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file stadtreinigung_hamburg-0.3.2.tar.gz.

File metadata

File hashes

Hashes for stadtreinigung_hamburg-0.3.2.tar.gz
Algorithm Hash digest
SHA256 777562f20cab50b2a569c2ae1cd923aae98cf8d5fde69e337b15dfd91a6db8a4
MD5 13eb3eeb16a4f7138f506436d749b3d1
BLAKE2b-256 235f8bf2b9525116a6bd1b3b34d861cb35e6763bc981e5f04fbef3495edf4faf

See more details on using hashes here.

File details

Details for the file stadtreinigung_hamburg-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for stadtreinigung_hamburg-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e31e2539d98e8bc149754666cb11ba7f8888a7e3f5b5688323f409bdfb34618
MD5 21358d587176a773671e403b9d8d9f65
BLAKE2b-256 7e327dc29aa17d8c83da0fdddf22f39b3208e3a21b65b3038c1e8897153852b4

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