Query NYC 311 Graffiti Cleanup Requests via CLI and Python API.
Project description
Graffiti Lookup NYC
This project provides a Python Class and CLI for looking up NYC 311 Graffiti Cleanup Requests.
Setup
pip install -r requirements-dev.txt
It's also useful to install jq to format the JSON output
Usage
Fetch by single SR ID
> python -m graffiti_lookup --id "G2589" | jq .
{
"address": "40-28 MAIN STREET, QUEENS",
"service_request": "G2589",
"created": "10/22/2003",
"status": "Cleaning crew dispatched. Property cleaned.",
"last_updated": "10/22/2003"
}
Fetch by multiple IDs:
> python -m graffiti_lookup --ids "G258700,G258801,G258900" | jq .
[
{
"address": "1990 WESTCHESTER AVENUE, BRONX",
"service_request": "G258700",
"created": "12/17/2023",
"status": "Cleaning crew dispatched. No graffiti on property.",
"last_updated": "1/2/2024"
},
{
"address": "180 ORCHARD STREET, MANHATTAN",
"service_request": "G258801",
"created": "12/19/2023",
"status": "The property owner’s name cannot be determined.",
"last_updated": "12/20/2023"
},
{
"address": "153 ROEBLING STREET, BROOKLYN",
"service_request": "G258900",
"created": "12/21/2023",
"status": "Cleaning crew dispatched. Property cleaned.",
"last_updated": "1/5/2024"
}
]
PyPI Packaging
Publishing to PyPI
- Ensure you have the latest build tools:
pip install -r requirements-dev.txt
- Build the package:
python -m build
- Upload to PyPI:
twine upload dist/*
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
graffiti_lookup_nyc-1.0.3.tar.gz
(10.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graffiti_lookup_nyc-1.0.3.tar.gz.
File metadata
- Download URL: graffiti_lookup_nyc-1.0.3.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ccc7b7bd151f76d8cf98e26740a01c1a5f7bb5fc3a8c819cd3e6b0e4ce50ee7
|
|
| MD5 |
6631b5034e18f2e2123d06d7f929bc20
|
|
| BLAKE2b-256 |
8ec085d48cdc7323d6752d7ed5c464278c167285488b1c16463700f0f6930108
|
File details
Details for the file graffiti_lookup_nyc-1.0.3-py3-none-any.whl.
File metadata
- Download URL: graffiti_lookup_nyc-1.0.3-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23d0dff667249ad32e715fda8409260c2e9c1d89b06234e038460e0785c164fc
|
|
| MD5 |
d8d3ce082bee09a53e3b953e18539d6e
|
|
| BLAKE2b-256 |
b388dfadcec9ecd537c839012f08e7d6e9a2c5015ebab64f069777dade25b49f
|