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
datasette_python-0.1.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for datasette_python-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ae1966801a84134a5a02958ec3550486f9e03d9efc22feea3aa6eb21bdc89ae |
|
MD5 | ce2f39056a30901311916a04512a1934 |
|
BLAKE2b-256 | f629877dbdbfac00bd881b60754e99f40b34ce6b09ce0a5248067046591fe119 |