Skip to main content

Find all currently running Datasette instances and list their ports

Project description

datasette-ports

PyPI Changelog Tests License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette_ports-0.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

datasette_ports-0.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

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

Hashes for datasette_ports-0.1.tar.gz
Algorithm Hash digest
SHA256 1ea4d51c40568662c6c79955047eb904732802a2b144f6d37088816b03108d1f
MD5 9f5462c87c44b735633429ba1e21fbaf
BLAKE2b-256 082d2be3e5c1510c00248e14859cfa01da0fe2d45a2d6bf33409d9e1776b99b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_ports-0.1.tar.gz:

Publisher: publish.yml on datasette/datasette-ports

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for datasette_ports-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e29d19ec38bdde98131ff6253dcef29a1cfb3f21542f277242822c1285300787
MD5 6f9ff8adf586f5581a33079e0157daaf
BLAKE2b-256 5a709510c6ffacc5bda5e36297769a937236870854c86ff48760de86f713a2a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_ports-0.1-py3-none-any.whl:

Publisher: publish.yml on datasette/datasette-ports

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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