streprogen


Namestreprogen JSON
Version 4.0.0 PyPI version JSON
download
home_pagehttps://github.com/tommyod/streprogen
SummaryThe Python strength program generator.
upload_time2023-01-29 12:38:18
maintainer
docs_urlNone
authorTommy Odland
requires_python>=3.6
licenseGPLv3
keywords strength training program health fitness generator weightlifting powerlifting exercise
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Streprogen - the Python strength program generator.
===================================================
.. image:: https://badge.fury.io/py/streprogen.svg
   :target: https://pypi.org/project/streprogen/
   :alt: PyPi
   

.. image:: https://readthedocs.org/projects/streprogen/badge/?version=latest
   :target: http://streprogen.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

 
.. image:: https://github.com/tommyod/streprogen/workflows/Python%20CI/badge.svg?branch=master	
    :alt: Test Status
   

Install locally using ``pip install streprogen``, or run live notebooks online.

Run code in your browser
------------------------

If you don't have Python installed, you can run the code in your browser.

Learn how to make strength training programs
********************************************


* Run code live: `Essential Features <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Essential%20features.ipynb>`_
* Run code live: `Intermediate Features <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Intermediate%20features.ipynb>`_
* Run code live: `Advanced Features <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Advanced%20features.ipynb>`_
* Run code live: `Custom optimization <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Custom%20optimization.ipynb>`_

Example strength training program library
*****************************************
* Run code live: `Example - Beginner 5x5 <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Beginner%205x5.ipynb>`_
* Run code live: `Example - Beginner 5x5 modified <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Beginner%205x5%20modified.ipynb>`_
* Run code live: `Example - 3 day full body <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/3%20day%20full%20body.ipynb>`_
* Run code live: `Example - 3 day split with periodization <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/3%20day%20split.ipynb>`_
* Run code live: `Example - Block periodization <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Block%20periodization.ipynb>`_

Check out the `example PDF output <https://github.com/tommyod/streprogen/blob/master/docs/examples/3DaySplitWithPeriodization.pdf>`_.

Multi-day meal planning
***********************

* Run code live: `Meal Planning <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Meal%20planning.ipynb>`_


**Instructions for live code:**
Click "Runtime", then "Run all".
To download a saved file, click on the arrow on the top left, left click the file and "Download".
A downloaded ``.html`` file can be printed from your local browser.

Project summary
---------------

Streprogen (short for **stre**\ ngth **pro**\ gram **gen**\ erator) is a
Python_ 3.6+
package which allows the user to easily create dynamic, flexible
strength training programs. The main features are:

* **Sensible defaults**\ : We aim for sensible default values for all input parameters,
  giving the novice strength athlete some guidance on parameter selection.
  The software will raise warnings for unreasonable input parameters, but will still run.
* **High level of customization**\ : Every important parameter can be changed by the user.
  It is possible to create long-term training programs with several layers of periodization
  for advanced planning.
* **Simple interface**\ : The software should be usable even by people with little Python knowledge.
* **Pretty output**\ : Training programs may be saved as ``.txt``, ``.html`` or ``.tex`` files.
  Print it and bring it to the gym.
  
  
.. image:: https://raw.githubusercontent.com/tommyod/streprogen/master/docs/examples/streprogen_overview.png


Installation
------------

Here's how to install the software on your local machine.

(1) Download Anaconda_ distribution of Python_ 3.x from the Anaconda_ Website.
(2) Install ``streprogen`` from PyPI_.

    (a) **Windows**: Open the Anaconda prompt from the start menu and run
        ``pip install streprogen``.
    (b) **Linux**: Open the terminal and run
        ``pip install streprogen``.

(3) Open a Python Editor (such as Spyder, which comes with Anaconda_).
(4) Copy the example below and run it to get started.


.. _Python: http://www.python.org/
.. _Anaconda: https://www.continuum.io/downloads
.. _PyPI: https://pypi.org/project/streprogen/


Sample code
-----------------

.. code-block:: python

    from streprogen import Program
    
    # Create an 8-week program, rounding every exercise to nearest unit og 5kg
    program = Program("My first program!", duration=8, units="kg", round_to=5)
    
    with program.Day("Day A"):
        program.DynamicExercise("Bench press", start_weight=80, min_reps=3, max_reps=8)
        program.DynamicExercise("Squats", start_weight=100, min_reps=3, max_reps=8)
        
    with program.Day("Day B"):
        program.DynamicExercise("Deadlifts", start_weight=100, min_reps=2, max_reps=7)
        program.StaticExercise("Curls", "3 x 10 @ 18kg")

    # Render the program, then print it
    program.render()
    print(program)


