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
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| datasette_python-0.1.tar.gz | 6.4 kB | Without provenance | Details for datasette_python-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datasette_python-0.1-py3-none-any.whl | Python 3 | none | any | Details for datasette_python-0.1-py3-none-any.whl |
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
|
Security for datasette-python 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.