cli
Camply Command Line Interface
CamplyContext
dataclass
#
campgrounds(context, debug, search=None, state=None, rec_area=None, campground=None, campsite=None, provider=DEFAULT_CAMPLY_PROVIDER)
#
Search for Campgrounds (inside of Recreation Areas) and list them
Search for Campgrounds and their IDs. Campgrounds are facilities inside of Recreation Areas that contain campsites. Most 'campgrounds' are areas made up of multiple campsites, others are facilities like fire towers or cabins that might only contain a single 'campsite' to book.
Source code in camply/cli.py
camply_command_line(ctx, debug, provider)
#
Welcome to camply, the campsite finder.
Finding reservations at sold out campgrounds can be tough. That's where camply comes in. It searches the APIs of booking services like https://recreation.gov (which indexes thousands of campgrounds across the USA) to continuously check for cancellations and availabilities to pop up. Once a campsite becomes available, camply sends you a notification to book your spot!
visit the camply documentation at https://juftin.com/camply
Source code in camply/cli.py
campsites(context, debug, rec_area, campground, campsite, start_date, end_date, weekends, nights, provider, continuous, polling_interval, notifications, notify_first_try, search_forever, search_once, yaml_config, offline_search, offline_search_path, equipment, equipment_id, day)
#
Find Available Campsites with Custom Search Criteria
Search for a campsite within camply. Campsites are returned based on the search criteria
provided. Campsites contain properties like booking date, site type (tent, RV, cabin, etc),
capacity, price, and a link to make the booking. Required parameters include
--start-date
, --end-date
, --rec-area
/ --campground
. Constant searching
functionality can be enabled with --continuous
and notifications can be enabled using
--notifications
.
Source code in camply/cli.py
684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 |
|
cli()
#
configure(context, debug)
#
Set up camply configuration file with an interactive console
In order to send notifications through camply you must set up some authorization values. Whether you need to set up pushover notifications (push notifications on your phone, your pushover account can be set up at https://pushover.net) or Email messages, everything can be done through the configure command. The end result is a file called .camply in your home folder.
Source code in camply/cli.py
equipment_types(context, rec_area=None, provider=DEFAULT_CAMPLY_PROVIDER)
#
Get a list of supported equipment
This command returns supported equipment for the current provider/recreation area. Equipment are camping equipment that can be used at a campsite. Different providers and recreation areas have different types of equipment for which reservations can be made.
Source code in camply/cli.py
list_campsites(context, debug, campground, rec_area, provider)
#
List campsite IDs for a given campground or recreation area
Source code in camply/cli.py
providers(context, debug)
#
List the different camply providers
Source code in camply/cli.py
recreation_areas(context, search, state, debug, provider=DEFAULT_CAMPLY_PROVIDER)
#
Search for Recreation Areas and list them
Search for Recreation Areas and their IDs. Recreation Areas are places like National Parks and National Forests that can contain one or many campgrounds.
Source code in camply/cli.py
test_notifications(context, debug, notifications)
#
Test your notification provider setup