nxcypher 1.0.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.
- nxcypher-1.0.0/.github/ISSUE_TEMPLATE/bug_report.md +44 -0
- nxcypher-1.0.0/.github/ISSUE_TEMPLATE/feature_request.md +31 -0
- nxcypher-1.0.0/.github/PULL_REQUEST_TEMPLATE.md +26 -0
- nxcypher-1.0.0/.github/SECURITY.md +36 -0
- nxcypher-1.0.0/.github/workflows/dco.yml +12 -0
- nxcypher-1.0.0/.github/workflows/python-package.yml +52 -0
- nxcypher-1.0.0/.gitignore +201 -0
- nxcypher-1.0.0/.ruff.toml +6 -0
- nxcypher-1.0.0/CHANGELOG.md +198 -0
- nxcypher-1.0.0/CODE_OF_CONDUCT.md +85 -0
- nxcypher-1.0.0/CONTRIBUTING.md +94 -0
- nxcypher-1.0.0/DCO +34 -0
- nxcypher-1.0.0/LICENSE +192 -0
- nxcypher-1.0.0/MANIFEST.in +1 -0
- nxcypher-1.0.0/NOTICE +13 -0
- nxcypher-1.0.0/PKG-INFO +159 -0
- nxcypher-1.0.0/README.md +144 -0
- nxcypher-1.0.0/docs/Get-Started.md +24 -0
- nxcypher-1.0.0/docs/Hints.md +50 -0
- nxcypher-1.0.0/docs/PUBLISHING_INSTRUCTIONS.md +208 -0
- nxcypher-1.0.0/docs/examples.md +65 -0
- nxcypher-1.0.0/nxcypher/__init__.py +4187 -0
- nxcypher-1.0.0/nxcypher/hinter.py +99 -0
- nxcypher-1.0.0/nxcypher/indexer.py +294 -0
- nxcypher-1.0.0/nxcypher/kb_loader.py +360 -0
- nxcypher-1.0.0/nxcypher/struct.py +828 -0
- nxcypher-1.0.0/nxcypher/test_case.py +218 -0
- nxcypher-1.0.0/nxcypher/test_collect.py +194 -0
- nxcypher-1.0.0/nxcypher/test_count_star.py +227 -0
- nxcypher-1.0.0/nxcypher/test_edge_hop.py +108 -0
- nxcypher-1.0.0/nxcypher/test_functions.py +187 -0
- nxcypher-1.0.0/nxcypher/test_hint_where.py +54 -0
- nxcypher-1.0.0/nxcypher/test_hinter.py +309 -0
- nxcypher-1.0.0/nxcypher/test_hints.py +388 -0
- nxcypher-1.0.0/nxcypher/test_indexer.py +392 -0
- nxcypher-1.0.0/nxcypher/test_list_comprehension.py +289 -0
- nxcypher-1.0.0/nxcypher/test_merge.py +172 -0
- nxcypher-1.0.0/nxcypher/test_mutations.py +262 -0
- nxcypher-1.0.0/nxcypher/test_negated_edges.py +279 -0
- nxcypher-1.0.0/nxcypher/test_node_edge_match.py +149 -0
- nxcypher-1.0.0/nxcypher/test_optional_match.py +322 -0
- nxcypher-1.0.0/nxcypher/test_parser.py +23 -0
- nxcypher-1.0.0/nxcypher/test_queries.py +2733 -0
- nxcypher-1.0.0/nxcypher/test_remove.py +132 -0
- nxcypher-1.0.0/nxcypher/test_struct.py +534 -0
- nxcypher-1.0.0/nxcypher/test_subquery.py +141 -0
- nxcypher-1.0.0/nxcypher/test_to_indexer_ast.py +148 -0
- nxcypher-1.0.0/nxcypher/test_union.py +322 -0
- nxcypher-1.0.0/nxcypher/test_unwind.py +93 -0
- nxcypher-1.0.0/nxcypher/test_with.py +146 -0
- nxcypher-1.0.0/pyproject.toml +30 -0
- nxcypher-1.0.0/uv.lock +208 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug Report
|
|
3
|
+
about: Report a bug in nxCypher
|
|
4
|
+
title: '[BUG] '
|
|
5
|
+
labels: bug
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Description
|
|
9
|
+
|
|
10
|
+
A clear description of what the bug is.
|
|
11
|
+
|
|
12
|
+
## Cypher Query
|
|
13
|
+
|
|
14
|
+
```cypher
|
|
15
|
+
MATCH (n) RETURN n
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Expected Behavior
|
|
19
|
+
|
|
20
|
+
What you expected to happen.
|
|
21
|
+
|
|
22
|
+
## Actual Behavior
|
|
23
|
+
|
|
24
|
+
What actually happened. Include the error message or incorrect output.
|
|
25
|
+
|
|
26
|
+
## Minimal Reproduction
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
import networkx as nx
|
|
30
|
+
from nxcypher import NXCypher
|
|
31
|
+
|
|
32
|
+
G = nx.DiGraph()
|
|
33
|
+
# ... setup graph ...
|
|
34
|
+
|
|
35
|
+
result = NXCypher(G).run("YOUR QUERY HERE")
|
|
36
|
+
print(result)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Environment
|
|
40
|
+
|
|
41
|
+
- Python version:
|
|
42
|
+
- nxCypher version:
|
|
43
|
+
- NetworkX version:
|
|
44
|
+
- OS:
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature Request
|
|
3
|
+
about: Suggest a new Cypher feature or function
|
|
4
|
+
title: '[FEATURE] '
|
|
5
|
+
labels: enhancement
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Feature Description
|
|
9
|
+
|
|
10
|
+
A clear description of the feature you'd like to see.
|
|
11
|
+
|
|
12
|
+
## Cypher Reference
|
|
13
|
+
|
|
14
|
+
If this is a standard Cypher/OpenCypher feature, link to the relevant documentation:
|
|
15
|
+
- Neo4j docs: https://neo4j.com/docs/cypher-manual/current/
|
|
16
|
+
- OpenCypher spec: https://opencypher.org/
|
|
17
|
+
|
|
18
|
+
## Example Query
|
|
19
|
+
|
|
20
|
+
```cypher
|
|
21
|
+
-- Show how the feature would be used
|
|
22
|
+
MATCH (n) RETURN newFunction(n.property)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Expected Result
|
|
26
|
+
|
|
27
|
+
Describe what the query should return.
|
|
28
|
+
|
|
29
|
+
## Use Case
|
|
30
|
+
|
|
31
|
+
Why is this feature important for your use case?
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
## Description
|
|
2
|
+
|
|
3
|
+
Brief description of the changes.
|
|
4
|
+
|
|
5
|
+
## Type of Change
|
|
6
|
+
|
|
7
|
+
- [ ] Bug fix
|
|
8
|
+
- [ ] New feature (Cypher function, clause, etc.)
|
|
9
|
+
- [ ] Performance improvement
|
|
10
|
+
- [ ] Documentation update
|
|
11
|
+
- [ ] Other (describe):
|
|
12
|
+
|
|
13
|
+
## Checklist
|
|
14
|
+
|
|
15
|
+
- [ ] All tests pass (`uv run pytest nxcypher/ -v`)
|
|
16
|
+
- [ ] Linter passes (`uv run ruff check nxcypher/`)
|
|
17
|
+
- [ ] New tests added for new functionality
|
|
18
|
+
- [ ] All commits are signed off (DCO: `git commit -s`)
|
|
19
|
+
|
|
20
|
+
## Testing
|
|
21
|
+
|
|
22
|
+
Describe how you tested these changes:
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
# Example test or query used to verify
|
|
26
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
| Version | Supported |
|
|
6
|
+
| ------- | ------------------ |
|
|
7
|
+
| 1.x | Yes |
|
|
8
|
+
| < 1.0 | No |
|
|
9
|
+
|
|
10
|
+
## Reporting a Vulnerability
|
|
11
|
+
|
|
12
|
+
If you discover a security vulnerability in nxCypher, please report it responsibly.
|
|
13
|
+
|
|
14
|
+
**Do NOT open a public GitHub issue for security vulnerabilities.**
|
|
15
|
+
|
|
16
|
+
Instead, please use one of these methods:
|
|
17
|
+
|
|
18
|
+
1. **GitHub Security Advisories** (preferred): Navigate to the repository's "Security" tab and click "Report a vulnerability"
|
|
19
|
+
2. **Email**: Contact the maintainers directly
|
|
20
|
+
|
|
21
|
+
### What to Include
|
|
22
|
+
|
|
23
|
+
- Description of the vulnerability
|
|
24
|
+
- Steps to reproduce
|
|
25
|
+
- Potential impact
|
|
26
|
+
- Suggested fix (if any)
|
|
27
|
+
|
|
28
|
+
### Response Timeline
|
|
29
|
+
|
|
30
|
+
- **Acknowledgment**: Within 48 hours
|
|
31
|
+
- **Initial assessment**: Within 1 week
|
|
32
|
+
- **Fix or mitigation**: Depends on severity, but we aim for 30 days for critical issues
|
|
33
|
+
|
|
34
|
+
### Disclosure
|
|
35
|
+
|
|
36
|
+
We follow a coordinated disclosure process. Please allow us reasonable time to address the issue before making it public.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Test and lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ master ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ master ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: ['3.10', '3.11', '3.12', '3.13']
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v3
|
|
18
|
+
|
|
19
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
20
|
+
uses: actions/setup-python@v3
|
|
21
|
+
with:
|
|
22
|
+
python-version: ${{ matrix.python-version }}
|
|
23
|
+
|
|
24
|
+
- name: Install uv
|
|
25
|
+
run: |
|
|
26
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
27
|
+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
28
|
+
|
|
29
|
+
- name: Cache virtual environment
|
|
30
|
+
uses: actions/cache@v3
|
|
31
|
+
with:
|
|
32
|
+
path: .venv
|
|
33
|
+
key: venv-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
|
|
34
|
+
restore-keys: |
|
|
35
|
+
venv-${{ matrix.python-version }}-
|
|
36
|
+
|
|
37
|
+
- name: Set up uv venv and install dependencies
|
|
38
|
+
run: |
|
|
39
|
+
uv venv
|
|
40
|
+
source .venv/bin/activate
|
|
41
|
+
uv pip install ruff pytest
|
|
42
|
+
uv pip install -e .
|
|
43
|
+
|
|
44
|
+
- name: Lint with ruff
|
|
45
|
+
run: |
|
|
46
|
+
source .venv/bin/activate
|
|
47
|
+
ruff check nxcypher
|
|
48
|
+
|
|
49
|
+
- name: Test with pytest
|
|
50
|
+
run: |
|
|
51
|
+
source .venv/bin/activate
|
|
52
|
+
pytest nxcypher/ -v
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
|
|
2
|
+
# Created by https://www.toptal.com/developers/gitignore/api/macos,linux,python,vscode
|
|
3
|
+
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,linux,python,vscode
|
|
4
|
+
|
|
5
|
+
### Linux ###
|
|
6
|
+
*~
|
|
7
|
+
|
|
8
|
+
# temporary files which can be created if a process still has a handle open of a deleted file
|
|
9
|
+
.fuse_hidden*
|
|
10
|
+
|
|
11
|
+
# KDE directory preferences
|
|
12
|
+
.directory
|
|
13
|
+
|
|
14
|
+
# Linux trash folder which might appear on any partition or disk
|
|
15
|
+
.Trash-*
|
|
16
|
+
|
|
17
|
+
# .nfs files are created when an open file is removed but is still being accessed
|
|
18
|
+
.nfs*
|
|
19
|
+
|
|
20
|
+
### macOS ###
|
|
21
|
+
# General
|
|
22
|
+
.DS_Store
|
|
23
|
+
.AppleDouble
|
|
24
|
+
.LSOverride
|
|
25
|
+
|
|
26
|
+
# Icon must end with two \r
|
|
27
|
+
Icon
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# Thumbnails
|
|
31
|
+
._*
|
|
32
|
+
|
|
33
|
+
# Files that might appear in the root of a volume
|
|
34
|
+
.DocumentRevisions-V100
|
|
35
|
+
.fseventsd
|
|
36
|
+
.Spotlight-V100
|
|
37
|
+
.TemporaryItems
|
|
38
|
+
.Trashes
|
|
39
|
+
.VolumeIcon.icns
|
|
40
|
+
.com.apple.timemachine.donotpresent
|
|
41
|
+
|
|
42
|
+
# Directories potentially created on remote AFP share
|
|
43
|
+
.AppleDB
|
|
44
|
+
.AppleDesktop
|
|
45
|
+
Network Trash Folder
|
|
46
|
+
Temporary Items
|
|
47
|
+
.apdisk
|
|
48
|
+
|
|
49
|
+
### Python ###
|
|
50
|
+
# Byte-compiled / optimized / DLL files
|
|
51
|
+
__pycache__/
|
|
52
|
+
*.py[cod]
|
|
53
|
+
*$py.class
|
|
54
|
+
|
|
55
|
+
# C extensions
|
|
56
|
+
*.so
|
|
57
|
+
|
|
58
|
+
# Distribution / packaging
|
|
59
|
+
.Python
|
|
60
|
+
build/
|
|
61
|
+
develop-eggs/
|
|
62
|
+
dist/
|
|
63
|
+
downloads/
|
|
64
|
+
eggs/
|
|
65
|
+
.eggs/
|
|
66
|
+
lib/
|
|
67
|
+
lib64/
|
|
68
|
+
parts/
|
|
69
|
+
sdist/
|
|
70
|
+
var/
|
|
71
|
+
wheels/
|
|
72
|
+
pip-wheel-metadata/
|
|
73
|
+
share/python-wheels/
|
|
74
|
+
*.egg-info/
|
|
75
|
+
.installed.cfg
|
|
76
|
+
*.egg
|
|
77
|
+
MANIFEST
|
|
78
|
+
|
|
79
|
+
# PyInstaller
|
|
80
|
+
# Usually these files are written by a python script from a template
|
|
81
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
82
|
+
*.manifest
|
|
83
|
+
*.spec
|
|
84
|
+
|
|
85
|
+
# Installer logs
|
|
86
|
+
pip-log.txt
|
|
87
|
+
pip-delete-this-directory.txt
|
|
88
|
+
|
|
89
|
+
# Unit test / coverage reports
|
|
90
|
+
htmlcov/
|
|
91
|
+
.tox/
|
|
92
|
+
.nox/
|
|
93
|
+
.coverage
|
|
94
|
+
.coverage.*
|
|
95
|
+
.cache
|
|
96
|
+
nosetests.xml
|
|
97
|
+
coverage.xml
|
|
98
|
+
*.cover
|
|
99
|
+
*.py,cover
|
|
100
|
+
.hypothesis/
|
|
101
|
+
.pytest_cache/
|
|
102
|
+
pytestdebug.log
|
|
103
|
+
|
|
104
|
+
# Translations
|
|
105
|
+
*.mo
|
|
106
|
+
*.pot
|
|
107
|
+
|
|
108
|
+
# Django stuff:
|
|
109
|
+
*.log
|
|
110
|
+
local_settings.py
|
|
111
|
+
db.sqlite3
|
|
112
|
+
db.sqlite3-journal
|
|
113
|
+
|
|
114
|
+
# Flask stuff:
|
|
115
|
+
instance/
|
|
116
|
+
.webassets-cache
|
|
117
|
+
|
|
118
|
+
# Scrapy stuff:
|
|
119
|
+
.scrapy
|
|
120
|
+
|
|
121
|
+
# Sphinx documentation
|
|
122
|
+
docs/_build/
|
|
123
|
+
doc/_build/
|
|
124
|
+
|
|
125
|
+
# PyBuilder
|
|
126
|
+
target/
|
|
127
|
+
|
|
128
|
+
# Jupyter Notebook
|
|
129
|
+
.ipynb_checkpoints
|
|
130
|
+
|
|
131
|
+
# IPython
|
|
132
|
+
profile_default/
|
|
133
|
+
ipython_config.py
|
|
134
|
+
|
|
135
|
+
# pyenv
|
|
136
|
+
.python-version
|
|
137
|
+
|
|
138
|
+
# pipenv
|
|
139
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
140
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
141
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
142
|
+
# install all needed dependencies.
|
|
143
|
+
#Pipfile.lock
|
|
144
|
+
|
|
145
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
146
|
+
__pypackages__/
|
|
147
|
+
|
|
148
|
+
# Celery stuff
|
|
149
|
+
celerybeat-schedule
|
|
150
|
+
celerybeat.pid
|
|
151
|
+
|
|
152
|
+
# SageMath parsed files
|
|
153
|
+
*.sage.py
|
|
154
|
+
|
|
155
|
+
# Environments
|
|
156
|
+
.env
|
|
157
|
+
.venv
|
|
158
|
+
env/
|
|
159
|
+
venv/
|
|
160
|
+
ENV/
|
|
161
|
+
env.bak/
|
|
162
|
+
venv.bak/
|
|
163
|
+
pythonenv*
|
|
164
|
+
|
|
165
|
+
# Spyder project settings
|
|
166
|
+
.spyderproject
|
|
167
|
+
.spyproject
|
|
168
|
+
|
|
169
|
+
# Rope project settings
|
|
170
|
+
.ropeproject
|
|
171
|
+
|
|
172
|
+
# mkdocs documentation
|
|
173
|
+
/site
|
|
174
|
+
|
|
175
|
+
# mypy
|
|
176
|
+
.mypy_cache/
|
|
177
|
+
.dmypy.json
|
|
178
|
+
dmypy.json
|
|
179
|
+
|
|
180
|
+
# Pyre type checker
|
|
181
|
+
.pyre/
|
|
182
|
+
|
|
183
|
+
# pytype static type analyzer
|
|
184
|
+
.pytype/
|
|
185
|
+
|
|
186
|
+
# profiling data
|
|
187
|
+
.prof
|
|
188
|
+
|
|
189
|
+
### vscode ###
|
|
190
|
+
.vscode/*
|
|
191
|
+
!.vscode/settings.json
|
|
192
|
+
!.vscode/tasks.json
|
|
193
|
+
!.vscode/launch.json
|
|
194
|
+
!.vscode/extensions.json
|
|
195
|
+
*.code-workspace
|
|
196
|
+
|
|
197
|
+
# Claude Code
|
|
198
|
+
.claude/
|
|
199
|
+
|
|
200
|
+
# End of https://www.toptal.com/developers/gitignore/api/macos,linux,python,vscode
|
|
201
|
+
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# CHANGELOG
|
|
2
|
+
|
|
3
|
+
> Note: Versions prior to 1.0.0-nxcypher are from the original
|
|
4
|
+
> [GrandCypher](https://github.com/aplbrain/grand-cypher) project.
|
|
5
|
+
|
|
6
|
+
### **1.0.0-nxcypher** (February 2026)
|
|
7
|
+
|
|
8
|
+
#### nxCypher Fork
|
|
9
|
+
|
|
10
|
+
- Renamed project from GrandCypher to nxCypher
|
|
11
|
+
- `COUNT(*)` aggregate support
|
|
12
|
+
- `DISTINCT` inside aggregate functions (`COUNT(DISTINCT x)`, `COLLECT(DISTINCT x)`, etc.)
|
|
13
|
+
- `OPTIONAL MATCH` clause
|
|
14
|
+
- `WITH` clause
|
|
15
|
+
- `UNWIND` clause
|
|
16
|
+
- `MERGE` clause with `ON CREATE` / `ON MATCH`
|
|
17
|
+
- `REMOVE` clause
|
|
18
|
+
- `UNION` / `UNION ALL`
|
|
19
|
+
- `CASE` expressions (searched and simple)
|
|
20
|
+
- List comprehensions
|
|
21
|
+
- String functions (`toLower`, `toUpper`, `trim`)
|
|
22
|
+
- List functions (`size`, `head`, `tail`)
|
|
23
|
+
- Type functions (`type`, `labels`, `keys`)
|
|
24
|
+
- Graph mutations (`CREATE`, `SET`, `DELETE`, `DETACH DELETE`)
|
|
25
|
+
- Negated edges (`WHERE NOT (a)-->(b)`)
|
|
26
|
+
- `COLLECT()` aggregation
|
|
27
|
+
- Knowledge base loader (`kb_loader.py`)
|
|
28
|
+
- Apache 2.0 compliance files (NOTICE, DCO, governance)
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
### **1.0.1** (September 23, 2025)
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
- Support for `|` operator in node labels (#79, thanks @ericnwrites!)
|
|
37
|
+
|
|
38
|
+
### **1.0.0** (May 23, 2025)
|
|
39
|
+
|
|
40
|
+
#### Breaking Changes
|
|
41
|
+
|
|
42
|
+
- The `RETURN` clause on nodes now returns a list of dictionaries instead of a list of IDs. This is compatible with the actual Cypher spec, but breaks compatibility with the previous version. For more information, see #73 and #57.
|
|
43
|
+
- Migrate to `uv` for package management (#74)
|
|
44
|
+
|
|
45
|
+
### **0.14.0** (March 18 2025)
|
|
46
|
+
|
|
47
|
+
#### Features
|
|
48
|
+
|
|
49
|
+
- Support for `hints` in the `run` method (#67)
|
|
50
|
+
|
|
51
|
+
### **0.13.0** (February 17 2025)
|
|
52
|
+
|
|
53
|
+
#### Housekeeping
|
|
54
|
+
|
|
55
|
+
- Remove EOL Python 3.7 and 3.8 from CI, and adds 3.12 and 3.13 (#66, thanks @davidmezzetti!)
|
|
56
|
+
|
|
57
|
+
#### Features
|
|
58
|
+
|
|
59
|
+
- Support for `IN` clause (#66, thanks @davidmezzetti!)
|
|
60
|
+
|
|
61
|
+
#### Fixes
|
|
62
|
+
|
|
63
|
+
- Fix regression in `null` / `true` / `false` (#66, thanks @davidmezzetti!)
|
|
64
|
+
|
|
65
|
+
### **0.12.0** (January 10 2025)
|
|
66
|
+
|
|
67
|
+
#### Housekeeping
|
|
68
|
+
|
|
69
|
+
- Switch to maintained `lark` parser (#60, thanks @ntjess!)
|
|
70
|
+
|
|
71
|
+
### **0.11.0** (December 4 2024)
|
|
72
|
+
|
|
73
|
+
#### Features
|
|
74
|
+
|
|
75
|
+
- Support multidigraph/digraph without up-conversion (#55, thanks @jackboyla!)
|
|
76
|
+
|
|
77
|
+
### **0.10.0** (October 18 2024)
|
|
78
|
+
|
|
79
|
+
> Bugfix for searching multigraphs, and other improvements for multigraphs.
|
|
80
|
+
|
|
81
|
+
#### Features
|
|
82
|
+
|
|
83
|
+
- Aliasing (`RETURN SUM(r.value) AS myvalue`) (#46, thanks @jackboyla!)
|
|
84
|
+
|
|
85
|
+
#### Fixes
|
|
86
|
+
|
|
87
|
+
- Fix bug in searching multigraphs where unwanted edges between returned nodes were returned (#48, thanks @jackboyla!)
|
|
88
|
+
- Unify digraph and multigraph implementations (#46, thanks @jackboyla!)
|
|
89
|
+
|
|
90
|
+
### **0.9.0** (June 11 2024)
|
|
91
|
+
|
|
92
|
+
> Support for aggregate functions like `COUNT`, `SUM`, `MIN`, `MAX`, and `AVG`.
|
|
93
|
+
|
|
94
|
+
#### Features
|
|
95
|
+
|
|
96
|
+
- Support for aggregate functions like `COUNT`, `SUM`, `MIN`, `MAX`, and `AVG` (#45, thanks @jackboyla!)
|
|
97
|
+
- Logical `OR` support in relationship matches (#44, thanks @jackboyla!)
|
|
98
|
+
|
|
99
|
+
#### Testing
|
|
100
|
+
|
|
101
|
+
- Combine tests for digraphs and multidigraphs (#43, thanks @jackboyla!)
|
|
102
|
+
|
|
103
|
+
### **0.8.0** (May 14 2024)
|
|
104
|
+
|
|
105
|
+
> Support for MultiDiGraphs.
|
|
106
|
+
|
|
107
|
+
#### Features
|
|
108
|
+
|
|
109
|
+
- Support for MultiDiGraphs (#42, thanks @jackboyla!)
|
|
110
|
+
|
|
111
|
+
### **0.7.0** (May 4 2024)
|
|
112
|
+
|
|
113
|
+
> Support for `ORDER BY` and `DISTINCT`
|
|
114
|
+
|
|
115
|
+
#### Features
|
|
116
|
+
|
|
117
|
+
- Support for `ORDER BY` in queries, including `ASC` and `DESC`, and chaining multiple sorts (#41, thanks @jackboyla!)
|
|
118
|
+
- Support for `DISTINCT` in queries (#40, thanks @jackboyla!)
|
|
119
|
+
|
|
120
|
+
#### Housekeeping
|
|
121
|
+
|
|
122
|
+
- Refactor `return` for readability (#41, thanks @jackboyla!)
|
|
123
|
+
|
|
124
|
+
### **0.6.0** (February 15 2024)
|
|
125
|
+
|
|
126
|
+
> New path group operator
|
|
127
|
+
|
|
128
|
+
#### Features
|
|
129
|
+
|
|
130
|
+
- Support for path group operators (#37)
|
|
131
|
+
|
|
132
|
+
### **0.5.0** (February 13 2024)
|
|
133
|
+
|
|
134
|
+
> Lots of language support for new query operators.
|
|
135
|
+
|
|
136
|
+
#### Features
|
|
137
|
+
|
|
138
|
+
- Support for C-style comments in queries with `//` (#31)
|
|
139
|
+
- Support for string operators, like `CONTAINS`, `STARTS WITH`, and `ENDS WITH` (#33)
|
|
140
|
+
- Support for negation of clauses with `NOT` (#33)
|
|
141
|
+
|
|
142
|
+
#### Performance
|
|
143
|
+
|
|
144
|
+
- Huge performance boost for nonexhaustive queries via streaming matches (#34, thanks @davidmezzetti!)
|
|
145
|
+
|
|
146
|
+
#### Housekeeping
|
|
147
|
+
|
|
148
|
+
- Added more recent version of Python (3.9 through 3.11) to CI (#33)
|
|
149
|
+
|
|
150
|
+
### **0.4.0** (October 17 2023)
|
|
151
|
+
|
|
152
|
+
> Many performance updates, language features, and label support.
|
|
153
|
+
|
|
154
|
+
#### Features
|
|
155
|
+
|
|
156
|
+
- Support for multi-hop queries in `MATCH` statements (#24, thanks @khoale88!)
|
|
157
|
+
- Support for single edge and node labels using the `__labels__` magic property (#25, thanks @khoale88!)
|
|
158
|
+
|
|
159
|
+
#### Performance
|
|
160
|
+
|
|
161
|
+
- Performance improvements by @khoale88 that eliminate duplicated entity lookups (#28)
|
|
162
|
+
|
|
163
|
+
### **0.3.0** (December 14 2022)
|
|
164
|
+
|
|
165
|
+
> This version adds support for boolean arithmetic with AND/OR, and other language features.
|
|
166
|
+
|
|
167
|
+
#### Features
|
|
168
|
+
|
|
169
|
+
- Support for boolean arithmetic with AND/OR (#20, thanks @khoale88!)
|
|
170
|
+
- Support for undirected edges (`(A)-[]-(B)`)
|
|
171
|
+
|
|
172
|
+
#### Housekeeping
|
|
173
|
+
|
|
174
|
+
- Add install dependencies to `setup.py`
|
|
175
|
+
|
|
176
|
+
### **0.2.0** (December 12 2022)
|
|
177
|
+
|
|
178
|
+
> Lots of great new language support by @khoale88, thank you!!
|
|
179
|
+
|
|
180
|
+
#### Performance
|
|
181
|
+
|
|
182
|
+
- Improves performance of the `limit` argument by offloading the result-limiting behavior to `grandiso`.
|
|
183
|
+
|
|
184
|
+
#### Features
|
|
185
|
+
|
|
186
|
+
- Add behavior for disconnected matches of multiple graph components (#17, thanks @khoale88!)
|
|
187
|
+
- Add support for anonymous nodes (#16, thanks @khoale88!)
|
|
188
|
+
- Support chained edges like `(A)-[]->(B)-[]-(C)` (#15, thanks @khoale88!)
|
|
189
|
+
- Support backwards edges (#14, thanks @khoale88!)
|
|
190
|
+
- Support `NULL` and the `is` operator in queriy `WHERE` and property queries (#13, thanks @khoale88!)
|
|
191
|
+
|
|
192
|
+
### **0.1.1** (October 1 2021)
|
|
193
|
+
|
|
194
|
+
> This version adds support for node-only matches.
|
|
195
|
+
|
|
196
|
+
### **0.1.0** (March 23 2021)
|
|
197
|
+
|
|
198
|
+
> This version adds initial support for querying networkx-flavored graphs with the Cypher query language.
|
|
@@ -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 [INSERT CONTACT METHOD]. 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
|
+
|