Skip to main content

Datasette plugin showing uptime at /-/uptime

Project description

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

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-uptime-0.1.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

datasette_uptime-0.1.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file datasette-uptime-0.1.1.tar.gz.

File metadata

  • Download URL: datasette-uptime-0.1.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for datasette-uptime-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b6f621c8e8b2ce3f135491b1ce3bf6b8307b6d5c3ac0764f2bc42c3ef6debc00
MD5 3c37a48a649d8b3b56a3eed41f6b5670
BLAKE2b-256 b0738cbb8d928b87ec8eb8bd7c9ae2f13595a75a2eb0c08b1d39fc53c1ad0283

See more details on using hashes here.

File details

Details for the file datasette_uptime-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_uptime-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd41ab09cb5f9bb64332fa5107547fff64e8dea7928ae50bd0f06cc30f61eae4
MD5 5556d1a625e324b928fac3f036f4c6d6
BLAKE2b-256 6a1d34ee51fac7115940042f8684b65f75797a6ab24b1c27b07933ce17a64826

See more details on using hashes here.

Supported by

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