.. code-block::

    ----------------------------------------------------------------
    Program: My first program!
    
    Program parameters
      duration: 8
      reps_per_exercise: 25
      intensity: 83
      units: kg
    ----------------------------------------------------------------
    Exercise information
      Day A
       Bench press    80kg -> 89.6kg 
        reps: [3, 8]   weekly inc.: 1.5%
       Squats        100kg -> 112kg  
        reps: [3, 8]   weekly inc.: 1.5%
      Day B
       Deadlifts     100kg -> 112kg  
        reps: [2, 7]   weekly inc.: 1.5%
       Curls         3 x 10 @ 18kg
    ----------------------------------------------------------------
    Program
     Week 1
      Day A
       Bench press   8 x 60kg   7 x 65kg   7 x 65kg   7 x 65kg   
       Squats        8 x 75kg   7 x 80kg   7 x 80kg   7 x 80kg   
    
      Day B
       Deadlifts     7 x 80kg   7 x 80kg   6 x 80kg   6 x 80kg   5 x 85kg   
       Curls         3 x 10 @ 18kg
    
     Week 2
      Day A
       Bench press   7 x 65kg   7 x 65kg   6 x 65kg   5 x 70kg   5 x 70kg   
       Squats        7 x 80kg   7 x 80kg   6 x 85kg   5 x 85kg   5 x 85kg   
    
      Day B
       Deadlifts     7 x 80kg   7 x 80kg   6 x 85kg   5 x 85kg   5 x 85kg   
       Curls         3 x 10 @ 18kg
    
     Week 3
      ...
       ...  

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/tommyod/streprogen",
    "name": "streprogen",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "strength training program health fitness generator weightlifting powerlifting exercise",
    "author": "Tommy Odland",
    "author_email": "tommy.odland@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e8/fb/16894903d8900b19b96890cd501d10ff7a467071b7ca63514f9d252eb939/streprogen-4.0.0.tar.gz",
    "platform": null,
    "description": "Streprogen - the Python strength program generator.\n===================================================\n.. image:: https://badge.fury.io/py/streprogen.svg\n   :target: https://pypi.org/project/streprogen/\n   :alt: PyPi\n   \n\n.. image:: https://readthedocs.org/projects/streprogen/badge/?version=latest\n   :target: http://streprogen.readthedocs.io/en/latest/?badge=latest\n   :alt: Documentation Status\n\n \n.. image:: https://github.com/tommyod/streprogen/workflows/Python%20CI/badge.svg?branch=master\t\n    :alt: Test Status\n   \n\nInstall locally using ``pip install streprogen``, or run live notebooks online.\n\nRun code in your browser\n------------------------\n\nIf you don't have Python installed, you can run the code in your browser.\n\nLearn how to make strength training programs\n********************************************\n\n\n* Run code live: `Essential Features <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Essential%20features.ipynb>`_\n* Run code live: `Intermediate Features <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Intermediate%20features.ipynb>`_\n* Run code live: `Advanced Features <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Advanced%20features.ipynb>`_\n* Run code live: `Custom optimization <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Custom%20optimization.ipynb>`_\n\nExample strength training program library\n*****************************************\n* Run code live: `Example - Beginner 5x5 <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Beginner%205x5.ipynb>`_\n* Run code live: `Example - Beginner 5x5 modified <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Beginner%205x5%20modified.ipynb>`_\n* Run code live: `Example - 3 day full body <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/3%20day%20full%20body.ipynb>`_\n* Run code live: `Example - 3 day split with periodization <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/3%20day%20split.ipynb>`_\n* Run code live: `Example - Block periodization <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Block%20periodization.ipynb>`_\n\nCheck out the `example PDF output <https://github.com/tommyod/streprogen/blob/master/docs/examples/3DaySplitWithPeriodization.pdf>`_.\n\nMulti-day meal planning\n***********************\n\n* Run code live: `Meal Planning <https://colab.research.google.com/github/tommyod/streprogen/blob/master/docs/examples/Meal%20planning.ipynb>`_\n\n\n**Instructions for live code:**\nClick \"Runtime\", then \"Run all\".\nTo download a saved file, click on the arrow on the top left, left click the file and \"Download\".\nA downloaded ``.html`` file can be printed from your local browser.\n\nProject summary\n---------------\n\nStreprogen (short for **stre**\\ ngth **pro**\\ gram **gen**\\ erator) is a\nPython_ 3.6+\npackage which allows the user to easily create dynamic, flexible\nstrength training programs. The main features are:\n\n* **Sensible defaults**\\ : We aim for sensible default values for all input parameters,\n  giving the novice strength athlete some guidance on parameter selection.\n  The software will raise warnings for unreasonable input parameters, but will still run.\n* **High level of customization**\\ : Every important parameter can be changed by the user.\n  It is possible to create long-term training programs with several layers of periodization\n  for advanced planning.\n* **Simple interface**\\ : The software should be usable even by people with little Python knowledge.\n* **Pretty output**\\ : Training programs may be saved as ``.txt``, ``.html`` or ``.tex`` files.\n  Print it and bring it to the gym.\n  \n  \n.. image:: https://raw.githubusercontent.com/tommyod/streprogen/master/docs/examples/streprogen_overview.png\n\n\nInstallation\n------------\n\nHere's how to install the software on your local machine.\n\n(1) Download Anaconda_ distribution of Python_ 3.x from the Anaconda_ Website.\n(2) Install ``streprogen`` from PyPI_.\n\n    (a) **Windows**: Open the Anaconda prompt from the start menu and run\n        ``pip install streprogen``.\n    (b) **Linux**: Open the terminal and run\n        ``pip install streprogen``.\n\n(3) Open a Python Editor (such as Spyder, which comes with Anaconda_).\n(4) Copy the example below and run it to get started.\n\n\n.. _Python: http://www.python.org/\n.. _Anaconda: https://www.continuum.io/downloads\n.. _PyPI: https://pypi.org/project/streprogen/\n\n\nSample code\n-----------------\n\n.. code-block:: python\n\n    from streprogen import Program\n    \n    # Create an 8-week program, rounding every exercise to nearest unit og 5kg\n    program = Program(\"My first program!\", duration=8, units=\"kg\", round_to=5)\n    \n    with program.Day(\"Day A\"):\n        program.DynamicExercise(\"Bench press\", start_weight=80, min_reps=3, max_reps=8)\n        program.DynamicExercise(\"Squats\", start_weight=100, min_reps=3, max_reps=8)\n        \n    with program.Day(\"Day B\"):\n        program.DynamicExercise(\"Deadlifts\", start_weight=100, min_reps=2, max_reps=7)\n        program.StaticExercise(\"Curls\", \"3 x 10 @ 18kg\")\n\n    # Render the program, then print it\n    program.render()\n    print(program)\n\n\n.. code-block::\n\n    ----------------------------------------------------------------\n    Program: My first program!\n    \n    Program parameters\n      duration: 8\n      reps_per_exercise: 25\n      intensity: 83\n      units: kg\n    ----------------------------------------------------------------\n    Exercise information\n      Day A\n       Bench press    80kg -> 89.6kg \n        reps: [3, 8]   weekly inc.: 1.5%\n       Squats        100kg -> 112kg  \n        reps: [3, 8]   weekly inc.: 1.5%\n      Day B\n       Deadlifts     100kg -> 112kg  \n        reps: [2, 7]   weekly inc.: 1.5%\n       Curls         3 x 10 @ 18kg\n    ----------------------------------------------------------------\n    Program\n     Week 1\n      Day A\n       Bench press   8 x 60kg   7 x 65kg   7 x 65kg   7 x 65kg   \n       Squats        8 x 75kg   7 x 80kg   7 x 80kg   7 x 80kg   \n    \n      Day B\n       Deadlifts     7 x 80kg   7 x 80kg   6 x 80kg   6 x 80kg   5 x 85kg   \n       Curls         3 x 10 @ 18kg\n    \n     Week 2\n      Day A\n       Bench press   7 x 65kg   7 x 65kg   6 x 65kg   5 x 70kg   5 x 70kg   \n       Squats        7 x 80kg   7 x 80kg   6 x 85kg   5 x 85kg   5 x 85kg   \n    \n      Day B\n       Deadlifts     7 x 80kg   7 x 80kg   6 x 85kg   5 x 85kg   5 x 85kg   \n       Curls         3 x 10 @ 18kg\n    \n     Week 3\n      ...\n       ...  \n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "The Python strength program generator.",
    "version": "4.0.0",
    "split_keywords": [
        "strength",
        "training",
        "program",
        "health",
        "fitness",
        "generator",
        "weightlifting",
        "powerlifting",
        "exercise"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f719d34c777950e31c65c5be62907603b7a1548e4f15fbbc7ad62fae20945403",
                "md5": "1ae98d9d82b80cf60c296ae215500011",
                "sha256": "1bbea8848dbb2309a0bdf21d54b6aad0812b99b7996c2c94cb9d9d22f44a398c"
            },
            "downloads": -1,
            "filename": "streprogen-4.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1ae98d9d82b80cf60c296ae215500011",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 51221,
            "upload_time": "2023-01-29T12:38:17",
            "upload_time_iso_8601": "2023-01-29T12:38:17.332467Z",
            "url": "https://files.pythonhosted.org/packages/f7/19/d34c777950e31c65c5be62907603b7a1548e4f15fbbc7ad62fae20945403/streprogen-4.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e8fb16894903d8900b19b96890cd501d10ff7a467071b7ca63514f9d252eb939",
                "md5": "3f9b966a663b2c43d72741d86ce3bafe",
                "sha256": "eeb88432947f312f51b6b99a727a6d1766d1b36ed5a59677c320ac676b46eef1"
            },
            "downloads": -1,
            "filename": "streprogen-4.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3f9b966a663b2c43d72741d86ce3bafe",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 49246,
            "upload_time": "2023-01-29T12:38:18",
            "upload_time_iso_8601": "2023-01-29T12:38:18.857910Z",
            "url": "https://files.pythonhosted.org/packages/e8/fb/16894903d8900b19b96890cd501d10ff7a467071b7ca63514f9d252eb939/streprogen-4.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-29 12:38:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "tommyod",
    "github_project": "streprogen",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "streprogen"
}
        
Elapsed time: 0.03603s