Run a Python interpreter in the Datasette virtual environment
Project description
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
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_python-0.1.tar.gz
.
File metadata
- Download URL: datasette_python-0.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 132d5d2143a3c77a37c9b0f85bfdf69ad9b161fadd04abb2c4f305f436db3a9b |
|
MD5 | c472f865a2342b57498ada9d10a06151 |
|
BLAKE2b-256 | 416dd2ecdff0c86894fc4984c8623d0397da37ab5cfec180610b4b30014a46ca |
File details
Details for the file datasette_python-0.1-py3-none-any.whl
.
File metadata
- Download URL: datasette_python-0.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ae1966801a84134a5a02958ec3550486f9e03d9efc22feea3aa6eb21bdc89ae |
|
MD5 | ce2f39056a30901311916a04512a1934 |
|
BLAKE2b-256 | f629877dbdbfac00bd881b60754e99f40b34ce6b09ce0a5248067046591fe119 |