Provide information about the current OS at /-/os
Project description
datasette-os-info
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
- Distribution details from
- 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
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42e4a784e8c2141cb2f0221ea4a0bf58fe9ce08c764624827231409ec1940b09
|
|
| MD5 |
ce83f786f5520883f78f8bb302e978c2
|
|
| BLAKE2b-256 |
ad7537b393706137c0b558d3ba70984760f73abbfec11d401deadda0f320d56c
|
Provenance
The following attestation bundles were made for datasette_os_info-0.1.tar.gz:
Publisher:
publish.yml on datasette/datasette-os-info
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_os_info-0.1.tar.gz -
Subject digest:
42e4a784e8c2141cb2f0221ea4a0bf58fe9ce08c764624827231409ec1940b09 - Sigstore transparency entry: 595874464
- Sigstore integration time:
-
Permalink:
datasette/datasette-os-info@5c8a88bd31b6a6fb82c8c9a55f73a84e0e68b72a -
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@5c8a88bd31b6a6fb82c8c9a55f73a84e0e68b72a -
Trigger Event:
release
-
Statement type:
File details
Details for the file datasette_os_info-0.1-py3-none-any.whl.
File metadata
- Download URL: datasette_os_info-0.1-py3-none-any.whl
- Upload date:
- Size: 8.9 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 |
889431cd59e483fa6aef2607f30e3e9262480043b5811315689203dfeb75a24d
|
|
| MD5 |
8ec19900353874e79eda6881a941cd71
|
|
| BLAKE2b-256 |
fe3abd39375b7ba4f77dba3cc2a9b50ed0ce91c83181e14474bfac8de7ef9a29
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_os_info-0.1-py3-none-any.whl -
Subject digest:
889431cd59e483fa6aef2607f30e3e9262480043b5811315689203dfeb75a24d - Sigstore transparency entry: 595874497
- Sigstore integration time:
-
Permalink:
datasette/datasette-os-info@5c8a88bd31b6a6fb82c8c9a55f73a84e0e68b72a -
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@5c8a88bd31b6a6fb82c8c9a55f73a84e0e68b72a -
Trigger Event:
release
-
Statement type: