assay-server 0.1.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 (70) hide show
  1. assay_server-0.1.0/LICENSE +21 -0
  2. assay_server-0.1.0/PKG-INFO +64 -0
  3. assay_server-0.1.0/README.md +951 -0
  4. assay_server-0.1.0/assay/__init__.py +2 -0
  5. assay_server-0.1.0/assay/__main__.py +180 -0
  6. assay_server-0.1.0/assay/agents.py +525 -0
  7. assay_server-0.1.0/assay/alerts.py +397 -0
  8. assay_server-0.1.0/assay/api.py +1090 -0
  9. assay_server-0.1.0/assay/auth.py +194 -0
  10. assay_server-0.1.0/assay/client.py +313 -0
  11. assay_server-0.1.0/assay/config.py +73 -0
  12. assay_server-0.1.0/assay/connect.py +287 -0
  13. assay_server-0.1.0/assay/contracts.py +506 -0
  14. assay_server-0.1.0/assay/cost.py +196 -0
  15. assay_server-0.1.0/assay/coverage.py +119 -0
  16. assay_server-0.1.0/assay/demo.py +753 -0
  17. assay_server-0.1.0/assay/failures.py +846 -0
  18. assay_server-0.1.0/assay/flaky.py +304 -0
  19. assay_server-0.1.0/assay/gates.py +166 -0
  20. assay_server-0.1.0/assay/ingest.py +602 -0
  21. assay_server-0.1.0/assay/integrations.py +228 -0
  22. assay_server-0.1.0/assay/learn.py +739 -0
  23. assay_server-0.1.0/assay/measures/__init__.py +35 -0
  24. assay_server-0.1.0/assay/measures/base.py +136 -0
  25. assay_server-0.1.0/assay/measures/cost.py +168 -0
  26. assay_server-0.1.0/assay/measures/errors.py +81 -0
  27. assay_server-0.1.0/assay/measures/ground_truth.py +51 -0
  28. assay_server-0.1.0/assay/measures/operations.py +127 -0
  29. assay_server-0.1.0/assay/measures/pipeline.py +177 -0
  30. assay_server-0.1.0/assay/models.py +137 -0
  31. assay_server-0.1.0/assay/prompts.py +212 -0
  32. assay_server-0.1.0/assay/rootcause.py +352 -0
  33. assay_server-0.1.0/assay/runner.py +317 -0
  34. assay_server-0.1.0/assay/scheduler.py +67 -0
  35. assay_server-0.1.0/assay/schema.py +336 -0
  36. assay_server-0.1.0/assay/sources/__init__.py +0 -0
  37. assay_server-0.1.0/assay/sources/base.py +33 -0
  38. assay_server-0.1.0/assay/sources/events.py +205 -0
  39. assay_server-0.1.0/assay/sources/sql.py +257 -0
  40. assay_server-0.1.0/assay/static/index.html +1622 -0
  41. assay_server-0.1.0/assay/store.py +468 -0
  42. assay_server-0.1.0/assay/trace.py +94 -0
  43. assay_server-0.1.0/assay/units.py +22 -0
  44. assay_server-0.1.0/assay/workflow.py +171 -0
  45. assay_server-0.1.0/assay_server.egg-info/PKG-INFO +64 -0
  46. assay_server-0.1.0/assay_server.egg-info/SOURCES.txt +68 -0
  47. assay_server-0.1.0/assay_server.egg-info/dependency_links.txt +1 -0
  48. assay_server-0.1.0/assay_server.egg-info/entry_points.txt +2 -0
  49. assay_server-0.1.0/assay_server.egg-info/requires.txt +11 -0
  50. assay_server-0.1.0/assay_server.egg-info/top_level.txt +1 -0
  51. assay_server-0.1.0/docs/assay-server.md +32 -0
  52. assay_server-0.1.0/pyproject.toml +51 -0
  53. assay_server-0.1.0/setup.cfg +4 -0
  54. assay_server-0.1.0/tests/test_agents.py +170 -0
  55. assay_server-0.1.0/tests/test_alerts.py +211 -0
  56. assay_server-0.1.0/tests/test_api.py +260 -0
  57. assay_server-0.1.0/tests/test_auth.py +262 -0
  58. assay_server-0.1.0/tests/test_client.py +65 -0
  59. assay_server-0.1.0/tests/test_connect.py +218 -0
  60. assay_server-0.1.0/tests/test_contracts.py +205 -0
  61. assay_server-0.1.0/tests/test_cost.py +156 -0
  62. assay_server-0.1.0/tests/test_errors_api.py +125 -0
  63. assay_server-0.1.0/tests/test_failures.py +184 -0
  64. assay_server-0.1.0/tests/test_flaky.py +74 -0
  65. assay_server-0.1.0/tests/test_gates.py +72 -0
  66. assay_server-0.1.0/tests/test_learn.py +114 -0
  67. assay_server-0.1.0/tests/test_measures.py +183 -0
  68. assay_server-0.1.0/tests/test_prompts.py +200 -0
  69. assay_server-0.1.0/tests/test_rootcause.py +126 -0
  70. assay_server-0.1.0/tests/test_sdk.py +193 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 tap222
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,64 @@
1
+ Metadata-Version: 2.4
2
+ Name: assay-server
3
+ Version: 0.1.0
4
+ Summary: Assay server: evaluation and observability for AI pipelines and agents, with a dashboard and demo data
5
+ Author: tap222
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/tap222/docai-eval
8
+ Project-URL: Documentation, https://github.com/tap222/docai-eval#setup-guide
9
+ Project-URL: Issues, https://github.com/tap222/docai-eval/issues
10
+ Keywords: llm,agents,evaluation,observability,document-ai,ai
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Framework :: FastAPI
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
+ Classifier: Topic :: Software Development :: Testing
19
+ Requires-Python: >=3.10
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: fastapi>=0.110
23
+ Requires-Dist: uvicorn>=0.27
24
+ Requires-Dist: sqlalchemy>=2.0
25
+ Requires-Dist: pydantic>=2.5
26
+ Provides-Extra: postgres
27
+ Requires-Dist: psycopg[binary]>=3.1; extra == "postgres"
28
+ Provides-Extra: dev
29
+ Requires-Dist: pytest>=8; extra == "dev"
30
+ Requires-Dist: httpx>=0.27; extra == "dev"
31
+ Dynamic: license-file
32
+
33
+ # assay-server
34
+
35
+ The [Assay](https://github.com/tap222/docai-eval) server: evaluation and observability for AI
36
+ systems, meaning document-intelligence pipelines (OCR, classification, splitting, field
37
+ extraction) and AI agents (reasoning, tool calls, state changes). This package includes
38
+ the API, the dashboard, and a demo tenant. Python 3.10+.
39
+
40
+ ```bash
41
+ pip install assay-server
42
+ assay demo # synthetic tenant, 7 weeks of daily runs, staged incidents
43
+ assay serve # http://127.0.0.1:8400 (API docs at /docs)
44
+ ```
45
+
46
+ By default, results go to SQLite in the current directory. For production, add the Postgres
47
+ driver and point Assay at your database:
48
+
49
+ ```bash
50
+ pip install "assay-server[postgres]"
51
+ export ASSAY_STORE_URL=postgresql+psycopg://user:pass@host:5432/assay
52
+ ```
53
+
54
+ A new server has no login. Creating the first admin key switches login on:
55
+
56
+ ```bash
57
+ assay keys create --tenant acme --scopes admin --name "acme admin"
58
+ ```
59
+
60
+ To send data to the server from your own code, use the SDK,
61
+ [`assay-evals`](https://pypi.org/project/assay-evals/), which has no dependencies.
62
+
63
+ The [setup guide](https://github.com/tap222/docai-eval#setup-guide) also covers Docker,
64
+ Vercel, connecting your pipeline's database, and release gates.