https://github.com/jhrcook/coffee-counter-api
A simple web API for recording my coffee consumption.
https://github.com/jhrcook/coffee-counter-api
coffee deta deta-micros fastapi python python3 web-api
Last synced: 6 months ago
JSON representation
A simple web API for recording my coffee consumption.
- Host: GitHub
- URL: https://github.com/jhrcook/coffee-counter-api
- Owner: jhrcook
- Created: 2021-03-09T12:02:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-13T10:42:04.000Z (about 4 years ago)
- Last Synced: 2025-02-10T04:24:51.301Z (8 months ago)
- Topics: coffee, deta, deta-micros, fastapi, python, python3, web-api
- Language: Python
- Homepage: https://coffee-counter.deta.dev/docs
- Size: 127 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Coffee Counter web API
A simple web API for recording my coffee consumption.
[](https://www.python.org)
[](https://fastapi.tiangolo.com)
[](https://github.com/jhrcook/coffee-counter-api/actions/workflows/CI.yml)
[](https://github.com/pre-commit/pre-commit)
[](https://github.com/psf/black)
[](http://mypy-lang.org/)**API root: [//a7a9ck.deta.dev](//a7a9ck.deta.dev)**
**Interactive API documentation: [//a7a9ck.deta.dev/docs](//a7a9ck.deta.dev/docs)**## Uses
### SwiftBar Plugin
I have created a [SwiftBar plugin](https://github.com/jhrcook/SwiftBar-Plugins/blob/master/coffee-tracker.1h.py) that queries the API for the active bags and presents them in a drop-down menu.
When one of the labels is tapped, the plugin then registers a use of the bag with the API.
### Streamlit web app
I have built a [Streamlit](http://streamlit.io/) web application for visualizing and analyzing the data collected through this API: [app](https://share.streamlit.io/jhrcook/coffee-counter-streamlit/app.py) | [source](https://github.com/jhrcook/coffee-counter-streamlit)