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
rootactor provided Datasette is running inside Codespaces (detected through the presence of theCODESPACE_NAMEenvironment 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
Release files for datasette-codespaces 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datasette-codespaces-0.1.1.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datasette_codespaces-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / datasette-codespaces-0.1.1.tar.gz
| Download URL | datasette-codespaces-0.1.1.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5aa750c7516744b61960d084efc6d4bb50d8945df1ba38cc6f41a4378668be53
|
|
BLAKE2b-256 checksum How to use checksums |
1471eaf0840db061ea2c1a8437fb1c8d5d1f59ee1afeb26abbbcdafa2463d4b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / datasette_codespaces-0.1.1-py3-none-any.whl
| Download URL | datasette_codespaces-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42d4779c4e885f0647be86b8270dba85eebb327ef22c67a120df3466a40479ef
|
|
BLAKE2b-256 checksum How to use checksums |
72a9b7dceb965dd8b5923be8c4fa7bfd0aa515e9afd81820ef7058b4103a8f3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|