Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/staticf0x/daylio-parser
A Python module to parse Daylio exports
https://github.com/staticf0x/daylio-parser
Last synced: 3 days ago
JSON representation
A Python module to parse Daylio exports
- Host: GitHub
- URL: https://github.com/staticf0x/daylio-parser
- Owner: staticf0x
- License: mit
- Created: 2020-11-11T13:01:15.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-04T17:17:06.000Z (9 months ago)
- Last Synced: 2024-08-09T10:30:52.642Z (5 months ago)
- Language: Python
- Size: 269 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![ci-badge][]][ci-link] [![docs-badge][]][docs-link]
[![py-versions-badge][]][pypi-link] [![pypi-badge][]][pypi-link]# daylio-parser
A Python module to parse [Daylio](https://daylio.net/) CSV exports.
## Development
Install `poetry`, `tox` and `tox-poetry`.
Installing the virtual env:
`$ poetry install`
Switching into the venv:
`$ poetry shell`
Running test for the current python version:
`$ pytest -v --cov=daylio_parser --cov-report term-missing tests`
Running all checks with tox prior to running GitHub actions:
`$ tox`
## TODO
- [x] Parse CSV into entries (parser.py)
- [x] Implement MoodConfig (config.py) to allow multiple moods
- [x] Plus a default config for clean Daylio installs
- [ ] Stats
- [ ] Mood stability algorithm
- [x] Average moods by day
- [x] Average mood by activity
- [x] Find mood periods — aka periods of moods meeting certain criteria
- [ ] Extend mood period search — search above, below and in between thresholds
- [x] Prepare data for plotting
- [x] Splitting entries into bands
- [x] Interpolating data for smooth charts
- [x] Calculating rolling mean
- [ ] Re-export data into other formats
- [ ] JSON[ci-link]: https://github.com/staticf0x/daylio-parser/actions/workflows/check.yml
[ci-badge]: https://img.shields.io/github/actions/workflow/status/staticf0x/daylio-parser/check.yml?branch=master
[docs-link]: https://daylio-parser.readthedocs.io/en/latest/
[docs-badge]: https://img.shields.io/readthedocs/daylio-parser/latest
[py-versions-badge]: https://img.shields.io/pypi/pyversions/daylio-parser
[pypi-link]: https://pypi.org/project/daylio-parser/
[pypi-badge]: https://img.shields.io/pypi/v/daylio-parser