Skip to main content

This project represents simple web app to calculate calories based on given food type.

Project description

Code style: black Checked with mypy

Build Status Coverage Status Forks Stars Issues GitHub watchers GitHub contributors License

PyPI version shields.io PyPI pyversions

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.

Screenshot

Tools

  • front-end
    • html5
    • css3
    • javascript (vanilla)
  • back-end
    • python 3.6 | 3.7 | 3.8
    • flask
  • code analysis

Usage

PYPI

Please run following script to obtain latest package from PYPI:

 pip install calorie-counter

Then please execute instructions below to launch game from your environment:

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/ endpoint.

Source code

To be able to run source code please execute command below:

 python -m counter run --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 config file:

 flask run
Serving Flask app "counter/__main__.py"
...

For both cases, then please open localhost:5003/ endpoint.

Development notes

CI

Project has Travis CI integration using .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:

 ./analyse-code.sh

Release notes

  • 0.1.1
    • Add metainfo into home page
  • 0.1.0
    • Introduce PYPI package

Meta

Author – Volodymyr Yahello

Distributed under the MIT license. See LICENSE for more information.

You can reach out me at:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

calorie-counter-0.1.1.tar.gz (153.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

calorie_counter-0.1.1-py3-none-any.whl (159.3 kB view details)

Uploaded Python 3

File details

Details for the file calorie-counter-0.1.1.tar.gz.

File metadata

  • Download URL: calorie-counter-0.1.1.tar.gz
  • Upload date:
  • Size: 153.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

File hashes

Hashes for calorie-counter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 62ba884c350897d9583f9f9549441df94a4beb3d486355eae8c5413053c4b582
MD5 94e2bcf408a2c4c03fd496c804bf2027
BLAKE2b-256 016c8e85379bf172638343ac3f775921e072a0918faba2c3e389d8871d1a7321

See more details on using hashes here.

File details

Details for the file calorie_counter-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: calorie_counter-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 159.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

File hashes

Hashes for calorie_counter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c8884f86195fbb3750b7131351c963235f0e76bb1522958f51e3752ab005699
MD5 ddc454c059c7f0f0bef1b5d4ac195eec
BLAKE2b-256 2934da8731dc954c13efeca6b359e3e027f297c4f4de320a7d56e2fcba224c58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page