text2cypher 3.0.0__tar.gz → 3.0.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 (50) hide show
  1. {text2cypher-3.0.0 → text2cypher-3.0.1}/PKG-INFO +5 -5
  2. {text2cypher-3.0.0 → text2cypher-3.0.1}/README.md +2 -2
  3. {text2cypher-3.0.0 → text2cypher-3.0.1}/pyproject.toml +5 -4
  4. {text2cypher-3.0.0 → text2cypher-3.0.1}/pyproject.toml.orig +5 -4
  5. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_skills/functions/SKILL.md +1 -1
  6. {text2cypher-3.0.0 → text2cypher-3.0.1}/LICENSE +0 -0
  7. {text2cypher-3.0.0 → text2cypher-3.0.1}/THIRD_PARTY_NOTICES +0 -0
  8. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/__init__.py +0 -0
  9. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_config.py +0 -0
  10. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_errors.py +0 -0
  11. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_generation/__init__.py +0 -0
  12. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_generation/conversation.py +0 -0
  13. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_generation/extract.py +0 -0
  14. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_generation/generate.py +0 -0
  15. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_generation/header.py +0 -0
  16. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_generation/problems.py +0 -0
  17. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_generation/prompts.py +0 -0
  18. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_generation/read_skill.py +0 -0
  19. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_generation/schema_filter.py +0 -0
  20. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_generation/typos.py +0 -0
  21. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_graph/__init__.py +0 -0
  22. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_graph/examples.py +0 -0
  23. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_graph/execution.py +0 -0
  24. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_graph/schema_source.py +0 -0
  25. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_pipeline.py +0 -0
  26. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_results/__init__.py +0 -0
  27. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_results/results.py +0 -0
  28. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_results/values.py +0 -0
  29. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_skills/__init__.py +0 -0
  30. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_skills/graph-algorithms/SKILL.md +0 -0
  31. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_skills/path-finding/SKILL.md +0 -0
  32. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_validation/__init__.py +0 -0
  33. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_validation/issues.py +0 -0
  34. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_validation/validator.py +0 -0
  35. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/_workflow.py +0 -0
  36. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/llm/__init__.py +0 -0
  37. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/llm/_adapt.py +0 -0
  38. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/llm/_base.py +0 -0
  39. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/llm/_chat_completions.py +0 -0
  40. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/llm/_fake.py +0 -0
  41. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/llm/_options.py +0 -0
  42. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/py.typed +0 -0
  43. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/schema/__init__.py +0 -0
  44. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/schema/_dictionary.py +0 -0
  45. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/schema/_filter.py +0 -0
  46. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/schema/_from_snapshot.py +0 -0
  47. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/schema/_model.py +0 -0
  48. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/schema/_render.py +0 -0
  49. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/schema/_stopwords.py +0 -0
  50. {text2cypher-3.0.0 → text2cypher-3.0.1}/src/text2cypher/skills.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: text2cypher
3
- Version: 3.0.0
3
+ Version: 3.0.1
4
4
  Summary: text2cypher: Generate validated Cypher queries from natural language text with LLMs
5
5
  Keywords: cypher,text2cypher,falkordb,llm,knowledge-graph,openCypher,graphdb
6
6
  Author: Kwaku Yeboah-Antwi
@@ -18,8 +18,8 @@ Classifier: Programming Language :: Python :: 3.13
18
18
  Classifier: Programming Language :: Python :: 3.14
19
19
  Classifier: Topic :: Database
20
20
  Classifier: Typing :: Typed
21
- Requires-Dist: cypher-guardrail>=1.5.1
22
- Requires-Dist: falkordb>=1.8.0
21
+ Requires-Dist: cypher-guardrail>=1.6.0
22
+ Requires-Dist: falkordb[hiredis]>=1.8.0
23
23
  Requires-Dist: openai>=3.31.0
24
24
  Requires-Dist: redis>=8.1.0
25
25
  Requires-Dist: snowballstemmer>=3.1.1
