argus-dpy 0.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.
Files changed (154) hide show
  1. argus_dpy-0.2.0/.github/dependabot.yml +27 -0
  2. argus_dpy-0.2.0/.github/workflows/ci.yml +49 -0
  3. argus_dpy-0.2.0/.github/workflows/codeql.yml +29 -0
  4. argus_dpy-0.2.0/.github/workflows/publish.yml +41 -0
  5. argus_dpy-0.2.0/.github/workflows/release-please.yml +18 -0
  6. argus_dpy-0.2.0/.gitignore +60 -0
  7. argus_dpy-0.2.0/.release-please-manifest.json +3 -0
  8. argus_dpy-0.2.0/CHANGELOG.md +39 -0
  9. argus_dpy-0.2.0/CODE_OF_CONDUCT.md +85 -0
  10. argus_dpy-0.2.0/CONTRIBUTING.md +71 -0
  11. argus_dpy-0.2.0/LICENSE +661 -0
  12. argus_dpy-0.2.0/PKG-INFO +200 -0
  13. argus_dpy-0.2.0/README.md +171 -0
  14. argus_dpy-0.2.0/SECURITY.md +23 -0
  15. argus_dpy-0.2.0/docker-compose.yml +46 -0
  16. argus_dpy-0.2.0/examples/basic_bot.py +31 -0
  17. argus_dpy-0.2.0/examples/clustered_bot.py +48 -0
  18. argus_dpy-0.2.0/frontend/index.html +13 -0
  19. argus_dpy-0.2.0/frontend/package-lock.json +1384 -0
  20. argus_dpy-0.2.0/frontend/package.json +26 -0
  21. argus_dpy-0.2.0/frontend/public/nimble/assets/aurora-dark.svg +13 -0
  22. argus_dpy-0.2.0/frontend/public/nimble/assets/aurora-light.svg +13 -0
  23. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Archivo-OFL.txt +93 -0
  24. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Archivo-Variable.ttf +0 -0
  25. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Bricolage-OFL.txt +93 -0
  26. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/BricolageGrotesque-Variable.ttf +0 -0
  27. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Caveat-OFL.txt +93 -0
  28. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Caveat-Variable.ttf +0 -0
  29. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Cormorant-OFL.txt +93 -0
  30. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/CormorantGaramond-Variable.ttf +0 -0
  31. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/DMSans-OFL.txt +93 -0
  32. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/DMSans-Variable.ttf +0 -0
  33. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/DMSerif-OFL.txt +93 -0
  34. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/DMSerifDisplay-Regular.ttf +0 -0
  35. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/FingerPaint-OFL.txt +93 -0
  36. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/FingerPaint-Regular.ttf +0 -0
  37. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Fraunces-OFL.txt +93 -0
  38. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Fraunces-Variable.ttf +0 -0
  39. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Gabarito-OFL.txt +93 -0
  40. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Gabarito-Variable.ttf +0 -0
  41. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Geist-OFL.txt +93 -0
  42. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Geist-Variable.ttf +0 -0
  43. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/GeistMono-OFL.txt +93 -0
  44. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/GeistMono-Variable.ttf +0 -0
  45. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Hanken-OFL.txt +94 -0
  46. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/HankenGrotesk-Variable.ttf +0 -0
  47. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/InstrumentSerif-OFL.txt +93 -0
  48. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/InstrumentSerif-Regular.ttf +0 -0
  49. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/JetBrainsMono-OFL.txt +93 -0
  50. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/JetBrainsMono-Variable.ttf +0 -0
  51. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Lora-OFL.txt +93 -0
  52. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Lora-Variable.ttf +0 -0
  53. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Manrope-OFL.txt +93 -0
  54. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Manrope-Variable.ttf +0 -0
  55. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Newsreader-OFL.txt +93 -0
  56. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Newsreader-Variable.ttf +0 -0
  57. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Outfit-OFL.txt +93 -0
  58. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Outfit-Variable.ttf +0 -0
  59. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Playfair-OFL.txt +93 -0
  60. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/PlayfairDisplay-Variable.ttf +0 -0
  61. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/PlusJakarta-OFL.txt +93 -0
  62. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/PlusJakartaSans-Variable.ttf +0 -0
  63. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Sora-OFL.txt +93 -0
  64. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Sora-Variable.ttf +0 -0
  65. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/SpaceGrotesk-OFL.txt +93 -0
  66. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/SpaceGrotesk-Variable.ttf +0 -0
  67. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Syne-OFL.txt +93 -0
  68. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Syne-Variable.ttf +0 -0
  69. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Unbounded-OFL.txt +93 -0
  70. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/Unbounded-Variable.ttf +0 -0
  71. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/WorkSans-OFL.txt +93 -0
  72. argus_dpy-0.2.0/frontend/public/nimble/assets/fonts/WorkSans-Variable.ttf +0 -0
  73. argus_dpy-0.2.0/frontend/public/nimble/styles.css +17 -0
  74. argus_dpy-0.2.0/frontend/public/nimble/tokens/backgrounds.css +76 -0
  75. argus_dpy-0.2.0/frontend/public/nimble/tokens/base.css +61 -0
  76. argus_dpy-0.2.0/frontend/public/nimble/tokens/colors.css +83 -0
  77. argus_dpy-0.2.0/frontend/public/nimble/tokens/elevation.css +48 -0
  78. argus_dpy-0.2.0/frontend/public/nimble/tokens/fonts.css +68 -0
  79. argus_dpy-0.2.0/frontend/public/nimble/tokens/glass.css +34 -0
  80. argus_dpy-0.2.0/frontend/public/nimble/tokens/motion.css +44 -0
  81. argus_dpy-0.2.0/frontend/public/nimble/tokens/presets.css +249 -0
  82. argus_dpy-0.2.0/frontend/public/nimble/tokens/responsive.css +91 -0
  83. argus_dpy-0.2.0/frontend/public/nimble/tokens/spacing.css +34 -0
  84. argus_dpy-0.2.0/frontend/public/nimble/tokens/typefaces.css +102 -0
  85. argus_dpy-0.2.0/frontend/public/nimble/tokens/typography.css +50 -0
  86. argus_dpy-0.2.0/frontend/src/App.tsx +76 -0
  87. argus_dpy-0.2.0/frontend/src/app.css +224 -0
  88. argus_dpy-0.2.0/frontend/src/components.tsx +118 -0
  89. argus_dpy-0.2.0/frontend/src/lib/prom.test.ts +37 -0
  90. argus_dpy-0.2.0/frontend/src/lib/prom.ts +79 -0
  91. argus_dpy-0.2.0/frontend/src/lib/quantile.test.ts +42 -0
  92. argus_dpy-0.2.0/frontend/src/lib/quantile.ts +48 -0
  93. argus_dpy-0.2.0/frontend/src/lib/select.ts +50 -0
  94. argus_dpy-0.2.0/frontend/src/lib/snapshot.ts +62 -0
  95. argus_dpy-0.2.0/frontend/src/main.tsx +13 -0
  96. argus_dpy-0.2.0/frontend/src/sections.tsx +122 -0
  97. argus_dpy-0.2.0/frontend/src/sections_hub.tsx +121 -0
  98. argus_dpy-0.2.0/frontend/src/useDashboard.ts +69 -0
  99. argus_dpy-0.2.0/frontend/src/vite-env.d.ts +1 -0
  100. argus_dpy-0.2.0/frontend/tsconfig.json +21 -0
  101. argus_dpy-0.2.0/frontend/vite.config.ts +17 -0
  102. argus_dpy-0.2.0/grafana/dashboards/gateway.json +60 -0
  103. argus_dpy-0.2.0/grafana/dashboards/interactions.json +77 -0
  104. argus_dpy-0.2.0/grafana/dashboards/overview.json +95 -0
  105. argus_dpy-0.2.0/grafana/provisioning/dashboards/argus.yml +11 -0
  106. argus_dpy-0.2.0/grafana/provisioning/datasources/prometheus.yml +13 -0
  107. argus_dpy-0.2.0/hatch_build.py +60 -0
  108. argus_dpy-0.2.0/prometheus/prometheus.yml +27 -0
  109. argus_dpy-0.2.0/pyproject.toml +78 -0
  110. argus_dpy-0.2.0/release-please-config.json +11 -0
  111. argus_dpy-0.2.0/src/argus/__init__.py +25 -0
  112. argus_dpy-0.2.0/src/argus/adapters/__init__.py +17 -0
  113. argus_dpy-0.2.0/src/argus/adapters/base.py +47 -0
  114. argus_dpy-0.2.0/src/argus/adapters/prometheus.py +99 -0
  115. argus_dpy-0.2.0/src/argus/cog.py +155 -0
  116. argus_dpy-0.2.0/src/argus/config.py +161 -0
  117. argus_dpy-0.2.0/src/argus/core/__init__.py +21 -0
  118. argus_dpy-0.2.0/src/argus/core/collector.py +143 -0
  119. argus_dpy-0.2.0/src/argus/core/hooks.py +98 -0
  120. argus_dpy-0.2.0/src/argus/core/instrumentation.py +216 -0
  121. argus_dpy-0.2.0/src/argus/core/metrics.py +291 -0
  122. argus_dpy-0.2.0/src/argus/dashboard/__init__.py +17 -0
  123. argus_dpy-0.2.0/src/argus/dashboard/auth.py +64 -0
  124. argus_dpy-0.2.0/src/argus/dashboard/server.py +135 -0
  125. argus_dpy-0.2.0/src/argus/dashboard/snapshot.py +41 -0
  126. argus_dpy-0.2.0/src/argus/dashboard/static/index.html +11 -0
  127. argus_dpy-0.2.0/src/argus/exposition/__init__.py +17 -0
  128. argus_dpy-0.2.0/src/argus/exposition/server.py +78 -0
  129. argus_dpy-0.2.0/src/argus/history/__init__.py +22 -0
  130. argus_dpy-0.2.0/src/argus/history/clickhouse.py +76 -0
  131. argus_dpy-0.2.0/src/argus/history/query.py +52 -0
  132. argus_dpy-0.2.0/src/argus/history/sink.py +125 -0
  133. argus_dpy-0.2.0/src/argus/py.typed +0 -0
  134. argus_dpy-0.2.0/tests/__init__.py +0 -0
  135. argus_dpy-0.2.0/tests/conftest.py +128 -0
  136. argus_dpy-0.2.0/tests/dashboard/__init__.py +0 -0
  137. argus_dpy-0.2.0/tests/dashboard/test_analytics_api.py +55 -0
  138. argus_dpy-0.2.0/tests/dashboard/test_auth.py +52 -0
  139. argus_dpy-0.2.0/tests/dashboard/test_server.py +78 -0
  140. argus_dpy-0.2.0/tests/dashboard/test_snapshot.py +53 -0
  141. argus_dpy-0.2.0/tests/dashboard/test_stream.py +42 -0
  142. argus_dpy-0.2.0/tests/history/__init__.py +0 -0
  143. argus_dpy-0.2.0/tests/history/test_clickhouse.py +65 -0
  144. argus_dpy-0.2.0/tests/history/test_sink.py +56 -0
  145. argus_dpy-0.2.0/tests/history/test_wiring.py +59 -0
  146. argus_dpy-0.2.0/tests/test_cog.py +95 -0
  147. argus_dpy-0.2.0/tests/test_collector.py +153 -0
  148. argus_dpy-0.2.0/tests/test_config.py +113 -0
  149. argus_dpy-0.2.0/tests/test_hooks.py +145 -0
  150. argus_dpy-0.2.0/tests/test_invariants.py +52 -0
  151. argus_dpy-0.2.0/tests/test_metrics.py +115 -0
  152. argus_dpy-0.2.0/tests/test_overhead.py +32 -0
  153. argus_dpy-0.2.0/tests/test_prometheus.py +59 -0
  154. argus_dpy-0.2.0/tests/test_server.py +45 -0
