Skip to main content

datasette-os-info

PyPI Changelog Tests License

Provide information about the current OS at /-/os

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-os-info

Usage

This plugin adds a /-/os page to your Datasette instance that returns detailed information about the operating system, formatted as pretty-printed JSON.

⚠️ Security Warning: This endpoint exposes system information including hostnames, usernames, filesystem paths, and environment variables. Review the output before deploying on a public instance.

Visit /-/os on your Datasette instance to see comprehensive OS information including:

  • Platform details: System type, release, version, machine architecture, processor
  • Python information: Version, implementation, executable path
  • Container detection: Docker, Kubernetes, LXC detection
  • Linux-specific information (when running on Linux):
    • Distribution details from /etc/os-release (name, version, codename)
    • Debian/Alpine/RedHat version information
    • Kernel information
    • CPU model and count
    • Memory statistics
    • Docker base image detection
  • macOS-specific information (when running on macOS):
    • macOS version details
  • Windows-specific information (when running on Windows):
    • Windows version and edition
  • Environment variables: Useful variables like SHELL, TERM, USER, HOME, PATH, LANG, VIRTUAL_ENV

Example:

datasette install datasette-os-info
datasette
# Then visit http://localhost:8001/-/os

You can also view the output from the command line:

datasette --get /-/os

The JSON output is automatically pretty-printed for easy reading.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-os-info
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

python -m pytest

Metadata

Release files for datasette-os-info 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datasette-os-info 0.1
File Size Uploaded
datasette_os_info-0.1.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datasette-os-info 0.1
File Interpreter ABI Platform
datasette_os_info-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.6 kB

Release files / datasette_os_info-0.1.tar.gz

Download URL datasette_os_info-0.1.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
42e4a784e8c2141cb2f0221ea4a0bf58fe9ce08c764624827231409ec1940b09
BLAKE2b-256 checksum
How to use checksums
ad7537b393706137c0b558d3ba70984760f73abbfec11d401deadda0f320d56c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2025.

Transparency log

Release files / datasette_os_info-0.1-py3-none-any.whl

Download URL datasette_os_info-0.1-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
889431cd59e483fa6aef2607f30e3e9262480043b5811315689203dfeb75a24d
BLAKE2b-256 checksum
How to use checksums
fe3abd39375b7ba4f77dba3cc2a9b50ed0ce91c83181e14474bfac8de7ef9a29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page