Skip to content

Commit 89d1937

Browse files
committed
initial commit for v2.1
1 parent ba5b78b commit 89d1937

107 files changed

Lines changed: 4640 additions & 2736 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
__pycache__/
33
*.py[cod]
44
*$py.class
5-
*.c
65

76
# C extensions
87
*.so
98

109
# Distribution / packaging
1110
.Python
12-
env/
1311
build/
1412
develop-eggs/
1513
dist/
@@ -21,9 +19,11 @@ lib64/
2119
parts/
2220
sdist/
2321
var/
22+
wheels/
2423
*.egg-info/
2524
.installed.cfg
2625
*.egg
26+
MANIFEST
2727

2828
# PyInstaller
2929
# Usually these files are written by a python script from a template
@@ -43,8 +43,9 @@ htmlcov/
4343
.cache
4444
nosetests.xml
4545
coverage.xml
46-
*,cover
46+
*.cover
4747
.hypothesis/
48+
.pytest_cache/
4849

4950
# Translations
5051
*.mo
@@ -53,6 +54,7 @@ coverage.xml
5354
# Django stuff:
5455
*.log
5556
local_settings.py
57+
db.sqlite3
5658

5759
# Flask stuff:
5860
instance/
@@ -76,16 +78,27 @@ target/
7678
# celery beat schedule file
7779
celerybeat-schedule
7880

79-
# dotenv
80-
.env
81+
# SageMath parsed files
82+
*.sage.py
8183

82-
# virtualenv
83-
.venv/
84+
# Environments
85+
.env
86+
.venv
87+
env/
8488
venv/
8589
ENV/
90+
env.bak/
91+
venv.bak/
8692

8793
# Spyder project settings
8894
.spyderproject
95+
.spyproject
8996

9097
# Rope project settings
9198
.ropeproject
99+
100+
# mkdocs documentation
101+
/site
102+
103+
# mypy
104+
.mypy_cache/

README.md

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,18 @@
1-
# PyFit
1+
# PyExPhys
22

