Skip to main content

Provide information about the current OS at /-/os

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

datasette_os_info-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_os_info-0.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file datasette_os_info-0.1.tar.gz.

File metadata

  • Download URL: datasette_os_info-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_os_info-0.1.tar.gz
Algorithm Hash digest
SHA256 42e4a784e8c2141cb2f0221ea4a0bf58fe9ce08c764624827231409ec1940b09
MD5 ce83f786f5520883f78f8bb302e978c2
BLAKE2b-256 ad7537b393706137c0b558d3ba70984760f73abbfec11d401deadda0f320d56c

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on datasette/datasette-os-info

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_os_info-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_os_info-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 889431cd59e483fa6aef2607f30e3e9262480043b5811315689203dfeb75a24d
MD5 8ec19900353874e79eda6881a941cd71
BLAKE2b-256 fe3abd39375b7ba4f77dba3cc2a9b50ed0ce91c83181e14474bfac8de7ef9a29

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on datasette/datasette-os-info

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