@@ -125,8 +125,8 @@ For contributors: [how it is built, and why](https://github.com/Killeroid/text2c
125
125
  ## Development
126
126
 
127
127
  ```sh
128
- uv sync # create the environment (Python >= 3.12 also installs FalkorDBLite for the tests)
129
- uv run pytest # the tests, on an embedded FalkorDB
128
+ uv sync # create the environment (Python >= 3.12 also installs FalkorDBLite, which only the quickstart uses)
129
+ uv run pytest # the tests, on a FalkorDB in Docker (or on the server in FALKORDB_HOST and FALKORDB_PORT)
130
130
  uv run pytest -m "not db" # only the tests that need no database (under ten seconds)
131
131
  uv run ruff check . && uv run ruff format --check . && uv run ty check && uv run lint-imports
132
132
  uv run coverage run -m pytest && uv run coverage report
@@ -92,8 +92,8 @@ For contributors: [how it is built, and why](https://github.com/Killeroid/text2c
92
92
  ## Development
93
93
 
94
94
  ```sh
95
- uv sync # create the environment (Python >= 3.12 also installs FalkorDBLite for the tests)
96
- uv run pytest # the tests, on an embedded FalkorDB
95
+ uv sync # create the environment (Python >= 3.12 also installs FalkorDBLite, which only the quickstart uses)
96
+ uv run pytest # the tests, on a FalkorDB in Docker (or on the server in FALKORDB_HOST and FALKORDB_PORT)
97
97
  uv run pytest -m "not db" # only the tests that need no database (under ten seconds)
98
98
  uv run ruff check . && uv run ruff format --check . && uv run ty check && uv run lint-imports
99
99
  uv run coverage run -m pytest && uv run coverage report
@@ -1,12 +1,12 @@
1
1
  [project]
2
2
  name = "text2cypher"
3
- version = "3.0.0"
3
+ version = "3.0.1"
4
4
  description = "text2cypher: Generate validated Cypher queries from natural language text with LLMs"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
7
7
  dependencies = [
8
- "cypher-guardrail>=1.5.1",
9
- "falkordb>=1.8.0",
8
+ "cypher-guardrail>=1.6.0",
9
+ "falkordb[hiredis]>=1.8.0",
10
10
  "openai>=3.31.0",
11
11
  "redis>=8.1.0",
12
12
  "snowballstemmer>=3.1.1",
@@ -58,7 +58,7 @@ module-name = "text2cypher"
58
58
 
59
59
  [tool.pytest.ini_options]
60
60
  testpaths = ["tests"]
61
- markers = ['db: needs the embedded FalkorDB server (skip with -m "not db")']
61
+ markers = ['db: needs a FalkorDB server (skip with -m "not db")']
62
62
  addopts = [
63
63
  "--import-mode=importlib",
64
64
  "--strict-markers",
@@ -142,6 +142,7 @@ dev = [
142
142
  "import-linter>=2.15",
143
143
  "pytest>=9.1.1",
144
144
  "ruff>=0.17.0",
145
+ "testcontainers>=4.15.0",
145
146
  "ty>=0.0.87",
146
147
  ]
147
148
  docs = [
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "text2cypher"
3
- version = "3.0.0"
3
+ version = "3.0.1"
4
4
  description = "text2cypher: Generate validated Cypher queries from natural language text with LLMs"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -8,8 +8,8 @@ authors = [
8
8
  ]
9
9
  requires-python = ">=3.12"
10
10
  dependencies = [
11
- "cypher-guardrail>=1.5.1",
12
- "falkordb>=1.8.0",
11
+ "cypher-guardrail>=1.6.0",
12
+ "falkordb[hiredis]>=1.8.0",
13
13
  "openai>=3.31.0",
14
14
  "redis>=8.1.0",
15
15
  "snowballstemmer>=3.1.1",
@@ -47,6 +47,7 @@ dev = [
47
47
  "import-linter>=2.15",
48
48
  "pytest>=9.1.1",
49
49
  "ruff>=0.17.0",
50
+ "testcontainers>=4.15.0",
50
51
  "ty>=0.0.87",
51
52
  ]
52
53
  docs = [
@@ -58,7 +59,7 @@ docs = [
58
59
 
59
60
  [tool.pytest.ini_options]
60
61
  testpaths = ["tests"]
61
- markers = ["db: needs the embedded FalkorDB server (skip with -m \"not db\")"]
62
+ markers = ["db: needs a FalkorDB server (skip with -m \"not db\")"]
62
63
  # importlib mode (recommended for new projects) lets test files in different folders share a name
63
64
  addopts = ["--import-mode=importlib", "--strict-markers"]
64
65
  # so that the tests can import the trial harness in evals/ and the helpers in tests/support.py
@@ -60,7 +60,7 @@ RETURN size((c)-[:ROAD]->()) AS roads, outdegree(c) AS out, indegree(c) AS inn,
60
60
  ## Notes
61
61
 
62
62
  - Not-equal is `<>`; `!=` is a syntax error.
63
- - The regular-expression operator `=~` is not supported: use `CONTAINS`, `STARTS WITH`, `ENDS WITH` or `string.matchRegEx`.
63
+ - The regular-expression operator `=~` exists only in FalkorDB 6.0 and later; an older server rejects it. If it is rejected, use `CONTAINS`, `STARTS WITH`, `ENDS WITH` or `string.matchRegEx`.
64
64
  - `COUNT { ... }` and `EXISTS { ... }` subqueries are not supported. Count relationships with `size((c)-[:ROAD]->())`, `outdegree(c)` or `indegree(c)`.
65
65
  - There is no `datetime()`; use `localdatetime()`, `date()` or `timestamp()`.
66
66
  - Lower case is `toLower`, not `toLowerCase`. There is no `apoc` library.
File without changes