Skip to main content

datasette-python

PyPI Changelog Tests License

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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette_python-0.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

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

Hashes for datasette_python-0.1.tar.gz
Algorithm Hash digest
SHA256 132d5d2143a3c77a37c9b0f85bfdf69ad9b161fadd04abb2c4f305f436db3a9b
MD5 c472f865a2342b57498ada9d10a06151
BLAKE2b-256 416dd2ecdff0c86894fc4984c8623d0397da37ab5cfec180610b4b30014a46ca

See more details on using hashes here.

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

Hashes for datasette_python-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ae1966801a84134a5a02958ec3550486f9e03d9efc22feea3aa6eb21bdc89ae
MD5 ce2f39056a30901311916a04512a1934
BLAKE2b-256 f629877dbdbfac00bd881b60754e99f40b34ce6b09ce0a5248067046591fe119

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page