Skip to main content

nycparks

This package contains a collection of tools to help NYC residents make the most of its parks starting with a system that alerts users over text the upcoming tennis court reservation availabilities.

Setup

Install the package with pip install nycparks. Ensure that you are signed into the desktop client of WhatsApp for the messages to send.

Basic Usage

The default search times are non 9-5 hours listed in utils/times.py. Adjust them based on the times you are interested in playing.

To schedule automatic checks, edit the crontab with:

crontab -e

And add the following line adjusting the locations, alert frequency, and number based on your needs. The example below is scheduled for every hour and Central Park, McCarren Park, and Sutton East Park.

0 * * * * reserve -l central -l mccarren -l 'sutton east' -n +11234567890

License

MIT License

Copyright (c) [2023] [Austin Botelho]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for nycparks 0.1.0

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

Source distribution (sdist)

Source distribution for nycparks 0.1.0
File Size Uploaded
nycparks-0.1.0.tar.gz 6.7 kB Details

Built distribution (wheel)

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

Total release size: 14.6 kB

Release files / nycparks-0.1.0.tar.gz

Download URL nycparks-0.1.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1858910eb0b8dc29c9d0f8726e8e7c4a6fdad46fc03170cbd5022f535f59fde4
BLAKE2b-256 checksum
How to use checksums
ed69c31013ab7a341175607179e2839dcf10e91d3804bf43c511c98342007154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.8.15 Linux/5.15.0-78-generic

Release files / nycparks-0.1.0-py3-none-any.whl

Download URL nycparks-0.1.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bce1645018ccccc85db32afa2db97476187f127985226db897dfd72670655098
BLAKE2b-256 checksum
How to use checksums
540349a99ffd72b8a538eeee7def4608de36fe019a437f8ab9d10b2a951a9009
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.8.15 Linux/5.15.0-78-generic

Release history Release notifications | RSS feed

This release

0.1.0 This release

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