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.5.tar.gz
(10.1 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.5.tar.gz.
File metadata
- Download URL: graffiti_lookup_nyc-1.0.5.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
415fc9cd14660f59cc0d98f4431f27c1bd0ad5e3268453ab320062fb53defec4
|
|
| MD5 |
5c7826e555e1a5e9f0fc8c7087c39611
|
|
| BLAKE2b-256 |
ab95b0d66f0f58ee179ff25b770b1bd254850d0312a30a50f62ee0fa8b41c02c
|
File details
Details for the file graffiti_lookup_nyc-1.0.5-py3-none-any.whl.
File metadata
- Download URL: graffiti_lookup_nyc-1.0.5-py3-none-any.whl
- Upload date:
- Size: 11.5 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 |
d1e4dfb8a09c5fdff0d3876c8427306ddc1fdbdd8f835cac26291ebe0a64b5e3
|
|
| MD5 |
cdff8d91a6b7a6e630ef7b1ac786c2e7
|
|
| BLAKE2b-256 |
12058ec1644c90832607e5da59d1a28dd45aa270290833d131e8e4eb4f386fbc
|