datasette-python
Run a Python interpreter in the Datasette virtual environment
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-python
Usage
This plugin adds a new python command to Datasette. This executes Python in the same virtual environment as Datasette itself.
You can use this to check the Python version
datasette python --version
# Should output 'Python 3.12.4' or similar
Or to run commands like pip:
datasette python -m pip install httpx
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-python
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-python 0.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_python-0.1.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datasette_python-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / datasette_python-0.1.tar.gz
| Download URL | datasette_python-0.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
132d5d2143a3c77a37c9b0f85bfdf69ad9b161fadd04abb2c4f305f436db3a9b
|
|
BLAKE2b-256 checksum How to use checksums |
416dd2ecdff0c86894fc4984c8623d0397da37ab5cfec180610b4b30014a46ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / datasette_python-0.1-py3-none-any.whl
| Download URL | datasette_python-0.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ae1966801a84134a5a02958ec3550486f9e03d9efc22feea3aa6eb21bdc89ae
|
|
BLAKE2b-256 checksum How to use checksums |
f629877dbdbfac00bd881b60754e99f40b34ce6b09ce0a5248067046591fe119
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|