Python client with tools for working with recreation.gov data.
Project description
pyFedCamp
This package works with data from the recreation.gov system for camping reservations on U.S. Federal lands. It makes up for a number of things not covered in "The Hub" (the system used for managing reservations and campground operations).
Placards
The seminal use case for pyFedCamp was the production of custom placards to be printed out and placed on sign posts for each campsite on the day/night of initial reservation. We found ourselves tweaking the existing placard print-out from rec.gov to make things larger so that members of staff and guests could read them at a distance. All of the data necessary to produce the placards is contained in the Camping Reservation Detail report, including the obfuscated (non-PII) customer initials, arrival/departure date, and other information.
The Reservations class handles reading the Excel file produced in the Camping Reservation Detail Report, ensuring that the file is in the expected format (more on this in the dependencies section), and builds a dataframe from the actual data part of the worksheet (minus multiple header rows). The build_placards function uses the Python ReportLab package to produce an 8.5x11 PDF with up to 4 placards per sheet, similar to the built-in rec.gov report.
Input Parameters
The following are required input parameters for the Reservations class:
- input_file (str) - The relative or absolute path to the Camping Reservation Detail Report input file that will be processed
- create_placards (bool) - True to run the build_placards function and generate the downloadable PDF file
- placards_filename (str) - Defaults to 'placards.pdf'
- fed_unit (str) - The display name for the U.S. Federal land unit that will be examined and processed
- campground (str) - The display name for the specific campground on the Federal land unit
- arrival_dates (list of dates) - One or more arrival dates (date objects) that must be found in the input file for placards; defaults to today's date
- campsites (list of strings) - Optional list of campsites to filter on from the input data when only certain sites need to be printed or reported on
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 pyfedcamp-0.0.2.tar.gz.
File metadata
- Download URL: pyfedcamp-0.0.2.tar.gz
- Upload date:
- Size: 233.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.9 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fcec4ea2f39a43e716726f8be12d41bcbae3c1f3c76a97adbdee882ab7724cd
|
|
| MD5 |
d51d8ad748cf72e93918a21febabf10b
|
|
| BLAKE2b-256 |
5fe73cb88afd2d26c1a276033c7cf95e53e1baa9b601f3f2049920087cce9cdf
|
File details
Details for the file pyfedcamp-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pyfedcamp-0.0.2-py3-none-any.whl
- Upload date:
- Size: 232.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.9 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb9bb795ae4c05343743d7653f831592e4a18121af14e19113cf12222eb01ed9
|
|
| MD5 |
a50a5cf33235008d9a0237dbeaec0ddc
|
|
| BLAKE2b-256 |
ca512eec52744cc0f83310c42ae965a37e742971cde6d83d42da714040345eaa
|