Find all currently running Datasette instances and list their ports
Project description
datasette-ports
Find all currently running Datasette instances on your machine and list their ports, databases, versions and plugins.
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-ports
Usage
Run this command:
datasette ports
This uses lsof to find all Python processes listening on TCP ports, then probes each one to check if it is a Datasette instance. For each instance found it displays the URL, Datasette version, attached databases and installed plugins.
Example output:
http://127.0.0.1:8007/ - v1.0a26
Databases: simonwillisonblog
Plugins: datasette-llm, datasette-secrets
http://127.0.0.1:8001/ - v1.0a26
Databases: creatures
Plugins: datasette-extract, datasette-llm, datasette-secrets
http://127.0.0.1:8900/ - v0.65.2
Databases: logs
http://0.0.0.0:8014/ - v1.0a26
Databases: content, trees, _internal
Plugins: datasette-llm, datasette-visible-internal-db
JSON output
Use --json to get machine-readable output:
datasette ports --json
[
{
"url": "http://127.0.0.1:8007/",
"host": "127.0.0.1",
"port": 8007,
"version": "1.0a26",
"databases": [
"simonwillisonblog"
],
"plugins": [
"datasette-llm",
"datasette-secrets"
]
},
{
"url": "http://127.0.0.1:8900/",
"host": "127.0.0.1",
"port": 8900,
"version": "0.65.2",
"databases": [
"logs"
],
"plugins": []
}
]
Development
To set up this plugin locally, first checkout the code. You can confirm it is available like this:
cd datasette-ports
# Confirm the plugin is visible
uv run datasette plugins
To run the tests:
uv run 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datasette_ports-0.1.tar.gz.
File metadata
- Download URL: datasette_ports-0.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ea4d51c40568662c6c79955047eb904732802a2b144f6d37088816b03108d1f
|
|
| MD5 |
9f5462c87c44b735633429ba1e21fbaf
|
|
| BLAKE2b-256 |
082d2be3e5c1510c00248e14859cfa01da0fe2d45a2d6bf33409d9e1776b99b4
|
Provenance
The following attestation bundles were made for datasette_ports-0.1.tar.gz:
Publisher:
publish.yml on datasette/datasette-ports
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_ports-0.1.tar.gz -
Subject digest:
1ea4d51c40568662c6c79955047eb904732802a2b144f6d37088816b03108d1f - Sigstore transparency entry: 1239769983
- Sigstore integration time:
-
Permalink:
datasette/datasette-ports@a5dc52b1ebf247f6bb3a934802ec6930a6d19870 -
Branch / Tag:
refs/tags/0.1 - Owner: https://github.com/datasette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a5dc52b1ebf247f6bb3a934802ec6930a6d19870 -
Trigger Event:
release
-
Statement type:
File details
Details for the file datasette_ports-0.1-py3-none-any.whl.
File metadata
- Download URL: datasette_ports-0.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e29d19ec38bdde98131ff6253dcef29a1cfb3f21542f277242822c1285300787
|
|
| MD5 |
6f9ff8adf586f5581a33079e0157daaf
|
|
| BLAKE2b-256 |
5a709510c6ffacc5bda5e36297769a937236870854c86ff48760de86f713a2a6
|
Provenance
The following attestation bundles were made for datasette_ports-0.1-py3-none-any.whl:
Publisher:
publish.yml on datasette/datasette-ports
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_ports-0.1-py3-none-any.whl -
Subject digest:
e29d19ec38bdde98131ff6253dcef29a1cfb3f21542f277242822c1285300787 - Sigstore transparency entry: 1239770135
- Sigstore integration time:
-
Permalink:
datasette/datasette-ports@a5dc52b1ebf247f6bb3a934802ec6930a6d19870 -
Branch / Tag:
refs/tags/0.1 - Owner: https://github.com/datasette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a5dc52b1ebf247f6bb3a934802ec6930a6d19870 -
Trigger Event:
release
-
Statement type: