Conveniences for running Datasette on GitHub Codespaces
Project description
datasette-codespaces
Conveniences for running Datasette on GitHub Codespaces
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-codespaces
Tutorial
Using Datasette in GitHub Codespaces provides a detailed tutorial introduction to this plugin.
Usage
Install this when you are using Datasette inside of GitHub Codespaces. It makes the following changes:
- All requests will be treated as the
root
actor provided Datasette is running inside Codespaces (detected through the presence of theCODESPACE_NAME
environment variable). This should still be secure as GitHub restricts access to servers running in the Codespaces environment based on GitHub authentication. - The datasette-x-forwarded-host plugin will be installed, ensuring links to other pages within Datasette such as facet navigation work correctly.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-codespaces
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
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 Distribution
Built Distribution
File details
Details for the file datasette-codespaces-0.1.1.tar.gz
.
File metadata
- Download URL: datasette-codespaces-0.1.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5aa750c7516744b61960d084efc6d4bb50d8945df1ba38cc6f41a4378668be53 |
|
MD5 | d321a41567bff9084f9c711c51bc01ad |
|
BLAKE2b-256 | 1471eaf0840db061ea2c1a8437fb1c8d5d1f59ee1afeb26abbbcdafa2463d4b3 |
File details
Details for the file datasette_codespaces-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: datasette_codespaces-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42d4779c4e885f0647be86b8270dba85eebb327ef22c67a120df3466a40479ef |
|
MD5 | c4216cde6cfe00b5ff7c59b6a4ff1f4f |
|
BLAKE2b-256 | 72a9b7dceb965dd8b5923be8c4fa7bfd0aa515e9afd81820ef7058b4103a8f3c |