Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 19 days 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 (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-13T10:42:04.000Z (over 3 years ago)
- Last Synced: 2024-10-12T16:53:14.449Z (3 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.
[![python](https://img.shields.io/badge/Python-3.7-3776AB.svg?style=flat&logo=python&logoColor=FFFF9A)](https://www.python.org)
[![FastAPI](https://img.shields.io/badge/FastAPI-0.63.0-009688.svg?style=flat&logo=FastAPI&logoColor=white)](https://fastapi.tiangolo.com)
[![pytest](https://github.com/jhrcook/coffee-counter-api/actions/workflows/CI.yml/badge.svg)](https://github.com/jhrcook/coffee-counter-api/actions/workflows/CI.yml)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](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)