Metadata-Version: 2.1
Name: streamlit-timeago
Version: 0.1.1
Summary: Streamlit wrapper of timeago-react to render time ago
Home-page: https://github.com/prihoda/streamlit-timeago
Author: David Prihoda
Author-email: david.prihoda@gmail.com
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: streamlit (>=0.63)
Provides-Extra: devel
Requires-Dist: wheel ; extra == 'devel'
Requires-Dist: pytest (==7.4.0) ; extra == 'devel'
Requires-Dist: playwright (==1.48.0) ; extra == 'devel'
Requires-Dist: requests (==2.31.0) ; extra == 'devel'
Requires-Dist: pytest-playwright-snapshot (==1.0) ; extra == 'devel'
Requires-Dist: pytest-rerunfailures (==12.0) ; extra == 'devel'

# 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())
```
