datasette-uptime


Namedatasette-uptime JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryDatasette plugin showing uptime at /-/uptime
upload_time2024-03-06 05:20:35
maintainer
docs_urlNone
authorSimon Willison
requires_python>=3.8
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # datasette-uptime

[![PyPI](https://img.shields.io/pypi/v/datasette-uptime.svg)](https://pypi.org/project/datasette-uptime/)
[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-uptime?include_prereleases&label=changelog)](https://github.com/datasette/datasette-uptime/releases)
[![Tests](https://github.com/datasette/datasette-uptime/actions/workflows/test.yml/badge.svg)](https://github.com/datasette/datasette-uptime/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-uptime/blob/main/LICENSE)

Datasette plugin showing uptime at /-/uptime

## Installation

Install this plugin in the same environment as Datasette.
```bash
datasette install datasette-uptime
```
## Usage

Adds an endpint at `/-/uptime` returning JSON that looks like this:
```json
{
    "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:
```bash
cd datasette-uptime
python3 -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
pytest
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "datasette-uptime",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Simon Willison",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/b0/73/8cbb8d928b87ec8eb8bd7c9ae2f13595a75a2eb0c08b1d39fc53c1ad0283/datasette-uptime-0.1.1.tar.gz",
    "platform": null,
    "description": "# datasette-uptime\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-uptime.svg)](https://pypi.org/project/datasette-uptime/)\n[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-uptime?include_prereleases&label=changelog)](https://github.com/datasette/datasette-uptime/releases)\n[![Tests](https://github.com/datasette/datasette-uptime/actions/workflows/test.yml/badge.svg)](https://github.com/datasette/datasette-uptime/actions/workflows/test.yml)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-uptime/blob/main/LICENSE)\n\nDatasette plugin showing uptime at /-/uptime\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n```bash\ndatasette install datasette-uptime\n```\n## Usage\n\nAdds an endpint at `/-/uptime` returning JSON that looks like this:\n```json\n{\n    \"started\": 355764.709263208,\n    \"now\": 355824.192608208,\n    \"uptime_seconds\": 59.483345208049286,\n    \"uptime_hours\": 0.0165231515625136\n}\n```\nThis shows how long the server has been running.\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n```bash\ncd datasette-uptime\npython3 -m venv venv\nsource venv/bin/activate\n```\nNow install the dependencies and test dependencies:\n```bash\npip install -e '.[test]'\n```\nTo run the tests:\n```bash\npytest\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Datasette plugin showing uptime at /-/uptime",
    "version": "0.1.1",
    "project_urls": {
        "CI": "https://github.com/datasette/datasette-uptime/actions",
        "Changelog": "https://github.com/datasette/datasette-uptime/releases",
        "Homepage": "https://github.com/datasette/datasette-uptime",
        "Issues": "https://github.com/datasette/datasette-uptime/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6a1d34ee51fac7115940042f8684b65f75797a6ab24b1c27b07933ce17a64826",
                "md5": "5556d1a625e324b928fac3f036f4c6d6",
                "sha256": "bd41ab09cb5f9bb64332fa5107547fff64e8dea7928ae50bd0f06cc30f61eae4"
            },
            "downloads": -1,
            "filename": "datasette_uptime-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5556d1a625e324b928fac3f036f4c6d6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 6692,
            "upload_time": "2024-03-06T05:20:33",
            "upload_time_iso_8601": "2024-03-06T05:20:33.843791Z",
            "url": "https://files.pythonhosted.org/packages/6a/1d/34ee51fac7115940042f8684b65f75797a6ab24b1c27b07933ce17a64826/datasette_uptime-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b0738cbb8d928b87ec8eb8bd7c9ae2f13595a75a2eb0c08b1d39fc53c1ad0283",
                "md5": "3c37a48a649d8b3b56a3eed41f6b5670",
                "sha256": "b6f621c8e8b2ce3f135491b1ce3bf6b8307b6d5c3ac0764f2bc42c3ef6debc00"
            },
            "downloads": -1,
            "filename": "datasette-uptime-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "3c37a48a649d8b3b56a3eed41f6b5670",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 6353,
            "upload_time": "2024-03-06T05:20:35",
            "upload_time_iso_8601": "2024-03-06T05:20:35.335670Z",
            "url": "https://files.pythonhosted.org/packages/b0/73/8cbb8d928b87ec8eb8bd7c9ae2f13595a75a2eb0c08b1d39fc53c1ad0283/datasette-uptime-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-06 05:20:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "datasette",
    "github_project": "datasette-uptime",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "datasette-uptime"
}
        
Elapsed time: 1.39835s