tconnectsync 2.0.5__tar.gz → 2.0.8__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.
- {tconnectsync-2.0.5/tconnectsync.egg-info → tconnectsync-2.0.8}/PKG-INFO +12 -2
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/setup.cfg +12 -2
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/__init__.py +8 -5
- {tconnectsync-2.0.5 → tconnectsync-2.0.8/tconnectsync.egg-info}/PKG-INFO +12 -2
- tconnectsync-2.0.8/tconnectsync.egg-info/requires.txt +15 -0
- tconnectsync-2.0.5/tconnectsync.egg-info/requires.txt +0 -5
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/LICENSE.md +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/README.md +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/pyproject.toml +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/setup.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/api/__init__.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/api/android.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/api/common.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/api/controliq.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/api/tandemsource.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/api/webui.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/api/ws2.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/autoupdate.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/check.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/domain/__init__.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/domain/bolus.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/domain/device_settings.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/domain/tandemsource/__init__.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/domain/tandemsource/event_class.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/domain/tandemsource/pump_settings.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/domain/therapy_event.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/domain/utility.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/eventparser/__init__.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/eventparser/build_events.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/eventparser/events.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/eventparser/generic.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/eventparser/raw_event.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/eventparser/static_dicts.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/eventparser/transforms.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/eventparser/utils.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/features.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/nightscout.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/parser/__init__.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/parser/ciq_therapy_events.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/parser/nightscout.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/parser/tconnect.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/process.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/secret.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/__init__.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/basal.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/bolus.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/cgm.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/iob.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/profile.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/pump_events.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/__init__.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/autoupdate.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/choose_device.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/helpers.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_alarm.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_basal.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_basal_resume.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_basal_suspension.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_bolus.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_cartridge.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_cgm_alert.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_cgm_reading.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_cgm_start_join_stop.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_user_mode.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/update_profiles.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/util/__init__.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/util/cli.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/util/constants.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync.egg-info/SOURCES.txt +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync.egg-info/dependency_links.txt +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync.egg-info/entry_points.txt +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync.egg-info/top_level.txt +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tests/test_autoupdate.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tests/test_process.py +0 -0
- {tconnectsync-2.0.5 → tconnectsync-2.0.8}/tests/test_secret.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tconnectsync
|
|
3
|
-
Version: 2.0.
|
|
4
|
-
Summary: Syncs Tandem t:connect pump data to Nightscout for the t:slim X2
|
|
3
|
+
Version: 2.0.8
|
|
4
|
+
Summary: Syncs Tandem Source (formerly t:connect) insulin pump data to Nightscout for the t:slim X2
|
|
5
5
|
Home-page: https://github.com/jwoglom/tconnectsync
|
|
6
6
|
Author: James Woglom
|
|
7
7
|
Author-email: j@wogloms.net
|
|
@@ -17,6 +17,16 @@ Requires-Dist: bs4
|
|
|
17
17
|
Requires-Dist: arrow
|
|
18
18
|
Requires-Dist: lxml
|
|
19
19
|
Requires-Dist: python-dotenv
|
|
20
|
+
Requires-Dist: requests-mock
|
|
21
|
+
Requires-Dist: pysocks
|
|
22
|
+
Requires-Dist: urllib3
|
|
23
|
+
Requires-Dist: requests
|
|
24
|
+
Requires-Dist: requests-oidc
|
|
25
|
+
Requires-Dist: PyJWT
|
|
26
|
+
Requires-Dist: cryptography
|
|
27
|
+
Requires-Dist: dataclasses-json
|
|
28
|
+
Requires-Dist: cffi
|
|
29
|
+
Requires-Dist: typing-extensions
|
|
20
30
|
|
|
21
31
|
# tconnectsync
|
|
22
32
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = tconnectsync
|
|
3
|
-
version = 2.0.
|
|
3
|
+
version = 2.0.8
|
|
4
4
|
author = James Woglom
|
|
5
5
|
author_email = j@wogloms.net
|
|
6
|
-
description = Syncs Tandem t:connect pump data to Nightscout for the t:slim X2
|
|
6
|
+
description = Syncs Tandem Source (formerly t:connect) insulin pump data to Nightscout for the t:slim X2
|
|
7
7
|
long_description = file: README.md
|
|
8
8
|
long_description_content_type = text/markdown
|
|
9
9
|
url = https://github.com/jwoglom/tconnectsync
|
|
@@ -25,6 +25,16 @@ install_requires =
|
|
|
25
25
|
arrow
|
|
26
26
|
lxml
|
|
27
27
|
python-dotenv
|
|
28
|
+
requests-mock
|
|
29
|
+
pysocks
|
|
30
|
+
urllib3
|
|
31
|
+
requests
|
|
32
|
+
requests-oidc
|
|
33
|
+
PyJWT
|
|
34
|
+
cryptography
|
|
35
|
+
dataclasses-json
|
|
36
|
+
cffi
|
|
37
|
+
typing-extensions
|
|
28
38
|
|
|
29
39
|
[options.packages.find]
|
|
30
40
|
where = .
|
|
@@ -4,6 +4,12 @@ import arrow
|
|
|
4
4
|
import argparse
|
|
5
5
|
import logging
|
|
6
6
|
import pkg_resources
|
|
7
|
+
import typing
|
|
8
|
+
|
|
9
|
+
# Required for cryptography lib in python 3.7
|
|
10
|
+
if sys.version_info < (3, 8):
|
|
11
|
+
import typing_extensions
|
|
12
|
+
typing.Protocol = typing_extensions.Protocol
|
|
7
13
|
|
|
8
14
|
from .api import TConnectApi
|
|
9
15
|
from .process import process_time_range
|
|
@@ -111,13 +117,10 @@ def main(*args, **kwargs):
|
|
|
111
117
|
|
|
112
118
|
if args.auto_update:
|
|
113
119
|
u = TandemSourceAutoupdate(secret)
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
# return exit code 0 if processed events
|
|
117
|
-
sys.exit(0 if changed>0 else 1)
|
|
120
|
+
sys.exit(u.process(tconnect, nightscout, time_start, time_end, args.pretend, features=args.features))
|
|
118
121
|
else:
|
|
119
122
|
tconnectDevice = TandemSourceChooseDevice(secret, tconnect).choose()
|
|
120
|
-
added = TandemSourceProcessTimeRange(tconnect, nightscout, tconnectDevice, pretend=args.pretend, features=args.features).process(time_start, time_end)
|
|
123
|
+
added, last_event_id = TandemSourceProcessTimeRange(tconnect, nightscout, tconnectDevice, pretend=args.pretend, features=args.features).process(time_start, time_end)
|
|
121
124
|
|
|
122
125
|
# return exit code 0 if processed events
|
|
123
126
|
sys.exit(0 if added>0 else 1)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tconnectsync
|
|
3
|
-
Version: 2.0.
|
|
4
|
-
Summary: Syncs Tandem t:connect pump data to Nightscout for the t:slim X2
|
|
3
|
+
Version: 2.0.8
|
|
4
|
+
Summary: Syncs Tandem Source (formerly t:connect) insulin pump data to Nightscout for the t:slim X2
|
|
5
5
|
Home-page: https://github.com/jwoglom/tconnectsync
|
|
6
6
|
Author: James Woglom
|
|
7
7
|
Author-email: j@wogloms.net
|
|
@@ -17,6 +17,16 @@ Requires-Dist: bs4
|
|
|
17
17
|
Requires-Dist: arrow
|
|
18
18
|
Requires-Dist: lxml
|
|
19
19
|
Requires-Dist: python-dotenv
|
|
20
|
+
Requires-Dist: requests-mock
|
|
21
|
+
Requires-Dist: pysocks
|
|
22
|
+
Requires-Dist: urllib3
|
|
23
|
+
Requires-Dist: requests
|
|
24
|
+
Requires-Dist: requests-oidc
|
|
25
|
+
Requires-Dist: PyJWT
|
|
26
|
+
Requires-Dist: cryptography
|
|
27
|
+
Requires-Dist: dataclasses-json
|
|
28
|
+
Requires-Dist: cffi
|
|
29
|
+
Requires-Dist: typing-extensions
|
|
20
30
|
|
|
21
31
|
# tconnectsync
|
|
22
32
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_basal_resume.py
RENAMED
|
File without changes
|
{tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_basal_suspension.py
RENAMED
|
File without changes
|
|
File without changes
|
{tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_cartridge.py
RENAMED
|
File without changes
|
{tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_cgm_alert.py
RENAMED
|
File without changes
|
{tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_cgm_reading.py
RENAMED
|
File without changes
|
|
File without changes
|
{tconnectsync-2.0.5 → tconnectsync-2.0.8}/tconnectsync/sync/tandemsource/process_user_mode.py
RENAMED
|
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
|