@@ -0,0 +1,27 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: pip
4
+ directory: "/"
5
+ schedule:
6
+ interval: weekly
7
+ groups:
8
+ python-dev:
9
+ patterns: ["*"]
10
+ open-pull-requests-limit: 5
11
+
12
+ - package-ecosystem: github-actions
13
+ directory: "/"
14
+ schedule:
15
+ interval: weekly
16
+ groups:
17
+ actions:
18
+ patterns: ["*"]
19
+
20
+ - package-ecosystem: npm
21
+ directory: "/frontend"
22
+ schedule:
23
+ interval: weekly
24
+ groups:
25
+ frontend:
26
+ patterns: ["*"]
27
+ open-pull-requests-limit: 5
@@ -0,0 +1,49 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
15
+ steps:
16
+ - uses: actions/checkout@v6
17
+ - uses: actions/setup-python@v6
18
+ with:
19
+ python-version: ${{ matrix.python-version }}
20
+ - name: Install
21
+ run: |
22
+ python -m pip install --upgrade pip
23
+ pip install -e . --group dev
24
+ - name: Ruff lint
25
+ run: ruff check .
26
+ - name: Ruff format
27
+ run: ruff format --check .
28
+ - name: Mypy
29
+ run: mypy
30
+ - name: Tests
31
+ run: pytest --cov=argus --cov-report=term-missing
32
+
33
+ frontend:
34
+ runs-on: ubuntu-latest
35
+ defaults:
36
+ run:
37
+ working-directory: frontend
38
+ steps:
39
+ - uses: actions/checkout@v6
40
+ - uses: actions/setup-node@v6
41
+ with:
42
+ node-version: "24"
43
+ cache: npm
44
+ cache-dependency-path: frontend/package-lock.json
45
+ - run: npm ci
46
+ - name: Unit tests
47
+ run: npm test
48
+ - name: Build
49
+ run: npm run build
@@ -0,0 +1,29 @@
1
+ name: CodeQL
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+ schedule:
9
+ - cron: "27 3 * * 1"
10
+
11
+ permissions:
12
+ contents: read
13
+ security-events: write
14
+
15
+ jobs:
16
+ analyze:
17
+ name: Analyze (python)
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v6
21
+ - name: Initialize CodeQL
22
+ uses: github/codeql-action/init@v4
23
+ with:
24
+ languages: python
25
+ queries: security-and-quality
26
+ - name: Perform CodeQL analysis
27
+ uses: github/codeql-action/analyze@v4
28
+ with:
29
+ category: "/language:python"
@@ -0,0 +1,41 @@
1
+ name: publish
2
+
3
+ # Publishes to PyPI when a GitHub Release is published (release-please creates
4
+ # the release + tag when its release PR is merged). Uses PyPI Trusted
5
+ # Publishing (OIDC) so no API token/secret is stored. Node is set up so the
6
+ # build hook can compile the dashboard SPA into the wheel.
7
+
8
+ on:
9
+ release:
10
+ types: [published]
11
+ workflow_dispatch:
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ build-and-publish:
18
+ runs-on: ubuntu-latest
19
+ environment:
20
+ name: pypi
21
+ url: https://pypi.org/p/argus-dpy
22
+ permissions:
23
+ id-token: write # required for Trusted Publishing
24
+ steps:
25
+ - uses: actions/checkout@v6
26
+ - uses: actions/setup-node@v6
27
+ with:
28
+ node-version: "24"
29
+ - uses: actions/setup-python@v6
30
+ with:
31
+ python-version: "3.12"
32
+ - name: Build sdist and wheel
33
+ run: |
34
+ python -m pip install --upgrade build
35
+ python -m build
36
+ - name: Check artifacts
37
+ run: |
38
+ python -m pip install --upgrade twine
39
+ twine check dist/*
40
+ - name: Publish to PyPI
41
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,18 @@
1
+ name: release-please
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ permissions:
8
+ contents: write
9
+ pull-requests: write
10
+
11
+ jobs:
12
+ release-please:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: googleapis/release-please-action@v5
16
+ with:
17
+ config-file: release-please-config.json
18
+ manifest-file: .release-please-manifest.json
@@ -0,0 +1,60 @@
1
+ # --- Undercover: local-only meta, never committed ---
2
+ archive/
3
+ docs/
4
+ CLAUDE.md
5
+ MEMORY.md
6
+ AGENTS.md
7
+ GEMINI.md
8
+ .claude/
9
+ .cursor/
10
+ .aider*
11
+ *.local.md
12
+
13
+ # --- Python ---
14
+ __pycache__/
15
+ *.py[cod]
16
+ *$py.class
17
+ *.egg-info/
18
+ .eggs/
19
+ build/
20
+ dist/
21
+ wheels/
22
+ *.egg
23
+
24
+ # --- Virtual envs ---
25
+ .venv/
26
+ venv/
27
+ env/
28
+ ENV/
29
+
30
+ # --- Tooling caches ---
31
+ .pytest_cache/
32
+ .mypy_cache/
33
+ .ruff_cache/
34
+ .coverage
35
+ .coverage.*
36
+ htmlcov/
37
+ coverage.xml
38
+ .tox/
39
+ .nox/
40
+
41
+ # --- Brainstorm / scratch ---
42
+ .superpowers/
43
+
44
+ # --- Frontend (built bundle is produced by the packaging build hook) ---
45
+ frontend/node_modules/
46
+ frontend/dist/
47
+ src/argus/dashboard/static/assets/
48
+ src/argus/dashboard/static/nimble/
49
+
50
+ # --- IDE / OS ---
51
+ .idea/
52
+ .vscode/
53
+ *.swp
54
+ .DS_Store
55
+ Thumbs.db
56
+
57
+ # --- Env / secrets ---
58
+ .env
59
+ .env.*
60
+ !.env.example
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.2.0"
3
+ }
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ ## [0.2.0](https://github.com/AstorisTheBrave/argus/compare/v0.1.0...v0.2.0) (2026-06-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * **adapters:** add Prometheus adapter with hybrid registry (invariant 4) ([efea3f0](https://github.com/AstorisTheBrave/argus/commit/efea3f05e58d09731221ed2335bde331e1132d6a))
9
+ * add ArgusCog and the one-line Argus(bot) integration ([43cb69a](https://github.com/AstorisTheBrave/argus/commit/43cb69a2642fda0486fff565fb289b611595c89c))
10
+ * **config:** add ArgusConfig with kwargs>env>defaults precedence ([f71f721](https://github.com/AstorisTheBrave/argus/commit/f71f7212b9aff4e9ab6f9ba1e2502968226c7447))
11
+ * **config:** add dashboard/history settings ([8966a8f](https://github.com/AstorisTheBrave/argus/commit/8966a8fd905c91a3894bad1273233518dd280dcb))
12
+ * **core:** add hooks + fail-open instrumentation (invariants 3, 5) ([5e47799](https://github.com/AstorisTheBrave/argus/commit/5e4779909b46e274a66b99dca8740b3e6d58e040))
13
+ * **core:** add neutral MetricRegistry and metric model ([b66fac2](https://github.com/AstorisTheBrave/argus/commit/b66fac2cb6a0cc0aa9201be8b3c6abdf35729ea0))
14
+ * **core:** define the v1 metric catalogue (spec sec.8) ([eb34c4c](https://github.com/AstorisTheBrave/argus/commit/eb34c4c79e123bf4395e10a710dc3ae3bd5d3c36))
15
+ * **dashboard:** add bearer-token auth middleware ([f9ddbdd](https://github.com/AstorisTheBrave/argus/commit/f9ddbdd3df5f446e13efc9be9ee09bd6bbce80bd))
16
+ * **dashboard:** analytics API (fail-closed) + ClickHouse wiring ([c72a3c8](https://github.com/AstorisTheBrave/argus/commit/c72a3c805fef4801ac06f4924939337f0e856823))
17
+ * **dashboard:** JSON metric snapshot ([913c840](https://github.com/AstorisTheBrave/argus/commit/913c840cf6b7c4b8d9cf38266dbdf9822e0842e5))
18
+ * **dashboard:** serve SPA shell + /api/config ([87128d3](https://github.com/AstorisTheBrave/argus/commit/87128d3ff7440c5066143ec3b10a7d6bae812d76))
19
+ * **dashboard:** SSE metric stream at /api/stream ([ca72b9f](https://github.com/AstorisTheBrave/argus/commit/ca72b9f1f96729507f5d2438d0c09674cb8174b7))
20
+ * **dashboard:** wire dashboard into ArgusCog ([8daa7b6](https://github.com/AstorisTheBrave/argus/commit/8daa7b6b6b50daaa261daec5cdef5f8c1c07cc89))
21
+ * **exposition:** aiohttp /metrics + /healthz on the bot loop ([7dc8e98](https://github.com/AstorisTheBrave/argus/commit/7dc8e9891c56d54464b0b2fa5b3399171522a066))
22
+ * **frontend:** metrics data layer ([5968f28](https://github.com/AstorisTheBrave/argus/commit/5968f282810c0ec516db38f5d7b114ab61291878))
23
+ * **frontend:** scaffold Vite+React+TS SPA with Nimble assets ([43e8dac](https://github.com/AstorisTheBrave/argus/commit/43e8dac73f9ffd9719d70d053e5f5de73f4dfbf9))
24
+ * **frontend:** sidebar hub with overview, interactions, gateway, grafana, analytics ([a3968d2](https://github.com/AstorisTheBrave/argus/commit/a3968d2b6dbb8f822b9aaafc8b4515693c487073))
25
+ * **history:** ClickHouse sink + analytics queries ([3ab9aca](https://github.com/AstorisTheBrave/argus/commit/3ab9aca422de25ed8386a3db23c81d4a473d5c32))
26
+ * **history:** EventSink ABC, NullSink and non-blocking BatchingSink ([a3b6e99](https://github.com/AstorisTheBrave/argus/commit/a3b6e9900213065a149a88206969843efadb1fc2))
27
+ * **history:** per-guild event capture behind enable_per_guild ([0f56009](https://github.com/AstorisTheBrave/argus/commit/0f5600986241d55b31c0f2052dcfb90555004a69))
28
+ * **stack:** add Grafana dashboards, provisioning, compose, scrape config ([3be5320](https://github.com/AstorisTheBrave/argus/commit/3be5320e6c3a7bd26213e98f9fea310a4b6e4c57))
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * clear CodeQL quality alerts ([e5fbe4e](https://github.com/AstorisTheBrave/argus/commit/e5fbe4e8122394175fb85c3fc365a321ae19ab66))
34
+
35
+
36
+ ### Documentation
37
+
38
+ * **examples:** add basic and clustered bot examples ([b5bc3b2](https://github.com/AstorisTheBrave/argus/commit/b5bc3b2449db3c5dfb51a4d9e8ad7dc19e3f615d))
39
+ * write README and add MIT LICENSE (D11) ([5783c9f](https://github.com/AstorisTheBrave/argus/commit/5783c9f4638992ab7ee83a161e0bbf4ef7eda7b6))
@@ -0,0 +1,85 @@
1
+
2
+ # Contributor Covenant Code of Conduct
3
+
4
+ ## Our Pledge
5
+
6
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
7
+
8
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
9
+
10
+ ## Our Standards
11
+
12
+ Examples of behavior that contributes to a positive environment for our community include:
13
+
14
+ * Demonstrating empathy and kindness toward other people
15
+ * Being respectful of differing opinions, viewpoints, and experiences
16
+ * Giving and gracefully accepting constructive feedback
17
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
18
+ * Focusing on what is best not just for us as individuals, but for the overall community
19
+
20
+ Examples of unacceptable behavior include:
21
+
22
+ * The use of sexualized language or imagery, and sexual attention or advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email address, without their explicit permission
26
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
27
+
28
+ ## Enforcement Responsibilities
29
+
30
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
31
+
32
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
33
+
34
+ ## Scope
35
+
36
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
37
+
38
+ ## Enforcement
39
+
40
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at callmeSage0@proton.me. All complaints will be reviewed and investigated promptly and fairly.
41
+
42
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
43
+
44
+ ## Enforcement Guidelines
45
+
46
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
47
+
48
+ ### 1. Correction
49
+
50
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
51
+
52
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
53
+
54
+ ### 2. Warning
55
+
56
+ **Community Impact**: A violation through a single incident or series of actions.
57
+
58
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
59
+
60
+ ### 3. Temporary Ban
61
+
62
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
63
+
64
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
65
+
66
+ ### 4. Permanent Ban
67
+
68
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
69
+
70
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
71
+
72
+ ## Attribution
73
+
74
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
75
+
76
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
77
+
78
+ For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
79
+
80
+ [homepage]: https://www.contributor-covenant.org
81
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
82
+ [Mozilla CoC]: https://github.com/mozilla/diversity
83
+ [FAQ]: https://www.contributor-covenant.org/faq
84
+ [translations]: https://www.contributor-covenant.org/translations
85
+
@@ -0,0 +1,71 @@
1
+ # Contributing to Argus
2
+
3
+ Thanks for your interest in improving Argus. This project is small and welcomes
4
+ focused pull requests.
5
+
6
+ ## Ground rules
7
+
8
+ - Keep the seven architectural invariants intact (see the README and the
9
+ module docstrings). In particular: `core` imports no adapter, and no
10
+ `guild_id`/`user_id`/`channel_id` ever becomes a Prometheus label.
11
+ - Run the checks before opening a PR:
12
+
13
+ ```bash
14
+ ruff check .
15
+ ruff format --check .
16
+ mypy
17
+ pytest --cov=argus
18
+ ```
19
+
20
+ - Add or update tests for any behaviour change. Core coverage should stay at or
21
+ above 90%.
22
+
23
+ ## Licensing and the DCO
24
+
25
+ Argus is licensed under **AGPL-3.0-or-later**. By contributing, you agree that
26
+ your contributions are licensed under the same terms, and you certify the
27
+ [Developer Certificate of Origin](https://developercertificate.org/) (reproduced
28
+ below).
29
+
30
+ Sign off every commit with the `-s` flag, which appends a
31
+ `Signed-off-by: Your Name <your@email>` trailer:
32
+
33
+ ```bash
34
+ git commit -s -m "feat: describe your change"
35
+ ```
36
+
37
+ The sign-off must use a real name and a reachable email. PRs whose commits are
38
+ not signed off will be asked to amend.
39
+
40
+ > **Why the DCO?** It records that you have the right to submit the code under
41
+ > the project licence. It also keeps the door open to offering a commercial
42
+ > dual-licensing exception in the future without having to track down every
43
+ > past contributor. (This is project policy, not legal advice.)
44
+
45
+ ### Developer Certificate of Origin 1.1
46
+
47
+ ```
48
+ By making a contribution to this project, I certify that:
49
+
50
+ (a) The contribution was created in whole or in part by me and I
51
+ have the right to submit it under the open source license
52
+ indicated in the file; or
53
+
54
+ (b) The contribution is based upon previous work that, to the best
55
+ of my knowledge, is covered under an appropriate open source
56
+ license and I have the right under that license to submit that
57
+ work with modifications, whether created in whole or in part
58
+ by me, under the same open source license (unless I am
59
+ permitted to submit under a different license), as indicated
60
+ in the file; or
61
+
62
+ (c) The contribution was provided directly to me by some other
63
+ person who certified (a), (b) or (c) and I have not modified
64
+ it.
65
+
66
+ (d) I understand and agree that this project and the contribution
67
+ are public and that a record of the contribution (including all
68
+ personal information I submit with it, including my sign-off) is
69
+ maintained indefinitely and may be redistributed consistent with
70
+ this project or the open source license(s) involved.
71
+ ```