solisdash 0.3.1__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.
Files changed (33) hide show
  1. solisdash-0.3.1/.env.example +13 -0
  2. solisdash-0.3.1/.gitignore +32 -0
  3. solisdash-0.3.1/.python-version +1 -0
  4. solisdash-0.3.1/LICENSE +662 -0
  5. solisdash-0.3.1/PKG-INFO +138 -0
  6. solisdash-0.3.1/README.md +97 -0
  7. solisdash-0.3.1/pyproject.toml +106 -0
  8. solisdash-0.3.1/src/solisdash/__init__.py +1 -0
  9. solisdash-0.3.1/src/solisdash/alarms.py +64 -0
  10. solisdash-0.3.1/src/solisdash/app.py +595 -0
  11. solisdash-0.3.1/src/solisdash/auth.py +111 -0
  12. solisdash-0.3.1/src/solisdash/cli.py +252 -0
  13. solisdash-0.3.1/src/solisdash/client.py +364 -0
  14. solisdash-0.3.1/src/solisdash/config.py +40 -0
  15. solisdash-0.3.1/src/solisdash/db.py +90 -0
  16. solisdash-0.3.1/src/solisdash/history.py +148 -0
  17. solisdash-0.3.1/src/solisdash/poller.py +263 -0
  18. solisdash-0.3.1/src/solisdash/ratelimit.py +67 -0
  19. solisdash-0.3.1/src/solisdash/scheduler.py +69 -0
  20. solisdash-0.3.1/src/solisdash/signing.py +83 -0
  21. solisdash-0.3.1/src/solisdash/static/history.js +142 -0
  22. solisdash-0.3.1/src/solisdash/static/icon-128.png +0 -0
  23. solisdash-0.3.1/src/solisdash/static/icon.png +0 -0
  24. solisdash-0.3.1/src/solisdash/static/style.css +79 -0
  25. solisdash-0.3.1/src/solisdash/templates/_tiles.html +40 -0
  26. solisdash-0.3.1/src/solisdash/templates/alarms.html +86 -0
  27. solisdash-0.3.1/src/solisdash/templates/base.html +97 -0
  28. solisdash-0.3.1/src/solisdash/templates/history.html +78 -0
  29. solisdash-0.3.1/src/solisdash/templates/home.html +20 -0
  30. solisdash-0.3.1/src/solisdash/templates/login.html +38 -0
  31. solisdash-0.3.1/src/solisdash/tiles.py +231 -0
  32. solisdash-0.3.1/tasks.py +277 -0
  33. solisdash-0.3.1/uv.lock +1308 -0
@@ -0,0 +1,13 @@
1
+ # SolisCloud API credentials
2
+ # Get from https://www.soliscloud.com/ -> API Management
3
+ SOLIS_KEY_ID=your-key-id
4
+ SOLIS_KEYSECRET=your-key-secret
5
+ SOLIS_API_URL=https://www.soliscloud.com:13333
6
+
7
+ # MongoDB Atlas connection string. Database name is `solis`.
8
+ # Local dev: point at a non-prod Atlas cluster — never production.
9
+ SOLIS_MONGODB_URI=mongodb+srv://USER:PASS@CLUSTER.mongodb.net/solis?retryWrites=true&w=majority
10
+
11
+ # Session cookie signing key
12
+ # Generate with: python -c "import secrets; print(secrets.token_urlsafe(32))"
13
+ SESSION_SECRET=change-me
@@ -0,0 +1,32 @@
1
+ # Secrets and environment
2
+ .env
3
+ .envrc
4
+
5
+ # Python
6
+ __pycache__/
7
+ *.py[cod]
8
+ *$py.class
9
+ .venv/
10
+ venv/
11
+ *.egg-info/
12
+ .eggs/
13
+ dist/
14
+ build/
15
+
16
+ # Test / lint caches
17
+ .pytest_cache/
18
+ .ruff_cache/
19
+ .mypy_cache/
20
+ .coverage
21
+ htmlcov/
22
+
23
+ # Runtime state (pidfiles, logs)
24
+ var/
25
+
26
+ # macOS
27
+ .DS_Store
28
+
29
+ # Editors
30
+ .vscode/
31
+ .idea/
32
+ *.swp
@@ -0,0 +1 @@
1
+ 3.12