lemongrass 2.0.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.
- lemongrass-2.0.0/PKG-INFO +6 -0
- lemongrass-2.0.0/pyproject.toml +24 -0
- lemongrass-2.0.0/src/lemongrass/__init__.py +1 -0
- lemongrass-2.0.0/src/lemongrass/cli.py +26 -0
- lemongrass-2.0.0/src/lemongrass/laps.py +857 -0
- lemongrass-2.0.0/src/lemongrass/pisugar_monitor.py +178 -0
- lemongrass-2.0.0/src/lemongrass/race_backfill.py +236 -0
- lemongrass-2.0.0/src/lemongrass/race_diagnose.py +138 -0
- lemongrass-2.0.0/src/lemongrass/telem.py +149 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "lemongrass"
|
|
3
|
+
version = "2.0.0"
|
|
4
|
+
requires-python = ">=3.10"
|
|
5
|
+
dependencies = [
|
|
6
|
+
"influxdb-client~=1.47",
|
|
7
|
+
"race-monitor>=0.5.1,<1",
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
[build-system]
|
|
11
|
+
requires = ["uv-build>=0.11.21,<0.12"]
|
|
12
|
+
build-backend = "uv_build"
|
|
13
|
+
|
|
14
|
+
[project.scripts]
|
|
15
|
+
lemongrass = "lemongrass.cli:main"
|
|
16
|
+
|
|
17
|
+
[tool.ruff]
|
|
18
|
+
line-length = 100
|
|
19
|
+
exclude = [".git", "__pycache__", "build", "dist", ".venv"]
|
|
20
|
+
|
|
21
|
+
[dependency-groups]
|
|
22
|
+
pi = ["obd~=0.7"]
|
|
23
|
+
race = ["pandas~=2.3"]
|
|
24
|
+
dev = ["pytest>=8"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Lemongrass - 24 Hours of Lemons telemetry."""
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import importlib
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
_COMMANDS = {
|
|
5
|
+
"laps": "lemongrass.laps",
|
|
6
|
+
"race-backfill": "lemongrass.race_backfill",
|
|
7
|
+
"telem": "lemongrass.telem",
|
|
8
|
+
"pisugar-monitor": "lemongrass.pisugar_monitor",
|
|
9
|
+
"race-diagnose": "lemongrass.race_diagnose",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def main():
|
|
14
|
+
if len(sys.argv) >= 2 and sys.argv[1] in ("-h", "--help"):
|
|
15
|
+
print("Usage: lemongrass <command> [args]")
|
|
16
|
+
print(f"Commands: {', '.join(_COMMANDS)}")
|
|
17
|
+
sys.exit(0)
|
|
18
|
+
|
|
19
|
+
if len(sys.argv) < 2 or sys.argv[1] not in _COMMANDS:
|
|
20
|
+
print("Usage: lemongrass <command> [args]")
|
|
21
|
+
print(f"Commands: {', '.join(_COMMANDS)}")
|
|
22
|
+
sys.exit(1)
|
|
23
|
+
|
|
24
|
+
cmd = sys.argv.pop(1)
|
|
25
|
+
sys.argv[0] = f"lemongrass-{cmd}"
|
|
26
|
+
importlib.import_module(_COMMANDS[cmd]).main()
|