meditation
A colorful, animated, cross-platform terminal meditation companion — with a genuine (math-driven, not canned) rotating 3D wireframe animation, a guided inhale-hold-exhale breathing exercise, a session timer with progress tracking, comprehensive session history and statistics, and quick links out to further teachings.
Repo: https://github.com/ishanoshada/Meditation-CLI
Works anywhere Python 3 runs: Windows, Linux, macOS, Termux (Android), and iOS terminal apps (Pythonista, a-Shell).
Install
pip install meditation
On Termux, install Python first, then pip install as usual:
pkg install python
pip install meditation
On iOS (a-Shell or Pythonista), open a shell and run the same pip install meditation.
Usage
meditation
or
python -m meditation
What each menu option does
| Option | What it is |
|---|---|
| 1. Guided breathing exercise | An animated circle walks you through inhale → hold (4s) → exhale, repeated for as many cycles as you choose. Sessions are automatically recorded. |
| 2. Meditation timer | Pick a number of minutes and sit quietly while a progress bar and timer count the session down. Option to view stats before starting. Sessions are automatically recorded. |
| 3. View session history & stats | 📊 NEW! See your complete meditation journey with: • Total sessions and total time • Average session duration • Current streak tracking (🔥 for 7+ days) • Last 7 days breakdown with visual bars • Last 30 days weekly breakdown • Recent sessions list • Option to clear history |
| 4. A quiet reflection | Shows one short, original line to sit with — a small prompt for reflection, not a lecture. Recorded as a 1-minute reflection session. |
| 5. About this tool | A quick summary of what the app is and how it works, including total sessions recorded. |
| 6. Open Abhidhamma Teachings | Opens https://abhidhamma.ishanoshada.com/ — Buddha's deep teaching on the nature of mind. |
| 7. Open Lahari Mantras | Opens https://lahari-mantras.ishanoshada.com/ — traditional chants for focus and devotion. |
| 0. Exit | Closes the session. |
Session Tracking & Statistics
The app automatically tracks your meditation practice with:
- Persistent storage: All sessions saved to
~/.meditation_history.json - Session types: Timer sessions, breathing exercises, and reflections are all tracked
- Streak tracking: Counts consecutive days of meditation
- Weekly breakdown: Visual chart showing your practice for the last 7 days
- Monthly breakdown: Weekly totals for the last 30 days
- Progress bars: Visual representation of your consistency
How sessions are recorded:
| Session Type | What gets recorded |
|---|---|
| Guided breathing | Duration based on number of cycles (inhale+hold+exhale) |
| Meditation timer | Full session duration (if completed or stopped early) |
| Quiet reflection | 1 minute reflection session |
Statistics you can view:
- Total sessions and total minutes
- Average session length
- Current streak in days (with emoji indicators)
- Last 7 days with daily totals (visual bars)
- Last 30 days with weekly breakdown
- Recent sessions with timestamps
Data Storage
Your meditation history is stored locally at:
~/.meditation_history.json
This file contains:
- All session records with timestamps and durations
- Session types (timer/breathing/reflection)
- Last updated timestamp
You can clear your history from the statistics menu (option 3).
Color theme
All colors come from one deliberate 4-color palette (not random per
character): saffron #f4a259, deep maroon #a13d63, teal #2ec4b6, and
soft lavender #9d8df1 — inspired by monastic robes and calm water/sky.
Development
git clone https://github.com/ishanoshada/Meditation-CLI.git
cd Meditation-CLI
pip install -e .
meditation
Build and publish with either toolchain — both pyproject.toml and
setup.py are included:
python -m build
twine upload dist/*
Roadmap
More companion web apps are on the way — keep an eye on the GitHub profile for what's coming next.
Planned features:
- Session history tracking
- Statistics dashboard
- Streak tracking
- Export data to CSV
- Daily goals and reminders
- Sound integration (where supported)
Uninstall
pip uninstall meditation
License
MIT License — Ishan Oshada (ic31908@gmail.com)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meditation-3.0.0.tar.gz.
File metadata
- Download URL: meditation-3.0.0.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b32ee5a1b8c5f2eb6f19428cdc5cb1299ae9a49292d3888520f41b248240432f
|
|
| MD5 |
cf9ddad94e95358364d723d19f46458a
|
|
| BLAKE2b-256 |
3bef620f149a3cdfb08a11b8377fd08690742601a0c7dc698678394d686786be
|
File details
Details for the file meditation-3.0.0-py3-none-any.whl.
File metadata
- Download URL: meditation-3.0.0-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bf52c27e7d0f118b610c6b9b44a7101b4a02a902c6cbdc11e7432ba751cc524
|
|
| MD5 |
0b88da342e7dfde720cefb85524f4ce5
|
|
| BLAKE2b-256 |
42ee8ea5ba187dde6c13e73da33b6e8cea49f36a5efb8d64bb680cced7032bec
|