nafas


Namenafas JSON
Version 1.4 PyPI version JSON
download
home_pagehttps://github.com/sepandhaghighi/nafas
SummaryBreathing gymnastics application
upload_time2025-07-29 14:25:27
maintainerNone
docs_urlNone
authorNafas Development Team
requires_python>=3.7
licenseMIT
keywords breath breathing meditation yoga pranayama
VCS
bugtrack_url
requirements art nava
Travis-CI No Travis.
coveralls test coverage
            
<div align="center">
<img src="https://github.com/sepandhaghighi/nafas/raw/master/otherfiles/logo.png" width=320px>
<h1>Nafas: A Breathing Gymnastics Application</h1>
<hr>
<a href="https://badge.fury.io/py/nafas"><img src="https://badge.fury.io/py/nafas.svg" alt="PyPI version"></a>
<a href="https://codecov.io/gh/sepandhaghighi/nafas"><img src="https://codecov.io/gh/sepandhaghighi/nafas/branch/master/graph/badge.svg" alt="Codecov"></a>
<a href="https://www.python.org/"><img src="https://img.shields.io/badge/built%20with-Python3-green.svg" alt="built with Python3"></a>
<a href="https://github.com/sepandhaghighi/nafas"><img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/sepandhaghighi/nafas"></a>
<a href="https://discord.gg/CtZUNKJHP4"><img src="https://img.shields.io/discord/901570530145107978.svg" alt="Discord Channel"></a>
</div>	

				
## Overview						
Breathing gymnastics is a system of breathing exercises that focuses on the treatment of various diseases and general health promotion.
**Nafas** is a collection of breathing gymnastics designed to reduce the exhaustion of long working hours.
With multiple breathing patterns, **Nafas** helps you find your way to a detoxified energetic workday and also improves your concentration by increasing the oxygen level.
No need to walk away to take a break, just sit comfortably, run **Nafas** and let the journey begin.
**Nafas** means breath in Persian.

**Nafas** offers a selection of predefined breathing exercise programs.
Each program consists of multiple cycles.
The exercises begin with a gentle preparation phase to help users settle in and focus, followed by a series of timed inhales and exhales.
Between these breaths, the programs incorporate deliberate pauses that allow users to retain and sustain their breath.
These cycles aim to enhance both physical and mental well-being.

<div align="center">
	<img src="https://github.com/sepandhaghighi/nafas/raw/master/otherfiles/overview.png" width=300px alt="Nafas Programs' Cycle">
	<p>Nafas Programs' Cycle</p>
</div>

<table>
	<tr> 
		<td align="center">Open Hub</td>
		<td align="center"><a href="https://www.openhub.net/p/nafas"><img src="https://www.openhub.net/p/nafas/widgets/project_thin_badge.gif"></a></td>	
	</tr>
	<tr>
		<td align="center">PyPI Counter</td>
		<td align="center"><a href="http://pepy.tech/project/nafas"><img src="http://pepy.tech/badge/nafas"></a></td>
	</tr>
	<tr>
		<td align="center">Github Stars</td>
		<td align="center"><a href="https://github.com/sepandhaghighi/nafas"><img src="https://img.shields.io/github/stars/sepandhaghighi/nafas.svg?style=social&label=Stars"></a></td>
	</tr>
</table>



<table>
	<tr> 
		<td align="center">Branch</td>
		<td align="center">master</td>	
		<td align="center">dev</td>	
	</tr>
	<tr>
		<td align="center">CI</td>
		<td align="center"><img src="https://github.com/sepandhaghighi/nafas/actions/workflows/test.yml/badge.svg?branch=master"></td>
		<td align="center"><img src="https://github.com/sepandhaghighi/nafas/actions/workflows/test.yml/badge.svg?branch=dev"></td>
	</tr>
</table>


<table>
	<tr> 
		<td align="center">Code Quality</td>
		<td align="center"><a href="https://app.codacy.com/gh/sepandhaghighi/nafas/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade"><img src="https://app.codacy.com/project/badge/Grade/b2be5ce052bc43a89713ac4aec6f8d11"/></a></td>
		<td align="center"><a href="https://www.codefactor.io/repository/github/sepandhaghighi/nafas"><img src="https://www.codefactor.io/repository/github/sepandhaghighi/nafas/badge" alt="CodeFactor" /></a></td>		
	</tr>
</table>


## Installation		

