streamlit-timeago


Namestreamlit-timeago JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/prihoda/streamlit-timeago
SummaryStreamlit wrapper of timeago-react to render time ago
upload_time2024-12-02 10:25:32
maintainerNone
docs_urlNone
authorDavid Prihoda
requires_python>=3.7
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Streamlit Time Ago

Streamlit wrapper of `timeago-react`: https://www.npmjs.com/package/timeago-react

Examples:

```
just now
12 seconds ago
2 hours ago
3 days ago
3 weeks ago
2 years ago

in 12 seconds
in 3 minutes
in 24 days
in 6 months
```

## Installation instructions

```sh
pip install streamlit-timeago
```

## Usage instructions

```python
from streamlit_timeago import time_ago
from datetime import datetime

time_ago(datetime.now())
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/prihoda/streamlit-timeago",
    "name": "streamlit-timeago",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "David Prihoda",
    "author_email": "david.prihoda@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/21/36/1ad777d8c4d57d5f99d04876f78fd4f19f4616db5a4e5dce430dbcea5883/streamlit-timeago-0.1.1.tar.gz",
    "platform": null,
    "description": "# Streamlit Time Ago\n\nStreamlit wrapper of `timeago-react`: https://www.npmjs.com/package/timeago-react\n\nExamples:\n\n```\njust now\n12 seconds ago\n2 hours ago\n3 days ago\n3 weeks ago\n2 years ago\n\nin 12 seconds\nin 3 minutes\nin 24 days\nin 6 months\n```\n\n## Installation instructions\n\n```sh\npip install streamlit-timeago\n```\n\n## Usage instructions\n\n```python\nfrom streamlit_timeago import time_ago\nfrom datetime import datetime\n\ntime_ago(datetime.now())\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Streamlit wrapper of timeago-react to render time ago",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/prihoda/streamlit-timeago"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b862a52d0307c8999d8a3caf08e6c8c5f4477bc168fc48d3c475988287e1ec95",
                "md5": "a48fd7d22dec694e24f422fdbe84792e",
                "sha256": "7f730f44ab6d8837f6b33fb2fab8c359c2ba8c7987f846a43720cf006166413c"
            },
            "downloads": -1,
            "filename": "streamlit_timeago-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a48fd7d22dec694e24f422fdbe84792e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 115963,
            "upload_time": "2024-12-02T10:25:30",
            "upload_time_iso_8601": "2024-12-02T10:25:30.768540Z",
            "url": "https://files.pythonhosted.org/packages/b8/62/a52d0307c8999d8a3caf08e6c8c5f4477bc168fc48d3c475988287e1ec95/streamlit_timeago-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21361ad777d8c4d57d5f99d04876f78fd4f19f4616db5a4e5dce430dbcea5883",
                "md5": "2ffc91220a2cee5ace70ae941a4200f9",
                "sha256": "3e520ead0ba41addcb9d2c78f37cce40ca4d03e5e2ae0e8b13886f68be185713"
            },
            "downloads": -1,
            "filename": "streamlit-timeago-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2ffc91220a2cee5ace70ae941a4200f9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 115177,
            "upload_time": "2024-12-02T10:25:32",
            "upload_time_iso_8601": "2024-12-02T10:25:32.122999Z",
            "url": "https://files.pythonhosted.org/packages/21/36/1ad777d8c4d57d5f99d04876f78fd4f19f4616db5a4e5dce430dbcea5883/streamlit-timeago-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-02 10:25:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "prihoda",
    "github_project": "streamlit-timeago",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "streamlit-timeago"
}
        
Elapsed time: 0.37532s