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-proddeploys to the project without updating the "production" URL alias to point to that new deployment. Without that option all deploys go directly to production.--debugenables the Now CLI debug output--tokenallows you to pass a Now authentication token, rather than needing to first runnow loginto configure the tool--publicrunsnow --publicto publish the application source code at/_src- e.g. https://datasette-public.now.sh/_src--generate-dir- by default this tool generates a new Now app in a temporary directory, deploys it and then deletes the directory. Use--generate-dir=my-appto output the generated application files to a new directory of your choice instead. You can then deploy it by runningnowin that directory.
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 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
--public Publish source with Now CLI --public
--generate-dir DIRECTORY Output generated application files here
--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
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 datasette_publish_now-0.4a0-py3-none-any.whl.
File metadata
- Download URL: datasette_publish_now-0.4a0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fadc7dc081aec59e442e14addf260f97880dfb1fe55d034cca1cc2440c88a549
|
|
| MD5 |
9e3195578c0bb83662e5e7e4f3780bc6
|
|
| BLAKE2b-256 |
2fc496fa64f4ec99645d141e681c32fd49de556ecee2491b9b1c58e31e80e250
|