3-
PyFit is a [Cython](http://cython.readthedocs.io/en/latest/index.html) library of exercise physiology and healthcare equations for transforming basic health data into insights at scale. PyFit compiles bodybuilding competition formulas, aerobic performance models, and body composition equations with a holistic approach to health, giving developers back their time and the freedom to develop the application they envision.
4-
5-
## Resources
6-
- [Website](https://dpfens.github.io/PyFit)
7-
- [Home](https://github.com/dpfens/PyFit/wiki)
8-
- [Enums](https://github.com/dpfens/PyFit/wiki/Enums)
9-
- [Balance](https://github.com/dpfens/PyFit/wiki/Balance)
10-
- [Cardio](https://github.com/dpfens/PyFit/wiki/Cardio)
11-
- [Composition](https://github.com/dpfens/PyFit/wiki/Composition)
12-
- [Convert](https://github.com/dpfens/PyFit/wiki/Convert)
13-
- [METs](https://github.com/dpfens/PyFit/wiki/Mets)
14-
- [Model](https://github.com/dpfens/PyFit/wiki/Model)
15-
- [Sport](https://github.com/dpfens/PyFit/wiki/Sport)
16-
- [Strength](https://github.com/dpfens/PyFit/wiki/Strength)
17-
- [Test Protocols](https://github.com/dpfens/PyFit/wiki/Test Protocols)
18-
- [API Reference](https://github.com/dpfens/PyFit/wiki/API)
19-
- [Equations](https://github.com/dpfens/PyFit/wiki/Equations)
3+
PyFit is a Python library of exercise physiology and healthcare equations for transforming basic health data into insights at scale. PyFit is a collection of bodybuilding competition formulas, aerobic performance and weightlifting performance models, and body composition equations.
204

215
## Installing
22-
Download the [latest release](https://github.com/dpfens/PyFit/archive/v2.0.zip). Install the library using the `setup.py` script:
23-
```
24-
python setup.py install
25-
```
26-
27-
To install locally, use the `--inplace` switch when installing:
6+
Download the [latest release](https://github.com/dpfens/PyExPhys/archive/2.1.zip). Install the library using the `setup.py` script:
287
```
29-
python setup.py install --inplace
8+
pip install pyexphys
309
```
3110

3211
## Tests
33-
To test the calculations of PyFit, run the python distutils test:
12+
To test the calculations of PyExPhys, run the `distutils` test:
3413
```
3514
python setup.py test
3615
```
3716

3817
## Support
39-
Please raise potential bugs on [Github](https://github.com/dpfens/PyFit/issues).
18+
Please raise potential bugs on [Github](https://github.com/dpfens/PyExPhys/issues).

README.rst

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
A sample Python project
2-
=======================
1+
PyExPhys
2+
========
33

4-
PyFit is a [Cython](http://cython.readthedocs.io/en/latest/index.html) library
5-
of exercise physiology and healthcare equations for transforming basic health
6-
data into insights at scale. PyFit compiles bodybuilding competition formulas,
7-
aerobic performance models, and body composition equations with a holistic
8-
approach to health, giving developers back their time and the freedom to develop
9-
the application they envision.
10-
11-
`The source for this project is available here
12-
<https://github.com/dpfens/PyFit>` as well as the wiki <https://github.com/dpfens/PyFit/wiki>
13-
14-
----
4+
PyExPhys is a Python library of exercise physiology and healthcare equations for transforming basic health data into insights at scale. PyExPhys compiles bodybuilding competition formulas, aerobic performance models, and body composition equations.

docs/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SOURCEDIR = .
8+
BUILDDIR = _build
9+
10+
# Put it first so that "make" without argument is like "make help".
11+
help:
12+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13+
14+
.PHONY: help Makefile
15+
16+
# Catch-all target: route all unknown targets to Sphinx using the new
17+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
18+
%: Makefile
19+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/conf.py

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Configuration file for the Sphinx documentation builder.
4+
#
5+
# This file does only contain a selection of the most common options. For a
6+
# full list see the documentation:
7+
# http://www.sphinx-doc.org/en/master/config
8+
9+
# -- Path setup --------------------------------------------------------------
10+
11+
# If extensions (or modules to document with autodoc) are in another directory,
12+
# add these directories to sys.path here. If the directory is relative to the
13+
# documentation root, use os.path.abspath to make it absolute, like shown here.
14+
#
15+
import os
16+
import sys
17+
sys.path.insert(0, os.path.abspath('../'))
18+
19+
20+
# -- Project information -----------------------------------------------------
21+
22+
project = u'PyExPhys'
23+
copyright = u'2018, Doug Fenstermacher'
24+
author = u'Doug Fenstermacher'
25+
26+
# The short X.Y version
27+
version = u''
28+
# The full version, including alpha/beta/rc tags
29+
release = u''
30+
31+
32+
# -- General configuration ---------------------------------------------------
33+
34+
# If your documentation needs a minimal Sphinx version, state it here.
35+
#
36+
# needs_sphinx = '1.0'
37+
38+
# Add any Sphinx extension module names here, as strings. They can be
39+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
40+
# ones.
41+
extensions = [
42+
'sphinx.ext.viewcode',
43+
'sphinx.ext.autodoc',
44+
'sphinx.ext.intersphinx',
45+
'sphinx.ext.imgmath',
46+
'sphinx.ext.githubpages',
47+
'sphinxcontrib.napoleon'
48+
]
49+
50+
# Include __init__ method in documentation
51+
napoleon_include_init_with_doc = True
52+
53+
54+
# Add any paths that contain templates here, relative to this directory.
55+
templates_path = ['_templates']
56+
57+
# The suffix(es) of source filenames.
58+
# You can specify multiple suffix as a list of string:
59+
#
60+
# source_suffix = ['.rst', '.md']
61+
source_suffix = '.rst'
62+
63+
# The master toctree document.
64+
master_doc = 'index'
65+
66+
# The language for content autogenerated by Sphinx. Refer to documentation
67+
# for a list of supported languages.
68+
#
69+
# This is also used if you do content translation via gettext catalogs.
70+
# Usually you set "language" from the command line for these cases.
71+
language = None
72+
73+
# List of patterns, relative to source directory, that match files and
74+
# directories to ignore when looking for source files.
75+
# This pattern also affects html_static_path and html_extra_path.
76+
exclude_patterns = [u'_build', 'Thumbs.db', '.DS_Store']
77+
78+
# The name of the Pygments (syntax highlighting) style to use.
79+
pygments_style = None
80+
81+
82+
# -- Options for HTML output -------------------------------------------------
83+
84+
# The theme to use for HTML and HTML Help pages. See the documentation for
85+
# a list of builtin themes.
86+
#
87+
html_theme = 'alabaster'
88+
89+
# Theme options are theme-specific and customize the look and feel of a theme
90+
# further. For a list of options available for each theme, see the
91+
# documentation.
92+
#
93+
# html_theme_options = {}
94+
95+
# Add any paths that contain custom static files (such as style sheets) here,
96+
# relative to this directory. They are copied after the builtin static files,
97+
# so a file named "default.css" will overwrite the builtin "default.css".
98+
html_static_path = ['_static']
99+
100+
# Custom sidebar templates, must be a dictionary that maps document names
101+
# to template names.
102+
#
103+
# The default sidebars (for documents that don't match any pattern) are
104+
# defined by theme itself. Builtin themes are using these templates by
105+
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
106+
# 'searchbox.html']``.
107+
#
108+
# html_sidebars = {}
109+
110+
111+
# -- Options for HTMLHelp output ---------------------------------------------
112+
113+
# Output file base name for HTML help builder.
114+
htmlhelp_basename = 'PyExPhysdoc'
115+
116+
117+
# -- Options for LaTeX output ------------------------------------------------
118+
119+
latex_elements = {
120+
# The paper size ('letterpaper' or 'a4paper').
121+
#
122+
# 'papersize': 'letterpaper',
123+
124+
# The font size ('10pt', '11pt' or '12pt').
125+
#
126+
# 'pointsize': '10pt',
127+
128+
# Additional stuff for the LaTeX preamble.
129+
#
130+
# 'preamble': '',
131+
132+
# Latex figure (float) alignment
133+
#
134+
# 'figure_align': 'htbp',
135+
}
136+
137+
# Grouping the document tree into LaTeX files. List of tuples
138+
# (source start file, target name, title,
139+
# author, documentclass [howto, manual, or own class]).
140+
latex_documents = [
141+
(master_doc, 'PyExPhys.tex', u'PyExPhys Documentation',
142+
u'Doug Fenstermacher', 'manual'),
143+
]
144+
145+
146+
# -- Options for manual page output ------------------------------------------
147+
148+
# One entry per manual page. List of tuples
149+
# (source start file, name, description, authors, manual section).
150+
man_pages = [
151+
(master_doc, 'pyexphys', u'PyExPhys Documentation',
152+
[author], 1)
153+
]
154+
155+
156+
# -- Options for Texinfo output ----------------------------------------------
157+
158+
# Grouping the document tree into Texinfo files. List of tuples
159+
# (source start file, target name, title, author,
160+
# dir menu entry, description, category)
161+
texinfo_documents = [
162+
(master_doc, 'PyExPhys', u'PyExPhys Documentation',
163+
author, 'PyExPhys', 'One line description of project.',
164+
'Miscellaneous'),
165+
]
166+
167+
168+
# -- Options for Epub output -------------------------------------------------
169+
170+
# Bibliographic Dublin Core info.
171+
epub_title = project
172+
173+
# The unique identifier of the text. This can be a ISBN number
174+
# or the project homepage.
175+
#
176+
# epub_identifier = ''
177+
178+
# A unique identification for the text.
179+
#
180+
# epub_uid = ''
181+
182+
# A list of files that should not be packed into the epub file.
183+
epub_exclude_files = ['search.html']
184+
185+
186+
# -- Extension configuration -------------------------------------------------
187+
188+
# -- Options for intersphinx extension ---------------------------------------
189+
190+
# Example configuration for intersphinx: refer to the Python standard library.
191+
intersphinx_mapping = {'https://docs.python.org/': None}

docs/index.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. PyFit documentation master file, created by
2+
sphinx-quickstart on Sun Nov 18 13:34:58 2018.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Welcome to PyExPhys's documentation!
7+
=================================
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: Table of Contents:
12+
13+
quickstart
14+
pyexphys
15+
16+
17+
Indices and tables
18+
==================
19+
20+
* :ref:`genindex`
21+
* :ref:`modindex`
22+
* :ref:`search`

0 commit comments

Comments
 (0)