Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (111 loc) · 4.42 KB
/
Copy pathpyproject.toml
File metadata and controls
121 lines (111 loc) · 4.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mercury-composable"
version = "4.12.31"
description = "Lightweight Event-over-HTTP function host and client for Mercury Composable"
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "Accenture Technology" }]
requires-python = ">=3.11"
dependencies = [
"aiohttp>=3.10,<4",
"msgpack>=1.0,<2",
"PyYAML>=6.0,<7",
]
keywords = ["event-driven", "composable", "microservices", "event-over-http", "mercury"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Framework :: AsyncIO",
"Topic :: Software Development :: Libraries",
"Operating System :: OS Independent",
]
[project.urls]
Homepage = "https://github.com/Accenture/mercury-python"
Documentation = "https://accenture.github.io/mercury-python"
Repository = "https://github.com/Accenture/mercury-python"
Changelog = "https://github.com/Accenture/mercury-python/blob/main/CHANGELOG.md"
[project.optional-dependencies]
# the LLM helper (extensions/llm-helper) - the package itself stays SDK-free
llm = ["anthropic>=1,<2"]
# AWS Bedrock as the helper's backend (llm.backend: bedrock) - boto3 signs each call with the
# AWS credential chain; the Claude API install stays lean without it
bedrock = ["anthropic[bedrock]>=1,<2"]
# Redis as the helper's transcript store (llm.transcript.store: redis) - an agent loop's turns
# can then land on any replica; a single process keeps its transcripts in memory without it
redis = ["redis>=5,<9"]
# PostgreSQL as the helper's transcript audit store (llm.transcript.audit: postgres) - psycopg 3
# with its binary wheel and its asynchronous pool; the helper runs without it when no audit is set
postgres = ["psycopg[binary,pool]>=3.2,<4"]
# the MCP binding (extensions/mcp-binding) - the official MCP SDK's client, one route per
# allowlisted remote tool; the package itself stays SDK-free
mcp = ["mcp>=2,<3"]
# the knowledge-graph tools of the agent tools (extensions/agent-tools, tools.graph.uri) - the
# official Bolt driver, asynchronous, reaching Neo4j and Memgraph alike; the file, web and clock
# tools need no extra
graph = ["neo4j>=6,<7"]
# file.extract of the agent tools - PDF and Word documents to text; without it the tool does not register
documents = ["pypdf>=6,<7", "python-docx>=1.1,<2"]
# the OAuth 2.0 mode of the ask-a-person reply page (extensions/ask-person, ask.reply.auth: oauth2) - PyJWT
# validates an access token against the issuer's published keys; the open and the proxy modes need no extra
ask = ["PyJWT[crypto]>=2.9,<3"]
dev = [
"pytest>=8",
"pytest-asyncio>=0.23",
"ruff>=0.9",
"anthropic[bedrock]>=1,<2",
"redis>=5,<9",
"psycopg[binary,pool]>=3.2,<4",
"mcp>=2,<3",
"neo4j>=6,<7",
"pypdf>=6,<7",
"python-docx>=1.1,<2",
"PyJWT[crypto]>=2.9,<3",
# the store's compare-and-set is a Lua script; the [lua] extra runs it in the fake
"fakeredis[lua]>=2.26",
]
[project.scripts]
mercury-serve = "mercury_composable.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["src/mercury_composable"]
[tool.hatch.build.targets.sdist]
# the sdist ships the package plus its teaching surfaces - never the repo's
# agent-memory layer, skills, or CI plumbing
only-include = [
"src/mercury_composable",
"tests",
"examples",
"extensions",
"README.md",
"CHANGELOG.md",
"LICENSE",
]
[tool.ruff]
line-length = 100
target-version = "py311"
# the agent-skills layer is tool-managed by agent-memory (overwritten on upgrade);
# style fixes for it belong upstream, not here
extend-exclude = ["agent-skills"]
[tool.ruff.lint]
extend-select = ["I"]
[tool.basedpyright]
# standard mode plus the contract-relevant strictness: every function parameter
# is annotated, unit tests included (the wire contract is typed - Body,
# dict[str, str]); the reportUnknown* warning family of the editor's
# "recommended" mode is deliberately not chased. agent-skills is tool-managed
# by agent-memory and excluded.
typeCheckingMode = "standard"
reportMissingParameterType = "error"
include = ["src", "examples", "extensions", "tests"]
exclude = ["agent-skills", ".venv"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]