Skip to main content

datasette-uptime

PyPI Changelog Tests License

Datasette plugin showing uptime at /-/uptime

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-uptime

Usage

Adds an endpint at /-/uptime returning JSON that looks like this:

{
    "started": 355764.709263208,
    "now": 355824.192608208,
    "uptime_seconds": 59.483345208049286,
    "uptime_hours": 0.0165231515625136
}

This shows how long the server has been running.

Development

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

cd datasette-uptime
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Metadata

Release files for datasette-uptime 0.1.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-uptime 0.1.1
File Size Uploaded Provenance Actions
datasette-uptime-0.1.1.tar.gz 6.4 kB Without provenance Details for datasette-uptime-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datasette-uptime 0.1.1
File Interpreter ABI Platform Actions
datasette_uptime-0.1.1-py3-none-any.whl Python 3 none any Details for datasette_uptime-0.1.1-py3-none-any.whl

Total release size: 13.0 kB

Release files / datasette-uptime-0.1.1.tar.gz

Download URL datasette-uptime-0.1.1.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b6f621c8e8b2ce3f135491b1ce3bf6b8307b6d5c3ac0764f2bc42c3ef6debc00
BLAKE2b-256 checksum
How to use checksums
b0738cbb8d928b87ec8eb8bd7c9ae2f13595a75a2eb0c08b1d39fc53c1ad0283
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.8

Release files / datasette_uptime-0.1.1-py3-none-any.whl

Download URL datasette_uptime-0.1.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd41ab09cb5f9bb64332fa5107547fff64e8dea7928ae50bd0f06cc30f61eae4
BLAKE2b-256 checksum
How to use checksums
6a1d34ee51fac7115940042f8684b65f75797a6ab24b1c27b07933ce17a64826
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.8

Security for datasette-uptime 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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