fitbit-cli 1.1.0__tar.gz → 1.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fitbit_cli-1.1.0/fitbit_cli.egg-info → fitbit_cli-1.2.0}/PKG-INFO +5 -5
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/README.md +2 -2
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/fitbit_cli/__init__.py +1 -1
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/fitbit_cli/cli.py +9 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/fitbit_cli/formatter.py +17 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/fitbit_cli/main.py +4 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0/fitbit_cli.egg-info}/PKG-INFO +5 -5
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/setup.py +1 -1
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/LICENSE +0 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/MANIFEST.in +0 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/fitbit_cli/exceptions.py +0 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/fitbit_cli/fitbit_api.py +0 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/fitbit_cli/fitbit_setup.py +0 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/fitbit_cli.egg-info/SOURCES.txt +0 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/fitbit_cli.egg-info/dependency_links.txt +0 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/fitbit_cli.egg-info/entry_points.txt +0 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/fitbit_cli.egg-info/requires.txt +0 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/fitbit_cli.egg-info/top_level.txt +0 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/pyproject.toml +0 -0
- {fitbit_cli-1.1.0 → fitbit_cli-1.2.0}/setup.cfg +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fitbit-cli
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Access your Fitbit data at your terminal.
|
|
5
5
|
Home-page: https://github.com/veerendra2/fitbit-cli
|
|
6
|
-
Download-URL: https://github.com/veerendra2/fitbit-cli/archive/1.
|
|
6
|
+
Download-URL: https://github.com/veerendra2/fitbit-cli/archive/1.2.0.tar.gz
|
|
7
7
|
Author: veerendra2
|
|
8
8
|
Author-email: vk.tyk23@simplelogin.com
|
|
9
9
|
License: MIT
|
|
10
10
|
Project-URL: Documentation, https://github.com/veerendra2/fitbit-cli
|
|
11
|
-
Keywords: fitbit,cli,python
|
|
11
|
+
Keywords: fitbit,fitbit-api,cli,python
|
|
12
12
|
Classifier: Development Status :: 5 - Production/Stable
|
|
13
13
|
Classifier: Intended Audience :: End Users/Desktop
|
|
14
14
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
@@ -36,7 +36,7 @@ Requires-Dist: rich==13.9.4
|
|
|
36
36
|
](https://pypi.org/project/fitbit-cli/) [
|
|
37
37
|
](https://pypi.org/project/fitbit-cli/)
|
|
38
38
|
|
|
39
|
-
>
|
|
39
|
+
> This is not an official Fitbit CLI
|
|
40
40
|
|
|
41
41
|
Access your Fitbit data directly from your terminal 💻. View 💤 sleep logs, ❤️ heart rate, 🏋️♂️ activity levels, 🩸 SpO2, and more, all presented in a simple, easy-to-read table format!
|
|
42
42
|
|
|
@@ -57,7 +57,7 @@ Access your Fitbit data directly from your terminal 💻. View 💤 sleep logs,
|
|
|
57
57
|
| [SpO2](https://dev.fitbit.com/build/reference/web-api/spo2/) | ✅ |
|
|
58
58
|
| [Heart Rate Time Series](https://dev.fitbit.com/build/reference/web-api/heartrate-timeseries/) | ✅ |
|
|
59
59
|
| [Active Zone Minutes (AZM) Time Series](https://dev.fitbit.com/build/reference/web-api/active-zone-minutes-timeseries/) | ✅ |
|
|
60
|
-
| [Activity](https://dev.fitbit.com/build/reference/web-api/activity/) |
|
|
60
|
+
| [Activity](https://dev.fitbit.com/build/reference/web-api/activity/) | ✅ |
|
|
61
61
|
|
|
62
62
|
## Usage Guide
|
|
63
63
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
](https://pypi.org/project/fitbit-cli/) [
|
|
5
5
|
](https://pypi.org/project/fitbit-cli/)
|
|
6
6
|
|
|
7
|
-
>
|
|
7
|
+
> This is not an official Fitbit CLI
|
|
8
8
|
|
|
9
9
|
Access your Fitbit data directly from your terminal 💻. View 💤 sleep logs, ❤️ heart rate, 🏋️♂️ activity levels, 🩸 SpO2, and more, all presented in a simple, easy-to-read table format!
|
|
10
10
|
|
|
@@ -25,7 +25,7 @@ Access your Fitbit data directly from your terminal 💻. View 💤 sleep logs,
|
|
|
25
25
|
| [SpO2](https://dev.fitbit.com/build/reference/web-api/spo2/) | ✅ |
|
|
26
26
|
| [Heart Rate Time Series](https://dev.fitbit.com/build/reference/web-api/heartrate-timeseries/) | ✅ |
|
|
27
27
|
| [Active Zone Minutes (AZM) Time Series](https://dev.fitbit.com/build/reference/web-api/active-zone-minutes-timeseries/) | ✅ |
|
|
28
|
-
| [Activity](https://dev.fitbit.com/build/reference/web-api/activity/) |
|
|
28
|
+
| [Activity](https://dev.fitbit.com/build/reference/web-api/activity/) | ✅ |
|
|
29
29
|
|
|
30
30
|
## Usage Guide
|
|
31
31
|
|
|
@@ -80,6 +80,15 @@ def parse_arguments():
|
|
|
80
80
|
metavar="DATE[,DATE]",
|
|
81
81
|
help="Show Active Zone Minutes (AZM) Time Series data",
|
|
82
82
|
)
|
|
83
|
+
group.add_argument(
|
|
84
|
+
"-b",
|
|
85
|
+
"--breathing-rate",
|
|
86
|
+
type=parse_date_range,
|
|
87
|
+
nargs="?",
|
|
88
|
+
const=(datetime.today().date(), None),
|
|
89
|
+
metavar="DATE[,DATE]",
|
|
90
|
+
help="Show Breathing Rate Summary data",
|
|
91
|
+
)
|
|
83
92
|
group.add_argument(
|
|
84
93
|
"-u",
|
|
85
94
|
"--show-user-profile",
|
|
@@ -145,3 +145,20 @@ def display_azm_time_series(azm_data):
|
|
|
145
145
|
)
|
|
146
146
|
|
|
147
147
|
CONSOLE.print(table)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
def display_breathing_rate(breathing_rate_data):
|
|
151
|
+
"""Breathing Rate data formatter"""
|
|
152
|
+
|
|
153
|
+
table = Table(title="Breathing Rate Summary 🫁", show_header=True)
|
|
154
|
+
|
|
155
|
+
table.add_column("Date :calendar:")
|
|
156
|
+
table.add_column("Breaths Per Minute :dash:")
|
|
157
|
+
|
|
158
|
+
for br in breathing_rate_data.get("br", []):
|
|
159
|
+
table.add_row(
|
|
160
|
+
br.get("dateTime", "N/A"),
|
|
161
|
+
str(br.get("value", {}).get("breathingRate", "N/A")),
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
CONSOLE.print(table)
|
|
@@ -37,3 +37,7 @@ def main():
|
|
|
37
37
|
fmt.display_heart_data(fitbit.get_heart_rate_time_series(*args.heart))
|
|
38
38
|
if args.active_zone:
|
|
39
39
|
fmt.display_azm_time_series(fitbit.get_azm_time_series(*args.active_zone))
|
|
40
|
+
if args.breathing_rate:
|
|
41
|
+
fmt.display_breathing_rate(
|
|
42
|
+
fitbit.get_breathing_rate_summary(*args.breathing_rate)
|
|
43
|
+
)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fitbit-cli
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Access your Fitbit data at your terminal.
|
|
5
5
|
Home-page: https://github.com/veerendra2/fitbit-cli
|
|
6
|
-
Download-URL: https://github.com/veerendra2/fitbit-cli/archive/1.
|
|
6
|
+
Download-URL: https://github.com/veerendra2/fitbit-cli/archive/1.2.0.tar.gz
|
|
7
7
|
Author: veerendra2
|
|
8
8
|
Author-email: vk.tyk23@simplelogin.com
|
|
9
9
|
License: MIT
|
|
10
10
|
Project-URL: Documentation, https://github.com/veerendra2/fitbit-cli
|
|
11
|
-
Keywords: fitbit,cli,python
|
|
11
|
+
Keywords: fitbit,fitbit-api,cli,python
|
|
12
12
|
Classifier: Development Status :: 5 - Production/Stable
|
|
13
13
|
Classifier: Intended Audience :: End Users/Desktop
|
|
14
14
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
@@ -36,7 +36,7 @@ Requires-Dist: rich==13.9.4
|
|
|
36
36
|
](https://pypi.org/project/fitbit-cli/) [
|
|
37
37
|
](https://pypi.org/project/fitbit-cli/)
|
|
38
38
|
|
|
39
|
-
>
|
|
39
|
+
> This is not an official Fitbit CLI
|
|
40
40
|
|
|
41
41
|
Access your Fitbit data directly from your terminal 💻. View 💤 sleep logs, ❤️ heart rate, 🏋️♂️ activity levels, 🩸 SpO2, and more, all presented in a simple, easy-to-read table format!
|
|
42
42
|
|
|
@@ -57,7 +57,7 @@ Access your Fitbit data directly from your terminal 💻. View 💤 sleep logs,
|
|
|
57
57
|
| [SpO2](https://dev.fitbit.com/build/reference/web-api/spo2/) | ✅ |
|
|
58
58
|
| [Heart Rate Time Series](https://dev.fitbit.com/build/reference/web-api/heartrate-timeseries/) | ✅ |
|
|
59
59
|
| [Active Zone Minutes (AZM) Time Series](https://dev.fitbit.com/build/reference/web-api/active-zone-minutes-timeseries/) | ✅ |
|
|
60
|
-
| [Activity](https://dev.fitbit.com/build/reference/web-api/activity/) |
|
|
60
|
+
| [Activity](https://dev.fitbit.com/build/reference/web-api/activity/) | ✅ |
|
|
61
61
|
|
|
62
62
|
## Usage Guide
|
|
63
63
|
|
|
@@ -29,7 +29,7 @@ setup(
|
|
|
29
29
|
project_urls={
|
|
30
30
|
"Documentation": "https://github.com/veerendra2/fitbit-cli",
|
|
31
31
|
},
|
|
32
|
-
keywords=["fitbit", "cli", "python"],
|
|
32
|
+
keywords=["fitbit", "fitbit-api", "cli", "python"],
|
|
33
33
|
license="MIT",
|
|
34
34
|
classifiers=[
|
|
35
35
|
"Development Status :: 5 - Production/Stable",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|