Skip to main content

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.

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

Metadata

Release files for calorie-counter 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for calorie-counter 0.1.3
File Size Uploaded Provenance Actions
calorie-counter-0.1.3.tar.gz 153.0 kB Without provenance Details for calorie-counter-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for calorie-counter 0.1.3
File Interpreter ABI Platform Actions
calorie_counter-0.1.3-py3-none-any.whl Python 3 none any Details for calorie_counter-0.1.3-py3-none-any.whl

Total release size: 312.0 kB

Release files / calorie-counter-0.1.3.tar.gz

Download URL calorie-counter-0.1.3.tar.gz
Size 153.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8c4d9e37421f8342e3d041ce4be57484beac5ccb4b20589570991e980a9cadd5
BLAKE2b-256 checksum
How to use checksums
890a42dae353638453240ef42125b1fbed8ff2e07c72037b733a46e08a9ee1da
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / calorie_counter-0.1.3-py3-none-any.whl

Download URL calorie_counter-0.1.3-py3-none-any.whl
Size 159.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
becd3d4afed427f448ab7a3c3dcd4b209959ae84f4b9c34ffc2dfc8be499967a
BLAKE2b-256 checksum
How to use checksums
8418872a9d2f056e3dfc9410c7343740c812700ed15aaa693317fbf4d6245ae3
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for calorie-counter 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page