Skip to main content

Easily make office reservations in sequoia from the command line.

Project description

🌲 wawona 🌲

by @yuzawa-san

PyPI - Version

Easily make office reservations in sequoia from the command line. This tool is provides streamlined workflows:

  • viewing the next two week's bookings from coworkers that you have followed (in the app/site)
  • booking multiple days at a time
  • doing space reservations (with the ability to save your preferred space)
  • if an option contains a single choice, automatically select that choice
+----------------------+-----+-----+-----+-----+-----+
| WEEK OF 11 MAR       | Mon | Tue | Wed | Thu | Fri |
|                      | 11  | 12  | 13  | 14* | 15  |
+----------------------+-----+-----+-----+-----+-----+
| Me                   | x   | x   | x   |     | x   |
+----------------------+-----+-----+-----+-----+-----+
| Paul Wawona          |     |     | x   |     | x   |
+----------------------+-----+-----+-----+-----+-----+
| Juan Fnulwoln        |     | x   |     | x   |     |
+----------------------+-----+-----+-----+-----+-----+
| Maeve Melwosniwnaiko |     | x   | x   | x   |     |
+----------------------+-----+-----+-----+-----+-----+
| WEEK OF 18 MAR       | Mon | Tue | Wed | Thu | Fri |
|                      | 18  | 19  | 20  | 21  | 22  |
+----------------------+-----+-----+-----+-----+-----+
| Me                   | x   | x   |     |     |     |
+----------------------+-----+-----+-----+-----+-----+
[?] Date(s) to reserve (press return for none): 
 > [X] Thu 14 Mar
   [X] Wed 20 Mar
   [ ] Thu 21 Mar
   [ ] Fri 22 Mar

+----------------------+-----+-----+-----+-----+-----+
| WEEK OF 11 MAR       | Mon | Tue | Wed | Thu | Fri |
|                      | 11  | 12  | 13  | 14* | 15  |
+----------------------+-----+-----+-----+-----+-----+
| Me                   | x   | x   | x   | x   | x   |
+----------------------+-----+-----+-----+-----+-----+
| WEEK OF 18 MAR       | Mon | Tue | Wed | Thu | Fri |
|                      | 18  | 19  | 20  | 21  | 22  |
+----------------------+-----+-----+-----+-----+-----+
| Me                   | x   | x   | x   |     |     |
+----------------------+-----+-----+-----+-----+-----+
Waiting for pending tasks...
Reservation Acknowledgement Pending:

  Mar 27 New York Reservation
  Complete Self-Screening
  Seat Not Selected

[?] Complete task? (Y/n): 
[?] I am healthy and not sick?: Yes (only choice)
[?] Floor: Floor 2 (only choice)

 X X
 X X   X X
 X O   O X   O O O X O
 X X   O O   O * $ O $
 O O   O O
 O O   O O   O O O O O
 O O   O O   O X O O O

* preferred    O free    $ booked by someone you are following    X booked
[?] Space: 
   Desk 5
   Desk 6
   Desk 7
   Desk 8 (Guillaume Rucpelzsva)
   Desk 9
   Desk 10
 > Desk 11
   Desk 12 (Juan Fnulwoln)
   Desk 13
   Desk 14 (Maeve Melwosniwnaiko)
   Desk 15
   Desk 16
   Desk 17

You have booked 'Desk 11'

Install

The easiest way is probably using Homebrew. A self-maintained tap is available for use. To install tap:

brew tap yuzawa-san/tap

To install:

brew update
brew install wawona

To update:

brew update
# upgrade all Homebrew software
brew upgrade
# update just this
brew upgrade wawona

Usage

  • Run it from your terminal: wawona
  • On initial run, you will be asked to provide configuration details and to do an initial login.
  • Login uses a standalone chrome powered by selenium.
  • Periodically, you will be asked to re-login.
  • Use the up/down arrows, spacebar, and return keys to select items in lists
  • Troubleshooting errors with wawona --verbose

Reset

If you need to reset to factory defaults (maybe if you changed your password), remove the configuration:

wawona reset

As a last resort, if all else fails:

rm -rf ~/.config/wawona/

Notes

  • Not affliated with sequoia
  • Uses public endpoints discovered from the web UI
  • No warranty or stability guarantees, could break one day if something changes on their end
  • Password/token is stored in system keychain
  • Add/remove followers using the app.
  • Basically if it is not here or it breaks here, use the real app/site.
  • Named for the drive-thru sequoia

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

wawona-1.2.4.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wawona-1.2.4-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file wawona-1.2.4.tar.gz.

File metadata

  • Download URL: wawona-1.2.4.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for wawona-1.2.4.tar.gz
Algorithm Hash digest
SHA256 f8e36e59b188028668e317ee9099358255aa205e0c70fc3e6c7d295562db9a91
MD5 4cd7e7ba105b29b422d64711248346ac
BLAKE2b-256 7191b63a03f39282229c04fe7f4172e7b5dfde8529f1d0c6716cab0bb452279a

See more details on using hashes here.

File details

Details for the file wawona-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: wawona-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for wawona-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 71139deca144866553b2ddc988eed1454255f3eaeda269a556699fe955a92ba3
MD5 eb2ee2ff6ccd4a831051a303fcf39861
BLAKE2b-256 993c699ef6b454d7a20edeafc97889ea05b9f6b9aaea3534bbf17aad72ded221

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page