agentledger-mysql 1.2.2__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.
@@ -0,0 +1,62 @@
1
+ .agentledger/
2
+ *.db
3
+ *.sqlite
4
+ *.sqlite3
5
+
6
+ __pycache__/
7
+ **/__pycache__/
8
+ *.py[cod]
9
+ *.pyo
10
+ *.pyd
11
+ $py.class
12
+ .pytest_cache/
13
+ .mypy_cache/
14
+ .ruff_cache/
15
+ .coverage
16
+ coverage.xml
17
+ dist/
18
+ build/
19
+ *.egg-info/
20
+ .venv/
21
+ venv/
22
+ .env
23
+ .DS_Store
24
+ **/.DS_Store
25
+ node_modules/
26
+ **/node_modules/
27
+ npm-debug.log*
28
+ yarn-debug.log*
29
+ yarn-error.log*
30
+ pnpm-debug.log*
31
+
32
+ # Local notes, research dumps, and generated reports that should not ship.
33
+ .claude/
34
+ AI_Agent_Runtime_开源项目构想.md
35
+ *.pdf
36
+ *.docx
37
+ *.pptx
38
+ *.pages
39
+ *.key
40
+ evidence/
41
+ evidence*.html
42
+ time-travel*.html
43
+
44
+ # Local external installer/download artifacts.
45
+ rce
46
+
47
+ # Rust build outputs.
48
+ target/
49
+ **/target/
50
+ rust/crates/*/Cargo.lock
51
+ # Local transient files
52
+ *.tmp
53
+ *.log
54
+ *.bak
55
+ *.swp
56
+ *.swo
57
+ *.orig
58
+
59
+ # Python/pytest leftovers not always covered by tool output
60
+ .coverage.*
61
+ htmlcov/
62
+ .ipynb_checkpoints/
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.4
2
+ Name: agentledger-mysql
3
+ Version: 1.2.2
4
+ Summary: MySQL StateStore adapter package for AgentLedger
5
+ Project-URL: Homepage, https://github.com/yaogdu/AgentLedger
6
+ Project-URL: Repository, https://github.com/yaogdu/AgentLedger
7
+ Project-URL: Documentation, https://github.com/yaogdu/AgentLedger/tree/main/docs
8
+ Project-URL: Issues, https://github.com/yaogdu/AgentLedger/issues
9
+ Author: AgentLedger Contributors
10
+ License: Apache-2.0
11
+ Keywords: agents,mysql,runtime,state-store
12
+ Requires-Python: >=3.11
13
+ Requires-Dist: agentledger-runtime<2,>=1.2
14
+ Requires-Dist: pymysql>=1.1
15
+ Description-Content-Type: text/markdown
16
+
17
+ # agentledger-mysql
18
+
19
+ MySQL StateStore adapter package for AgentLedger.
20
+
21
+ ```bash
22
+ pip install agentledger-mysql
23
+ pip install "agentledger-runtime[mysql]"
24
+ ```
25
+
26
+ ```python
27
+ from agentledger_mysql import MySQLStore, MySQLStoreConfig
28
+
29
+ store = MySQLStore(MySQLStoreConfig.from_env())
30
+ store.init()
31
+ ```
32
+
33
+ This package keeps the runtime core dependency-light while making MySQL an explicit opt-in. It re-exports the adapter classes from `agentledger.storage_mysql` in the `1.2.x` line.
34
+
35
+ Certification:
36
+
37
+ ```bash
38
+ python3 -m agentledger adapter certify --kind mysql --adapter-version 1.2.2
39
+ ```
40
+
41
+ Production hardening still requires real MySQL service validation, concurrency/load checks, backup/restore drills, and deployment-specific permission review.
@@ -0,0 +1,25 @@
1
+ # agentledger-mysql
2
+
3
+ MySQL StateStore adapter package for AgentLedger.
4
+
5
+ ```bash
6
+ pip install agentledger-mysql
7
+ pip install "agentledger-runtime[mysql]"
8
+ ```
9
+
10
+ ```python
11
+ from agentledger_mysql import MySQLStore, MySQLStoreConfig
12
+
13
+ store = MySQLStore(MySQLStoreConfig.from_env())
14
+ store.init()
15
+ ```
16
+
17
+ This package keeps the runtime core dependency-light while making MySQL an explicit opt-in. It re-exports the adapter classes from `agentledger.storage_mysql` in the `1.2.x` line.
18
+
19
+ Certification:
20
+
21
+ ```bash
22
+ python3 -m agentledger adapter certify --kind mysql --adapter-version 1.2.2
23
+ ```
24
+
25
+ Production hardening still requires real MySQL service validation, concurrency/load checks, backup/restore drills, and deployment-specific permission review.
@@ -0,0 +1,11 @@
1
+ # agentledger-mysql examples
2
+
3
+ Set a MySQL DSN and run migration/status commands:
4
+
5
+ ```bash
6
+ export AGENTLEDGER_MYSQL_DSN="mysql://agentledger:agentledger@127.0.0.1:3306/agentledger"
7
+ python3 -m agentledger migrate status --dialect mysql
8
+ python3 -m agentledger migrate up --dialect mysql
9
+ ```
10
+
11
+ Use `AGENTLEDGER_MYSQL_DATABASE` or `--database` when the DSN does not include a database name.
@@ -0,0 +1,26 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "agentledger-mysql"
7
+ version = "1.2.2"
8
+ description = "MySQL StateStore adapter package for AgentLedger"
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = {text = "Apache-2.0"}
12
+ authors = [{name = "AgentLedger Contributors"}]
13
+ keywords = ["agents", "runtime", "mysql", "state-store"]
14
+ dependencies = [
15
+ "agentledger-runtime>=1.2,<2",
16
+ "pymysql>=1.1",
17
+ ]
18
+
19
+ [project.urls]
20
+ Homepage = "https://github.com/yaogdu/AgentLedger"
21
+ Repository = "https://github.com/yaogdu/AgentLedger"
22
+ Documentation = "https://github.com/yaogdu/AgentLedger/tree/main/docs"
23
+ Issues = "https://github.com/yaogdu/AgentLedger/issues"
24
+
25
+ [tool.hatch.build.targets.wheel]
26
+ packages = ["src/agentledger_mysql"]
@@ -0,0 +1,11 @@
1
+ from agentledger.storage_mysql import MYSQL_SCHEMA_SQL, MySQLDependencyMissing, MySQLStore, MySQLStoreConfig
2
+
3
+ __version__ = "1.2.2"
4
+
5
+ __all__ = [
6
+ "MYSQL_SCHEMA_SQL",
7
+ "MySQLDependencyMissing",
8
+ "MySQLStore",
9
+ "MySQLStoreConfig",
10
+ "__version__",
11
+ ]
@@ -0,0 +1,5 @@
1
+ def test_mysql_adapter_imports():
2
+ from agentledger_mysql import MySQLStore, MySQLStoreConfig
3
+
4
+ assert MySQLStore.__name__ == "MySQLStore"
5
+ assert MySQLStoreConfig.__name__ == "MySQLStoreConfig"