All Projects → sladkovm → Vmpy

sladkovm / Vmpy

Licence: mit
VMPY - Performance Velo Metrics Toolbox

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Vmpy

Script My Workout
🏃 Programmable workouts from the comfort of your terminal 🏃
Stars: ✭ 19 (+137.5%)
Mutual labels:  fitness
calories-in
A web-based meal plan editor for people who prepare all of their food.
Stars: ✭ 105 (+1212.5%)
Mutual labels:  fitness
fitness app clone
This is the fitness app clone.
Stars: ✭ 16 (+100%)
Mutual labels:  fitness
ha strava
Pipe your Activity Data from Strava directly into Home Assistant
Stars: ✭ 63 (+687.5%)
Mutual labels:  fitness
MuscleBook
[ABANDONED] Muscle Book is an iOS workout tracker for strength training and body building.
Stars: ✭ 36 (+350%)
Mutual labels:  fitness
traindown-dart
Dart (and Flutter) library for the Traindown Markup Language. This is the reference implementation for now. It is first to receive features and fixes.
Stars: ✭ 16 (+100%)
Mutual labels:  fitness
SmartSpin2k
Transform your spin bike into a Smart Trainer!
Stars: ✭ 88 (+1000%)
Mutual labels:  fitness
Bodyweight Fitness Android
Bodyweight Fitness (Android)
Stars: ✭ 297 (+3612.5%)
Mutual labels:  fitness
flutter
Flutter fitness/workout app for wger
Stars: ✭ 106 (+1225%)
Mutual labels:  fitness
zwift-workout-file-reference
Reference documentation for the Zwift workout file format
Stars: ✭ 54 (+575%)
Mutual labels:  fitness
rn-fitness-tracker
React Native module to interact with Google Fit and Apple HealthKit.
Stars: ✭ 58 (+625%)
Mutual labels:  fitness
lifescripts
Automating various decisions stochastically, starting with my current coin-based intermittent fasting and dice-based kettlebell.
Stars: ✭ 20 (+150%)
Mutual labels:  fitness
exercises.json
Open Public Domain Exercise Dataset in JSON format
Stars: ✭ 49 (+512.5%)
Mutual labels:  fitness
hms-health-demo-kotlin
HMS Health demo code provides demo programs for your reference or usage. Developers can access the Huawei Health Platform and obtain sports & health data by integrating HUAWEI Health.
Stars: ✭ 21 (+162.5%)
Mutual labels:  fitness
traindown
Public site
Stars: ✭ 35 (+337.5%)
Mutual labels:  fitness
hms-health-demo-java
HMS Health demo code provides demo programs for your reference or usage. Developers can access the Huawei Health Platform and obtain sports & health data by integrating HUAWEI Health.
Stars: ✭ 37 (+362.5%)
Mutual labels:  fitness
react-native-health
A React Native package to interact with Apple HealthKit
Stars: ✭ 348 (+4250%)
Mutual labels:  fitness
Personal Dashboard
📊 Programmatically collecting and reporting various stats about myself daily
Stars: ✭ 333 (+4062.5%)
Mutual labels:  fitness
BoxVR-Playlist-Manager
A Windows based playlist manager for the VR fitness game BoxVR
Stars: ✭ 17 (+112.5%)
Mutual labels:  fitness
fittrak
A data-driven workout tracking tool for the quantified-self 💪 🤓
Stars: ✭ 19 (+137.5%)
Mutual labels:  fitness

======================================= VMPY - Performance Velo Metrics Toolbox

VMPY is a toolbox for evaluating typical Cycling Performance Metrics from the ride data e.g. power, heart-rate, velocity, gradient, cadence streams.

All functions within the package do follow the convention, where input/output formats are either traditional Python built-in data structures or are the nd-arrays. This design choice favors easy integration into other projects, e.g. velometria.com <http://velometria.com>_

To help you getting started VMPY also provides a very thin wrapper around the Strava API <https://strava.github.io/api/>_.

Installation

Official release:

pip install vmpy

The bleeding edge work in progress:

pip install git+git://github.com/sladkovm/[email protected]

Scope

The VMPY package provides the following functionality:

streams.py: Streams shape preserving calculations e.g. masking, filtering, zone conversions

metrics.py: Cycling Performance Metrics

strava.py: Python wrapper around the Strava API v3 for fetching Athletes, Activities and Stream data

Usage

from vmpy import strava stream = strava.retrieve_streams(activity_id=1282167861, access_token=STRAVA_ACCESS_TOKEN)

from vmpy import streams power_zones = streams.compute_zones(stream['watts'], ftp=270) hr_zones = streams.compute_zones(stream['heartrate'], lthr=160) watts_3sec = streams.rolling_mean(stream['watts'], window=3, mask=stream['moving']) gradient_wo_outliers = streams.median_filter(stream['grade_smooth'], window=31, threshold=1)

from vmpy import metrics normalizes_power = metrics.normalized_power(stream['watts']) time_in_power_zones = metrics.time_in_zones(stream['watts'], ftp=260)

Quick Start

Register Strava App

In order to be able to use Strava API the user App must be registered at the <link http://www.strava.com/developers>_:

Application Name: ex.: My Awesome App

Website: ex.: myawesomeapp.com (can be anything, even your FB or Strava page will do)

Application Description ex.: Just fooling around with some Strava data

Authorization Callback Domain 127.0.0.1 (unless you are building a serious App)

Access Token

The Access Token will be found at the users profile page <https://www.strava.com/settings/api>_ It will look like this: 83ebeabdec09f6670863766f792ead24d61fe3f9

Access Token must be passed explicitly as an argument to the functions found in strava.py module

Contribution guidelines

This project is absolutely open for contributions. No strong guidelines yet, except for:

  1. Don't push on master branch
  2. Test
  3. Write docstrings in NumPy style

Useful links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].