bloodglucose

An app to view, calculate and predict blood glucose

https://github.com/rachelalcraft/bloodglucose

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.0%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

An app to view, calculate and predict blood glucose

Basic Info
  • Host: GitHub
  • Owner: RachelAlcraft
  • License: gpl-3.0
  • Language: Python
  • Default Branch: main
  • Size: 628 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 3
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.md

BloodGlucose

Hosted at: streamlit:app-lib-py

This template is a suggestion of good practice for a scientific python library that includes continuous integration and conntinuous development and continuous documentation. The application is demonstrated though streamlist which is deployed with continuous deployment, and also made a available via pypi as a python library with pip install

The single github repo contains 2 seperate software artefacts, a python library that can be installed and used by others, and a streamlit web application that demonstreates the library and provides a simple usage. Additionally there is a docker file which allows the upload of a docker image to dockerhub for a middle use of locally hosted web application.

To use this library yourself, use the "Template" button as described below.

1. Create a template for yourself

The template can be downloaded from github at app-lib-py. Once using the template and giving your own name and repo, you will need to make some changes to the files.

2. Change the default name

Primarily do this by searching on app-lib-py and applibpy, don't forget there is a directory to change too. Examples of changes are: - in the yml files (/.github/workflows/) in pydoctor line 24 - docker yml line 26 - pypi's publish.yml line 43

2. Setup development environments

See dev environments

3. Setup precommit hooks

https://pre-commit.com/ Run it to check pre-commit run --all-files ruff check --target-version=py311 --line-length 88 . --fix black ./ --check --line-length 88 --diff

4. PyDoctor automatic documentaion

The documentation is generated with the workflow pydoctor.yml. The branch gh-pages will be created after your first commit to main, and will fail the first time.

The branch gh-pages will be created after your first commit to main, and will fail the first time, so re-run the action from github actions on your github after you have done your first commit.

The pydoctor command does not need to be run locally (installing if you want to, and add the created files to .gitignore: pydoctor --make-html --html-output=./docs/api lib/src/app_lib_py --theme readthedocs Permissions need to be added so that the action has the appropriate permissions to be run. In repo/settings/Actions at the bottom give Read and Write permissions to Workflow and Allow github to create and approve pull requests.

Then re-run the failed action. This should create the branch gh-actions.

Now in order to activate it you must go to your github settings/pages and choose deply from a branch, and then gh-pages and root. An action will be triggered automatically to build the pages, with the link at: https://rachelalcraft.github.io/your-repo/

For pydoctor, you need the setting Actions/General/Allow GitHib Actions to create and approve pull requests checked. Turn on gh-pages in the settings to be published from the branch gh-pages.

5. Test driven development, design the functionality

Write the tests in science, speed and utility before you write the functional implementation.

7. Distribute and deploy

The github actions automate the distribtion to pypi, test running, and docker. If you choose to distribute on streamlit this will be automated by checkin to main.

7b. Streamlit

Streamlit will be automatically deployed when the main branch is updated after the link with streamlit is made. 1. Create an account with streamlit io 2. Go to the deploy 3. Choose your repo: RachelAlcraft/app-lib-py 4. Choose Branch: Main 5. Choose entry file: app/home.py 6. Amend the domain to your liking app-lib-py 7. Press deploy

Owner

  • Name: Rachel A
  • Login: RachelAlcraft
  • Kind: user
  • Location: London

Citation (citation.cff)

cff-version: 0.1.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Alcraft"
  given-names: "Rachel"
  orcid: "https://orcid.org/0000-0003-2674-6321"
title: "BLOODGLUCOSE: Aa application for bloodglucose management
version: 1.0.0
doi: xxx
date-released: 01-May-2024
url: "https://github.com/RachelAlcraft/bloodglucose"

GitHub Events

Total
Last Year

Dependencies

.github/workflows/lint_style.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/pydoctor.yml actions
  • actions/checkout master composite
  • actions/setup-python v2 composite
  • peaceiris/actions-gh-pages v3 composite
.github/workflows/pytest_app.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
pyproject.toml pypi
requirements.txt pypi
  • black *
  • numpy *
  • plotly *
  • pre-commit *
  • pytest *
  • ruff *
  • streamlit *
  • streamlit_extras *
  • urllib3 ==1.26.6