Skip to main content

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

Release files for stadtreinigung_hamburg 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stadtreinigung_hamburg 0.3.4
File Size Uploaded
stadtreinigung_hamburg-0.3.4.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stadtreinigung_hamburg 0.3.4
File Interpreter ABI Platform
stadtreinigung_hamburg-0.3.4-py3-none-any.whl Python 3 none any Details

Total release size: 14.4 kB

Release files / stadtreinigung_hamburg-0.3.4.tar.gz

Download URL stadtreinigung_hamburg-0.3.4.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7bc0d2b131d28aff77a7de2cc5b1d085562977844cd5e12dcba090e1a5b4f5f7
BLAKE2b-256 checksum
How to use checksums
02fb16ef398401fe4584fd73fcaa98306d2fc793b7280611e5c5f3d79ffc0858
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.8.13

Release files / stadtreinigung_hamburg-0.3.4-py3-none-any.whl

Download URL stadtreinigung_hamburg-0.3.4-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d95e4025c2294ed55bf8f71558301bece9719f7f18cc373186f9a52333f40e86
BLAKE2b-256 checksum
How to use checksums
da5b2d94a41ba611182adad1eb37a22f53c55093338a6f42130acc86002444b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.8.13

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page