calorie-counter-0.1.3
توضیحات
This project represents simple web app to calculate calories based on given food type.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | calorie-counter-0.1.3 |
| نام | calorie-counter |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Volodymyr Yahello |
| ایمیل نویسنده | vyahello@gmail.com |
| آدرس صفحه اصلی | https://github.com/vyahello/calorie-counter |
| آدرس اینترنتی | https://pypi.org/project/calorie-counter/ |
| مجوز | - |
[](https://github.com/psf/black)
[](http://mypy-lang.org/)
[](https://travis-ci.org/vyahello/calorie-counter)
[](https://coveralls.io/github/vyahello/calorie-counter?branch=master)
[](https://github.com/vyahello/calorie-counter/network/members)
[](https://github.com/vyahello/calorie-counter/stargazers)
[](https://github.com/vyahello/calorie-counter/issues)
[](https://GitHub.com/vyahello/calorie-counter/graphs/watchers/)
[](https://GitHub.com/vyahello/calorie-counter/graphs/contributors/)
[](LICENSE.md)
[](https://pypi.python.org/pypi/calorie-counter/)
[](https://pypi.python.org/pypi/calorie-counter/)
# Calorie counter
> This project represents simple web app to calculate calories based on given food type.
>
> Please check https://food-calories-counter.herokuapp.com get familiar with application itself.
## Tools
- front-end
- html5
- css3
- javascript (vanilla)
- back-end
- python 3.6 | 3.7 | 3.8
- [flask](http://flask.palletsprojects.com)
- code analysis
- [pytest](https://pypi.org/project/pytest/)
- [mypy](http://mypy.readthedocs.io/en/latest)
- [black](https://black.readthedocs.io/en/stable/)
## Usage
### PYPI
Please run following script to obtain latest package from PYPI:
```bash
➜ pip install calorie-counter
```
Then please execute instructions below to launch game from your environment:
```python
from counter import Bind, easyrun
easyrun(bind=Bind("0.0.0.0:5003"), debug=True)
Running on https://0.0.0.0:5003 (CTRL + C to quit)
...
```
Then please open [localhost:5003/](http://localhost:5003/) endpoint.
### Source code
To be able to run source code please execute command below:
```bash
➜ python -m counter --bind 0.0.0.0:5003 --debug
Running on https://0.0.0.0:5003 (CTRL + C to quit)
...
```
Also you can use **flask** built-in runner based on [.flaskenv](.flaskenv) config file:
```bash
➜ flask run
Serving Flask app "counter.py"
...
```
For both cases, then please open [localhost:5003/](http://localhost:5003/) endpoint.
## Development notes
### CI
Project has Travis CI integration using [.travis.yml](.travis.yml) file thus code analysis (`black`, `mypy`) and unittests (`pytest`) will be run automatically
after every made change to the repository.
To be able to run code analysis, please execute command below:
```bash
➜ ./analyse-code.sh
```
### Release notes
* 0.1.3
* Use click CLI tool
* 0.1.2
* Add metainfo into home page
* 0.1.0
* Introduce PYPI package
### Meta
Author – Volodymyr Yahello
Distributed under the `MIT` license. See [LICENSE](LICENSE.md) for more information.
You can reach out me at:
* [vyahello@gmail.com](vyahello@gmail.com)
* [https://github.com/vyahello](https://github.com/vyahello)
* [https://www.linkedin.com/in/volodymyr-yahello-821746127](https://www.linkedin.com/in/volodymyr-yahello-821746127)
### Contributing
1. clone the repository
2. configure Git for the first time after cloning with your `name` and `email`
3. `pip install -r requirements.txt` to install all project dependencies
4. `pip install -r requirements-dev.txt` to install all dev project dependencies
نیازمندی
| مقدار | نام |
|---|---|
| ==1.1.1 | flask |
| ==0.10.3 | python-dotenv |
| ==20.0.0 | gunicorn |
| ==42.0.2 | setuptools |
| ==0.33.6 | wheel |
| ==3.1.1 | twine |
| ==7.0.0 | click |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl calorie-counter-0.1.3:
pip install calorie-counter-0.1.3.whl
نصب پکیج tar.gz calorie-counter-0.1.3:
pip install calorie-counter-0.1.3.tar.gz