Skip to content

park_it

A park-it command line interface is provided with a few conveniences.

Usage

park_it [OPTIONS] COMMAND [ARGS]...

Arguments

No arguments available

Options

Name Description Required Default
--install-completion Install completion for the current shell. No -
--show-completion Show completion for the current shell, to copy it or customize the installation. No -
--help Show this message and exit. No -

Commands

Name Description
serve-example Builds and serves a non-functional static...
init Initializes a new park-it project with the...
oauth Run the Google OAuth Installed App flow...

Subcommands

park_it serve-example

Builds and serves a non-functional static example site template on localhost:PORT for viewing purposes. Note that the embedded calendar view won't work since it's serving the page template directly (you'll see a bit of jinja syntax that the app uses to serve it), but you'll get a decent idea anyway.

Usage

park_it serve-example [OPTIONS][PORT]

Arguments

Name Description Required
[PORT] localhost port to serve on. [default: 8000] No

Options

Name Description Required Default
--help Show this message and exit. No -

park_it init

Initializes a new park-it project with the necessary directories and files, copied directly from the example dir.

Usage

park_it init [OPTIONS][PROJECT_ROOT]

Arguments

Name Description Required
[PROJECT_ROOT] Root path of your project to initialize. If not passed, uses the current working directory. No

Options

Name Description Required Default
--help Show this message and exit. No -

park_it oauth

Run the Google OAuth Installed App flow with your downloaded client secret file, to generate a long-lived refresh token file for use by the app.

Usage

park_it oauth [OPTIONS] SECRET_READ_PATH [TOKEN_WRITE_PATH]

Arguments

Name Description Required
SECRET_READ_PATH Path to your downloaded Google App client secret file. Yes
[TOKEN_WRITE_PATH] Path to write the generated token file to. If not passed, writes auth-token.json to the same directory as the client secret file. No

Options

Name Description Required Default
--port INTEGER localhost port to serve on. [default: 8080] No -
--help Show this message and exit. No -