Datasette plugin for publishing data using Zeit Now
Project description
datasette-publish-now
Datasette plugin for publishing data using Zeit Now.
Installation
Install this plugin in the same environment as Datasette.
$ pip install datasette-publish-now
Usage
First, install the Zeit Now CLI tool by following their instructions.
Run now login
to login to (or create) an account.
Now you can use datasette publish now
to publish your data:
datasette publish now2 my-database.db --project=my-database
The --project
argument is required - it specifies the project name that should be used for your deployment. This will be used as part of the deployment's URL.
Other options
--no-prod
deploys to the project without updating the "production" URL alias to point to that new deployment. Without that option all deploys go directly to production.--debug
enables the Now CLI debug output--token
allows you to pass a Now authentication token, rather than needing to first run `now login' to configure the tool
Full help
Warning: Some of these options are not yet implemented in the alpha version of this plugin. In particular, the following do not yet work:
--extra-options
--static
--plugin-secret
--version-note
$ datasette publish now2 --help
Usage: datasette publish now2 [OPTIONS] [FILES]...
Options:
-m, --metadata FILENAME Path to JSON/YAML file containing metadata
to publish
--extra-options TEXT Extra options to pass to datasette serve
--branch TEXT Install datasette from a GitHub branch e.g.
master
--template-dir DIRECTORY Path to directory containing custom
templates
--plugins-dir DIRECTORY Path to directory containing custom plugins
--static MOUNT:DIRECTORY Serve static files from this directory at
/MOUNT/...
--install TEXT Additional packages (e.g. plugins) to
install
--plugin-secret <TEXT TEXT TEXT>...
Secrets to pass to plugins, e.g. --plugin-
secret datasette-auth-github client_id xxx
--version-note TEXT Additional note to show on /-/versions
--title TEXT Title for metadata
--license TEXT License label for metadata
--license_url TEXT License URL for metadata
--source TEXT Source label for metadata
--source_url TEXT Source URL for metadata
--about TEXT About label for metadata
--about_url TEXT About URL for metadata
--token TEXT Auth token to use for deploy
--project PROJECT Zeit Now project name to use [required]
--no-prod Don't deploy directly to production
--debug Enable Now CLI debug output
--help Show this message and exit.
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 Distributions
Built Distribution
Hashes for datasette_publish_now-0.2a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a8efd4e8e3db7d01aeb4898b8a451ea0b63651d3422cc894ce39f82ebfae243 |
|
MD5 | 5ba944dfb93b974b1ac4e3c4548676b6 |
|
BLAKE2b-256 | b31468fd6ba560e093466314781c6f55f3f261ebb60a0fa31a2dd0386d191f59 |