### Source Code
- Download [Version 1.4](https://github.com/sepandhaghighi/nafas/archive/v1.4.zip) or [Latest Source](https://github.com/sepandhaghighi/nafas/archive/dev.zip)
- `pip install .`				

### PyPI

- Check [Python Packaging User Guide](https://packaging.python.org/installing/)     
- `pip install nafas==1.4`						
	

### Exe Version

⚠️ Only Windows

- Download [Exe-Version 1.4](https://github.com/sepandhaghighi/nafas/releases/download/v1.4/NAFAS-1.4.exe)
- Run `NAFAS-1.4.exe`


## Usage	

ℹ️ You can use `nafas`, `python -m nafas` or `NAFAS.exe` to run this program

ℹ️ Checkout the available programs in [PROGRAMS.md](https://github.com/sepandhaghighi/nafas/blob/master/PROGRAMS.md)

### Version

```console
nafas --version
```

### Basic

```console
nafas
```

### Silent Mode

ℹ️ This mode will disable the sound playing system

```console
nafas --silent
```	

### Speaker

ℹ️ Customize your experience by choosing from a set of speaker voices to guide you through the exercises.
You can specify the speaker using the `--speaker`:

```console
nafas --speaker=us1
```

Choose your speaker from the following list:
| ID | Description |
|:--:|:-----------:|
| `us1` | Feminine voice with a US accent |
| `us2` | Masculine voice with a US accent |
| `in1` | Feminine voice with an Indian accent |
| `in2` | Masculine voice with an Indian accent |
| `cn1` | Feminine voice with a Chinese accent |
| `cn2` | Masculine voice with a Chinese accent |
| `ca1` | Feminine voice with a Canadian accent |
| `ca2` | Masculine voice with a Canadian accent |
| `au1` | Feminine voice with an Australian accent |
| `au2` | Masculine voice with an Australian accent |
| `uk1` | Feminine voice with a British accent |
| `uk2` | Masculine voice with a British accent |


### Skip Intro

ℹ️ This mode will skip the introduction

```console
nafas --skip-intro
```	


### Custom Config

ℹ️ Users can load their custom configurations

```console
nafas --config="program1.json"
```

Config example:

```json
{
    "name": "program1",
    "unit": 2,
    "pre": 3,
    "cycle": 10,
    "ratio": {
        "inhale": 2,
        "exhale": 2,
        "retain": 3,
        "sustain": 4
    }
}
```

## Screen Record

<div align="center">

<img src="https://github.com/sepandhaghighi/nafas/raw/master/otherfiles/help.gif" alt="Screen Record">

</div>


## Issues & Bug Reports			

Just fill an issue and describe it. We'll check it ASAP!

- Please complete the issue template

You can also join our discord server

<a href="https://discord.gg/CtZUNKJHP4">
  <img src="https://img.shields.io/discord/901570530145107978.svg?style=for-the-badge" alt="Discord Channel">
</a>
 			

## References

<blockquote>1- <a href="https://pranabreath.info">Prana Breath</a> </blockquote>

<blockquote>2- Rickard, Kathleen Benjamin, Dorothy J. Dunn, and Virginia M. Brouch. "Breathing techniques associated with improved health outcomes." (2015). </blockquote>

<blockquote>3- Zaccaro, Andrea, Andrea Piarulli, Marco Laurino, Erika Garbella, Danilo Menicucci, Bruno Neri, and Angelo Gemignani. "How breath-control can change your life: a systematic review on psycho-physiological correlates of slow breathing." Frontiers in human neuroscience 12 (2018): 353. </blockquote>

<blockquote>4- Brook, Robert D., Lawrence J. Appel, Melvyn Rubenfire, Gbenga Ogedegbe, John D. Bisognano, William J. Elliott, Flavio D. Fuchs et al. "Beyond medications and diet: alternative approaches to lowering blood pressure: a scientific statement from the American Heart Association." Hypertension 61, no. 6 (2013): 1360-1383. </blockquote>	

<blockquote>5- Russo, Marc A., Danielle M. Santarelli, and Dean O’Rourke. "The physiological effects of slow breathing in the healthy human." Breathe 13, no. 4 (2017): 298-309. </blockquote>	

<blockquote>6- Bujatti, M., and P. Biederer. "Serotonin, noradrenaline, dopamine metabolites in transcendental meditation-technique." Journal of Neural Transmission 39, no. 3 (1976): 257-267. </blockquote>

<blockquote>7- Martarelli, Daniele, Mario Cocchioni, Stefania Scuri, and Pierluigi Pompei. "Diaphragmatic breathing reduces exercise-induced oxidative stress." Evidence-Based Complementary and Alternative Medicine 2011 (2011). </blockquote>		

<blockquote>8- <a href="https://www.drweil.com/videos-features/videos/breathing-exercises-4-7-8-breath/">DrWeil, Integrative Medicine & Healthy Living</a> </blockquote>

<blockquote>9- <a href="https://www.hgi.org.uk/resources/delve-our-extensive-library/resources-and-techniques/7-11-breathing-how-does-deep">Human Givens Institute</a> </blockquote>

<blockquote>10- <a href="https://www.inc.com/mithu-storoni/this-2-minute-breathing-exercise-can-help-you-make-better-decisions-according-to-a-new-study.html">This 2-Minute Breathing Exercise Can Help You Make Better Decisions</a> </blockquote>

<blockquote>11- <a href="https://k12.thoughtfullearning.com/minilesson/using-5-5-5-breathing-calm-down">Using 5-5-5 Breathing to Calm Down</a> </blockquote>
					
<blockquote>12- <a href="https://ttsmp3.com/">Free Text-To-Speech and Text-to-MP3 for US English</a> </blockquote>

<blockquote>13- <a href="https://www.yogabasics.com/practice/pranayama/">Pranayama Breathing Techniques and Tips</a> </blockquote>

<blockquote>14- <a href="https://health.clevelandclinic.org/box-breathing-benefits">Box Breathing Benefits and Techniques</a> </blockquote>

<blockquote>15- <a href="https://www.medicalnewstoday.com/articles/321805#how-to-do-it">Box breathing: How to do it, benefits, and tips</a> </blockquote>

<blockquote>16- <a href="https://pubmed.ncbi.nlm.nih.gov/24380741/">Breathing at a rate of 5.5 breaths per minute with equal inhalation-to-exhalation ratio increases heart rate variability</a> </blockquote>

<blockquote>17- <a href="https://www.youtube.com/watch?v=dPkpW5lqL3E">Coherent Breathing Timer - 6 Breaths Per Minute | 5 Seconds in / 5 Seconds Out | With Bells</a> </blockquote>

## Cite

If you use **Nafas** in your research, we would appreciate citations to the following paper:


[Sabouri, Sadra, and Sepand Haghighi. "Nafas: Breathing Gymnastics Application." *arXiv preprint arXiv:2412.04667* (2024).](https://arxiv.org/abs/2412.04667)


```bibtex
@article{sabouri2024nafas,
  title={Nafas: Breathing Gymnastics Application},
  author={Sabouri, Sadra and Haghighi, Sepand},
  journal={arXiv preprint arXiv:2412.04667},
  year={2024}
}
```

## Show Your Support
								
<h3>Star This Repo</h3>					

Give a ⭐️ if this project helped you!

<h3>Donate to Our Project</h3>	

<h4>Bitcoin</h4>
1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCy
<h4>Ethereum</h4>
0xcD4Db18B6664A9662123D4307B074aE968535388
<h4>Litecoin</h4>
Ldnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZ
<h4>Doge</h4>
DDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDh
<h4>Tron</h4>
TCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7
<h4>Ripple</h4>
rN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qq
<h4>Binance Coin</h4>
bnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qef
<h4>Tether</h4>
0xcD4Db18B6664A9662123D4307B074aE968535388
<h4>Dash</h4>
Xd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3s
<h4>Stellar</h4>		
GALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNL
<h4>Zilliqa</h4>
zil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5
<h4>Coffeete</h4>
<a href="http://www.coffeete.ir/opensource">
<img src="http://www.coffeete.ir/images/buttons/lemonchiffon.png" style="width:260px;" />
</a>

# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [1.4] - 2025-07-29
### Added
- `ca1` speaker audio files
- `ca2` speaker audio files
- `au1` speaker audio files
- `au2` speaker audio files
- `uk1` speaker audio files
- `uk2` speaker audio files
### Changed
- Build script updated
- `README.md` modified
- `line` function renamed to `print_line`
- `bpm_calc` function renamed to `calculate_bpm`
- `time_calc` function renamed to `calculate_time`
- `time_average_calc` function renamed to `calculate_average_time`
- `time_convert` function renamed to `convert_time`
- `left_justify` function renamed to `justify_left`
- `justify` function renamed to `justify_text`
- `sound_check` function renamed to `check_sound`
- `nafas_description_print` function renamed to `print_nafas_description`
- `program_details_print` function renamed to `print_program_details`
- `input_filter` function renamed to `filter_input`
- `get_input_standard` function renamed to `get_standard_input`
- `run` function renamed to `run_program`
## [1.3] - 2025-06-27
### Added
- `--speaker` argument
- `us2` speaker audio files
- `in1` speaker audio files
- `in2` speaker audio files
- `cn1` speaker audio files
- `cn2` speaker audio files
### Changed
- `README.md` modified
## [1.2] - 2025-06-04
### Added
- Coherent program
- Breaths Per Minute (BPM)
### Changed
- `description_print` function renamed to `nafas_description_print`
- `program_description_print` function renamed to `program_details_print`
-  Python typing features added to all modules
-  `Python 3.6` support dropped
-  Test system modified
-  `PROGRAMS.md` updated
## [1.1] - 2025-04-10
### Added
- Survey form
- `--config` argument
- `--skip-intro` argument
### Changed
- `README.md` modified
## [1.0] - 2025-03-10
### Added
- Calming3 program
- Box program
### Changed
- `README.md` modified
- String templates modified
- `PROGRAMS.md` updated
## [0.9] - 2025-01-06
### Added
- Energizing program
- `PROGRAMS.md`
- Cautions message
### Changed
- `README.md` modified
- `AUTHORS.md` updated
- Menu updated
- Exit bug fixed
- Program details updated
## [0.8] - 2024-11-04
### Added
- Balancing program
- `--silent` argument
- `clear_screen` function
### Changed
- GitHub actions are limited to the `dev` and `master` branches
- Restart mode updated
- Exit bug fixed
- `Python 3.13` added to `test.yml`
- Messages and templates moved to `params.py`
## [0.7] - 2024-08-27
### Added
- `feature_request.yml` template
- `config.yml` for issue template
- `sound_check` function
- `SECURITY.md`
### Changed
- Silence added to the start of sounds
- Bug report template modified
- `playsound` replaced with `nava`
- `nava` added to `requirements.txt`
- Test system modified
- Build system modified
- `get_input_standard` function modified
- `Python 3.11` added to `test.yml`
- `Python 3.12` added to `test.yml`
- `Python 3.5` support dropped
- CLI mode updated
- Exit message updated
- `README.md` modified
## [0.6] - 2022-06-22
### Added
- Calming2 program
### Changed
- Calming program renamed to Calming1
- Logo updated
- `README.md` modified
## [0.5] - 2022-05-09
### Added
- Decision-Making program
- `time_calc` function
- `time_average_calc` function
### Changed
- `AUTHORS.md` updated
- License updated
- `README.md` modified
- `Python 3.10` added to `test.yml`
- `time_convert` function modified
- `get_input_standard` function modified
- Menu updated
- Relax program renamed to Relax1
- 4-7-8 program renamed to Relax2
- 7-11 program renamed to Relax3
## [0.4] - 2021-05-12
### Added
- `start.wav`
- `well_done.wav`
- `preparing.wav`
- `requirements-splitter.py`
- 4-7-8 program
- 7-11 program
### Changed
- Sound speaker changed
- Test system modified
- Menu optimized
## [0.3] - 2021-02-09
### Changed
- Sounds bug in pypi fixed
- Icon modified
- Menu optimized
## [0.2] - 2021-01-29
### Added
- `_playsound_async` function
- `play_sound` function
- `inhale.wav`
- `exhale.wav`
- `sustain.wav`
- `retain.wav`
- `get_sound_path` function
- `program_description_print` function
- `time_convert` function
### Changed
- Menu optimized
- Test system modified
- `get_program_dict` function renamed to `get_program_data`
- `program_dict` parameter renamed to `program_data`
- `input_dict` parameter renamed to `input_data`
- `README.md` updated
## [0.1] - 2020-10-30
### Added
- Clear Mind program
- Relax program
- Calming program
- Power program
- Anti-Stress program
- Anti-Appetite program 
- Cigarette Replace program

[Unreleased]: https://github.com/sepandhaghighi/nafas/compare/v1.4...dev
[1.4]: https://github.com/sepandhaghighi/nafas/compare/v1.3...v1.4
[1.3]: https://github.com/sepandhaghighi/nafas/compare/v1.2...v1.3
[1.2]: https://github.com/sepandhaghighi/nafas/compare/v1.1...v1.2
[1.1]: https://github.com/sepandhaghighi/nafas/compare/v1.0...v1.1
[1.0]: https://github.com/sepandhaghighi/nafas/compare/v0.9...v1.0
[0.9]: https://github.com/sepandhaghighi/nafas/compare/v0.8...v0.9
[0.8]: https://github.com/sepandhaghighi/nafas/compare/v0.7...v0.8
[0.7]: https://github.com/sepandhaghighi/nafas/compare/v0.6...v0.7
[0.6]: https://github.com/sepandhaghighi/nafas/compare/v0.5...v0.6
[0.5]: https://github.com/sepandhaghighi/nafas/compare/v0.4...v0.5
[0.4]: https://github.com/sepandhaghighi/nafas/compare/v0.3...v0.4
[0.3]: https://github.com/sepandhaghighi/nafas/compare/v0.2...v0.3
[0.2]: https://github.com/sepandhaghighi/nafas/compare/v0.1...v0.2
[0.1]: https://github.com/sepandhaghighi/nafas/compare/c58087a...v0.1




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sepandhaghighi/nafas",
    "name": "nafas",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "breath breathing meditation yoga pranayama",
    "author": "Nafas Development Team",
    "author_email": "me@sepand.tech",
    "download_url": "https://files.pythonhosted.org/packages/a5/bc/a9e39d909decb6b5684c003ec9c49a68e2f587c5e484865049f395ddad30/nafas-1.4.tar.gz",
    "platform": null,
    "description": "\n<div align=\"center\">\n<img src=\"https://github.com/sepandhaghighi/nafas/raw/master/otherfiles/logo.png\" width=320px>\n<h1>Nafas: A Breathing Gymnastics Application</h1>\n<hr>\n<a href=\"https://badge.fury.io/py/nafas\"><img src=\"https://badge.fury.io/py/nafas.svg\" alt=\"PyPI version\"></a>\n<a href=\"https://codecov.io/gh/sepandhaghighi/nafas\"><img src=\"https://codecov.io/gh/sepandhaghighi/nafas/branch/master/graph/badge.svg\" alt=\"Codecov\"></a>\n<a href=\"https://www.python.org/\"><img src=\"https://img.shields.io/badge/built%20with-Python3-green.svg\" alt=\"built with Python3\"></a>\n<a href=\"https://github.com/sepandhaghighi/nafas\"><img alt=\"GitHub repo size\" src=\"https://img.shields.io/github/repo-size/sepandhaghighi/nafas\"></a>\n<a href=\"https://discord.gg/CtZUNKJHP4\"><img src=\"https://img.shields.io/discord/901570530145107978.svg\" alt=\"Discord Channel\"></a>\n</div>\t\n\n\t\t\t\t\n## Overview\t\t\t\t\t\t\nBreathing gymnastics is a system of breathing exercises that focuses on the treatment of various diseases and general health promotion.\n**Nafas** is a collection of breathing gymnastics designed to reduce the exhaustion of long working hours.\nWith multiple breathing patterns, **Nafas** helps you find your way to a detoxified energetic workday and also improves your concentration by increasing the oxygen level.\nNo need to walk away to take a break, just sit comfortably, run **Nafas** and let the journey begin.\n**Nafas** means breath in Persian.\n\n**Nafas** offers a selection of predefined breathing exercise programs.\nEach program consists of multiple cycles.\nThe exercises begin with a gentle preparation phase to help users settle in and focus, followed by a series of timed inhales and exhales.\nBetween these breaths, the programs incorporate deliberate pauses that allow users to retain and sustain their breath.\nThese cycles aim to enhance both physical and mental well-being.\n\n<div align=\"center\">\n\t<img src=\"https://github.com/sepandhaghighi/nafas/raw/master/otherfiles/overview.png\" width=300px alt=\"Nafas Programs' Cycle\">\n\t<p>Nafas Programs' Cycle</p>\n</div>\n\n<table>\n\t<tr> \n\t\t<td align=\"center\">Open Hub</td>\n\t\t<td align=\"center\"><a href=\"https://www.openhub.net/p/nafas\"><img src=\"https://www.openhub.net/p/nafas/widgets/project_thin_badge.gif\"></a></td>\t\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">PyPI Counter</td>\n\t\t<td align=\"center\"><a href=\"http://pepy.tech/project/nafas\"><img src=\"http://pepy.tech/badge/nafas\"></a></td>\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">Github Stars</td>\n\t\t<td align=\"center\"><a href=\"https://github.com/sepandhaghighi/nafas\"><img src=\"https://img.shields.io/github/stars/sepandhaghighi/nafas.svg?style=social&label=Stars\"></a></td>\n\t</tr>\n</table>\n\n\n\n<table>\n\t<tr> \n\t\t<td align=\"center\">Branch</td>\n\t\t<td align=\"center\">master</td>\t\n\t\t<td align=\"center\">dev</td>\t\n\t</tr>\n\t<tr>\n\t\t<td align=\"center\">CI</td>\n\t\t<td align=\"center\"><img src=\"https://github.com/sepandhaghighi/nafas/actions/workflows/test.yml/badge.svg?branch=master\"></td>\n\t\t<td align=\"center\"><img src=\"https://github.com/sepandhaghighi/nafas/actions/workflows/test.yml/badge.svg?branch=dev\"></td>\n\t</tr>\n</table>\n\n\n<table>\n\t<tr> \n\t\t<td align=\"center\">Code Quality</td>\n\t\t<td align=\"center\"><a href=\"https://app.codacy.com/gh/sepandhaghighi/nafas/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade\"><img src=\"https://app.codacy.com/project/badge/Grade/b2be5ce052bc43a89713ac4aec6f8d11\"/></a></td>\n\t\t<td align=\"center\"><a href=\"https://www.codefactor.io/repository/github/sepandhaghighi/nafas\"><img src=\"https://www.codefactor.io/repository/github/sepandhaghighi/nafas/badge\" alt=\"CodeFactor\" /></a></td>\t\t\n\t</tr>\n</table>\n\n\n## Installation\t\t\n\n### Source Code\n- Download [Version 1.4](https://github.com/sepandhaghighi/nafas/archive/v1.4.zip) or [Latest Source](https://github.com/sepandhaghighi/nafas/archive/dev.zip)\n- `pip install .`\t\t\t\t\n\n### PyPI\n\n- Check [Python Packaging User Guide](https://packaging.python.org/installing/)     \n- `pip install nafas==1.4`\t\t\t\t\t\t\n\t\n\n### Exe Version\n\n\u26a0\ufe0f Only Windows\n\n- Download [Exe-Version 1.4](https://github.com/sepandhaghighi/nafas/releases/download/v1.4/NAFAS-1.4.exe)\n- Run `NAFAS-1.4.exe`\n\n\n## Usage\t\n\n\u2139\ufe0f You can use `nafas`, `python -m nafas` or `NAFAS.exe` to run this program\n\n\u2139\ufe0f Checkout the available programs in [PROGRAMS.md](https://github.com/sepandhaghighi/nafas/blob/master/PROGRAMS.md)\n\n### Version\n\n```console\nnafas --version\n```\n\n### Basic\n\n```console\nnafas\n```\n\n### Silent Mode\n\n\u2139\ufe0f This mode will disable the sound playing system\n\n```console\nnafas --silent\n```\t\n\n### Speaker\n\n\u2139\ufe0f Customize your experience by choosing from a set of speaker voices to guide you through the exercises.\nYou can specify the speaker using the `--speaker`:\n\n```console\nnafas --speaker=us1\n```\n\nChoose your speaker from the following list:\n| ID | Description |\n|:--:|:-----------:|\n| `us1` | Feminine voice with a US accent |\n| `us2` | Masculine voice with a US accent |\n| `in1` | Feminine voice with an Indian accent |\n| `in2` | Masculine voice with an Indian accent |\n| `cn1` | Feminine voice with a Chinese accent |\n| `cn2` | Masculine voice with a Chinese accent |\n| `ca1` | Feminine voice with a Canadian accent |\n| `ca2` | Masculine voice with a Canadian accent |\n| `au1` | Feminine voice with an Australian accent |\n| `au2` | Masculine voice with an Australian accent |\n| `uk1` | Feminine voice with a British accent |\n| `uk2` | Masculine voice with a British accent |\n\n\n### Skip Intro\n\n\u2139\ufe0f This mode will skip the introduction\n\n```console\nnafas --skip-intro\n```\t\n\n\n### Custom Config\n\n\u2139\ufe0f Users can load their custom configurations\n\n```console\nnafas --config=\"program1.json\"\n```\n\nConfig example:\n\n```json\n{\n    \"name\": \"program1\",\n    \"unit\": 2,\n    \"pre\": 3,\n    \"cycle\": 10,\n    \"ratio\": {\n        \"inhale\": 2,\n        \"exhale\": 2,\n        \"retain\": 3,\n        \"sustain\": 4\n    }\n}\n```\n\n## Screen Record\n\n<div align=\"center\">\n\n<img src=\"https://github.com/sepandhaghighi/nafas/raw/master/otherfiles/help.gif\" alt=\"Screen Record\">\n\n</div>\n\n\n## Issues & Bug Reports\t\t\t\n\nJust fill an issue and describe it. We'll check it ASAP!\n\n- Please complete the issue template\n\nYou can also join our discord server\n\n<a href=\"https://discord.gg/CtZUNKJHP4\">\n  <img src=\"https://img.shields.io/discord/901570530145107978.svg?style=for-the-badge\" alt=\"Discord Channel\">\n</a>\n \t\t\t\n\n## References\n\n<blockquote>1- <a href=\"https://pranabreath.info\">Prana Breath</a> </blockquote>\n\n<blockquote>2- Rickard, Kathleen Benjamin, Dorothy J. Dunn, and Virginia M. Brouch. \"Breathing techniques associated with improved health outcomes.\" (2015). </blockquote>\n\n<blockquote>3- Zaccaro, Andrea, Andrea Piarulli, Marco Laurino, Erika Garbella, Danilo Menicucci, Bruno Neri, and Angelo Gemignani. \"How breath-control can change your life: a systematic review on psycho-physiological correlates of slow breathing.\" Frontiers in human neuroscience 12 (2018): 353. </blockquote>\n\n<blockquote>4- Brook, Robert D., Lawrence J. Appel, Melvyn Rubenfire, Gbenga Ogedegbe, John D. Bisognano, William J. Elliott, Flavio D. Fuchs et al. \"Beyond medications and diet: alternative approaches to lowering blood pressure: a scientific statement from the American Heart Association.\" Hypertension 61, no. 6 (2013): 1360-1383. </blockquote>\t\n\n<blockquote>5- Russo, Marc A., Danielle M. Santarelli, and Dean O\u2019Rourke. \"The physiological effects of slow breathing in the healthy human.\" Breathe 13, no. 4 (2017): 298-309. </blockquote>\t\n\n<blockquote>6- Bujatti, M., and P. Biederer. \"Serotonin, noradrenaline, dopamine metabolites in transcendental meditation-technique.\" Journal of Neural Transmission 39, no. 3 (1976): 257-267. </blockquote>\n\n<blockquote>7- Martarelli, Daniele, Mario Cocchioni, Stefania Scuri, and Pierluigi Pompei. \"Diaphragmatic breathing reduces exercise-induced oxidative stress.\" Evidence-Based Complementary and Alternative Medicine 2011 (2011). </blockquote>\t\t\n\n<blockquote>8- <a href=\"https://www.drweil.com/videos-features/videos/breathing-exercises-4-7-8-breath/\">DrWeil, Integrative Medicine & Healthy Living</a> </blockquote>\n\n<blockquote>9- <a href=\"https://www.hgi.org.uk/resources/delve-our-extensive-library/resources-and-techniques/7-11-breathing-how-does-deep\">Human Givens Institute</a> </blockquote>\n\n<blockquote>10- <a href=\"https://www.inc.com/mithu-storoni/this-2-minute-breathing-exercise-can-help-you-make-better-decisions-according-to-a-new-study.html\">This 2-Minute Breathing Exercise Can Help You Make Better Decisions</a> </blockquote>\n\n<blockquote>11- <a href=\"https://k12.thoughtfullearning.com/minilesson/using-5-5-5-breathing-calm-down\">Using 5-5-5 Breathing to Calm Down</a> </blockquote>\n\t\t\t\t\t\n<blockquote>12- <a href=\"https://ttsmp3.com/\">Free Text-To-Speech and Text-to-MP3 for US English</a> </blockquote>\n\n<blockquote>13- <a href=\"https://www.yogabasics.com/practice/pranayama/\">Pranayama Breathing Techniques and Tips</a> </blockquote>\n\n<blockquote>14- <a href=\"https://health.clevelandclinic.org/box-breathing-benefits\">Box Breathing Benefits and Techniques</a> </blockquote>\n\n<blockquote>15- <a href=\"https://www.medicalnewstoday.com/articles/321805#how-to-do-it\">Box breathing: How to do it, benefits, and tips</a> </blockquote>\n\n<blockquote>16- <a href=\"https://pubmed.ncbi.nlm.nih.gov/24380741/\">Breathing at a rate of 5.5 breaths per minute with equal inhalation-to-exhalation ratio increases heart rate variability</a> </blockquote>\n\n<blockquote>17- <a href=\"https://www.youtube.com/watch?v=dPkpW5lqL3E\">Coherent Breathing Timer - 6 Breaths Per Minute | 5 Seconds in / 5 Seconds Out | With Bells</a> </blockquote>\n\n## Cite\n\nIf you use **Nafas** in your research, we would appreciate citations to the following paper:\n\n\n[Sabouri, Sadra, and Sepand Haghighi. \"Nafas: Breathing Gymnastics Application.\" *arXiv preprint arXiv:2412.04667* (2024).](https://arxiv.org/abs/2412.04667)\n\n\n```bibtex\n@article{sabouri2024nafas,\n  title={Nafas: Breathing Gymnastics Application},\n  author={Sabouri, Sadra and Haghighi, Sepand},\n  journal={arXiv preprint arXiv:2412.04667},\n  year={2024}\n}\n```\n\n## Show Your Support\n\t\t\t\t\t\t\t\t\n<h3>Star This Repo</h3>\t\t\t\t\t\n\nGive a \u2b50\ufe0f if this project helped you!\n\n<h3>Donate to Our Project</h3>\t\n\n<h4>Bitcoin</h4>\n1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCy\n<h4>Ethereum</h4>\n0xcD4Db18B6664A9662123D4307B074aE968535388\n<h4>Litecoin</h4>\nLdnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZ\n<h4>Doge</h4>\nDDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDh\n<h4>Tron</h4>\nTCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7\n<h4>Ripple</h4>\nrN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qq\n<h4>Binance Coin</h4>\nbnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qef\n<h4>Tether</h4>\n0xcD4Db18B6664A9662123D4307B074aE968535388\n<h4>Dash</h4>\nXd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3s\n<h4>Stellar</h4>\t\t\nGALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNL\n<h4>Zilliqa</h4>\nzil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5\n<h4>Coffeete</h4>\n<a href=\"http://www.coffeete.ir/opensource\">\n<img src=\"http://www.coffeete.ir/images/buttons/lemonchiffon.png\" style=\"width:260px;\" />\n</a>\n\n# Changelog\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)\nand this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).\n\n## [Unreleased]\n## [1.4] - 2025-07-29\n### Added\n- `ca1` speaker audio files\n- `ca2` speaker audio files\n- `au1` speaker audio files\n- `au2` speaker audio files\n- `uk1` speaker audio files\n- `uk2` speaker audio files\n### Changed\n- Build script updated\n- `README.md` modified\n- `line` function renamed to `print_line`\n- `bpm_calc` function renamed to `calculate_bpm`\n- `time_calc` function renamed to `calculate_time`\n- `time_average_calc` function renamed to `calculate_average_time`\n- `time_convert` function renamed to `convert_time`\n- `left_justify` function renamed to `justify_left`\n- `justify` function renamed to `justify_text`\n- `sound_check` function renamed to `check_sound`\n- `nafas_description_print` function renamed to `print_nafas_description`\n- `program_details_print` function renamed to `print_program_details`\n- `input_filter` function renamed to `filter_input`\n- `get_input_standard` function renamed to `get_standard_input`\n- `run` function renamed to `run_program`\n## [1.3] - 2025-06-27\n### Added\n- `--speaker` argument\n- `us2` speaker audio files\n- `in1` speaker audio files\n- `in2` speaker audio files\n- `cn1` speaker audio files\n- `cn2` speaker audio files\n### Changed\n- `README.md` modified\n## [1.2] - 2025-06-04\n### Added\n- Coherent program\n- Breaths Per Minute (BPM)\n### Changed\n- `description_print` function renamed to `nafas_description_print`\n- `program_description_print` function renamed to `program_details_print`\n-  Python typing features added to all modules\n-  `Python 3.6` support dropped\n-  Test system modified\n-  `PROGRAMS.md` updated\n## [1.1] - 2025-04-10\n### Added\n- Survey form\n- `--config` argument\n- `--skip-intro` argument\n### Changed\n- `README.md` modified\n## [1.0] - 2025-03-10\n### Added\n- Calming3 program\n- Box program\n### Changed\n- `README.md` modified\n- String templates modified\n- `PROGRAMS.md` updated\n## [0.9] - 2025-01-06\n### Added\n- Energizing program\n- `PROGRAMS.md`\n- Cautions message\n### Changed\n- `README.md` modified\n- `AUTHORS.md` updated\n- Menu updated\n- Exit bug fixed\n- Program details updated\n## [0.8] - 2024-11-04\n### Added\n- Balancing program\n- `--silent` argument\n- `clear_screen` function\n### Changed\n- GitHub actions are limited to the `dev` and `master` branches\n- Restart mode updated\n- Exit bug fixed\n- `Python 3.13` added to `test.yml`\n- Messages and templates moved to `params.py`\n## [0.7] - 2024-08-27\n### Added\n- `feature_request.yml` template\n- `config.yml` for issue template\n- `sound_check` function\n- `SECURITY.md`\n### Changed\n- Silence added to the start of sounds\n- Bug report template modified\n- `playsound` replaced with `nava`\n- `nava` added to `requirements.txt`\n- Test system modified\n- Build system modified\n- `get_input_standard` function modified\n- `Python 3.11` added to `test.yml`\n- `Python 3.12` added to `test.yml`\n- `Python 3.5` support dropped\n- CLI mode updated\n- Exit message updated\n- `README.md` modified\n## [0.6] - 2022-06-22\n### Added\n- Calming2 program\n### Changed\n- Calming program renamed to Calming1\n- Logo updated\n- `README.md` modified\n## [0.5] - 2022-05-09\n### Added\n- Decision-Making program\n- `time_calc` function\n- `time_average_calc` function\n### Changed\n- `AUTHORS.md` updated\n- License updated\n- `README.md` modified\n- `Python 3.10` added to `test.yml`\n- `time_convert` function modified\n- `get_input_standard` function modified\n- Menu updated\n- Relax program renamed to Relax1\n- 4-7-8 program renamed to Relax2\n- 7-11 program renamed to Relax3\n## [0.4] - 2021-05-12\n### Added\n- `start.wav`\n- `well_done.wav`\n- `preparing.wav`\n- `requirements-splitter.py`\n- 4-7-8 program\n- 7-11 program\n### Changed\n- Sound speaker changed\n- Test system modified\n- Menu optimized\n## [0.3] - 2021-02-09\n### Changed\n- Sounds bug in pypi fixed\n- Icon modified\n- Menu optimized\n## [0.2] - 2021-01-29\n### Added\n- `_playsound_async` function\n- `play_sound` function\n- `inhale.wav`\n- `exhale.wav`\n- `sustain.wav`\n- `retain.wav`\n- `get_sound_path` function\n- `program_description_print` function\n- `time_convert` function\n### Changed\n- Menu optimized\n- Test system modified\n- `get_program_dict` function renamed to `get_program_data`\n- `program_dict` parameter renamed to `program_data`\n- `input_dict` parameter renamed to `input_data`\n- `README.md` updated\n## [0.1] - 2020-10-30\n### Added\n- Clear Mind program\n- Relax program\n- Calming program\n- Power program\n- Anti-Stress program\n- Anti-Appetite program \n- Cigarette Replace program\n\n[Unreleased]: https://github.com/sepandhaghighi/nafas/compare/v1.4...dev\n[1.4]: https://github.com/sepandhaghighi/nafas/compare/v1.3...v1.4\n[1.3]: https://github.com/sepandhaghighi/nafas/compare/v1.2...v1.3\n[1.2]: https://github.com/sepandhaghighi/nafas/compare/v1.1...v1.2\n[1.1]: https://github.com/sepandhaghighi/nafas/compare/v1.0...v1.1\n[1.0]: https://github.com/sepandhaghighi/nafas/compare/v0.9...v1.0\n[0.9]: https://github.com/sepandhaghighi/nafas/compare/v0.8...v0.9\n[0.8]: https://github.com/sepandhaghighi/nafas/compare/v0.7...v0.8\n[0.7]: https://github.com/sepandhaghighi/nafas/compare/v0.6...v0.7\n[0.6]: https://github.com/sepandhaghighi/nafas/compare/v0.5...v0.6\n[0.5]: https://github.com/sepandhaghighi/nafas/compare/v0.4...v0.5\n[0.4]: https://github.com/sepandhaghighi/nafas/compare/v0.3...v0.4\n[0.3]: https://github.com/sepandhaghighi/nafas/compare/v0.2...v0.3\n[0.2]: https://github.com/sepandhaghighi/nafas/compare/v0.1...v0.2\n[0.1]: https://github.com/sepandhaghighi/nafas/compare/c58087a...v0.1\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Breathing gymnastics application",
    "version": "1.4",
    "project_urls": {
        "Discord": "https://discord.gg/CtZUNKJHP4",
        "Download": "https://github.com/sepandhaghighi/nafas/tarball/v1.4",
        "Homepage": "https://github.com/sepandhaghighi/nafas",
        "Source": "https://github.com/sepandhaghighi/nafas"
    },
    "split_keywords": [
        "breath",
        "breathing",
        "meditation",
        "yoga",
        "pranayama"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0ece6d1bf7e4863aab8831f5e2f34f7000a379601a3d03f9aa42c1413150caa2",
                "md5": "1c3e8949994775bab5ce29a5cbed61d3",
                "sha256": "bcbda9cb645cb0eaaaac866d0b3c6c7be755bc398aaeffab4c0debb376aa1b05"
            },
            "downloads": -1,
            "filename": "nafas-1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1c3e8949994775bab5ce29a5cbed61d3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4454043,
            "upload_time": "2025-07-29T14:25:29",
            "upload_time_iso_8601": "2025-07-29T14:25:29.764662Z",
            "url": "https://files.pythonhosted.org/packages/0e/ce/6d1bf7e4863aab8831f5e2f34f7000a379601a3d03f9aa42c1413150caa2/nafas-1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a5bca9e39d909decb6b5684c003ec9c49a68e2f587c5e484865049f395ddad30",
                "md5": "c2e21de5ac91b310c709cf43b41b89ad",
                "sha256": "a105c32c4984ac03cc1358d981c482f9ca907274c16d1ada81e8e61495a4dd6f"
            },
            "downloads": -1,
            "filename": "nafas-1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "c2e21de5ac91b310c709cf43b41b89ad",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 4436997,
            "upload_time": "2025-07-29T14:25:27",
            "upload_time_iso_8601": "2025-07-29T14:25:27.130805Z",
            "url": "https://files.pythonhosted.org/packages/a5/bc/a9e39d909decb6b5684c003ec9c49a68e2f587c5e484865049f395ddad30/nafas-1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-29 14:25:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sepandhaghighi",
    "github_project": "nafas",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [
        {
            "name": "art",
            "specs": [
                [
                    ">=",
                    "1.8"
                ]
            ]
        },
        {
            "name": "nava",
            "specs": [
                [
                    ">=",
                    "0.4"
                ]
            ]
        }
    ],
    "lcname": "nafas"
}
        
Elapsed time: 1.61513s