chemql-python 1.5.1__tar.gz → 1.5.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.
- {chemql_python-1.5.1 → chemql_python-1.5.2}/PKG-INFO +16 -7
- {chemql_python-1.5.1 → chemql_python-1.5.2}/README.md +15 -6
- {chemql_python-1.5.1 → chemql_python-1.5.2}/pyproject.toml +1 -1
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/__init__.py +1 -1
- chemql_python-1.5.2/src/chemql/codecql.py +924 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql_python.egg-info/PKG-INFO +16 -7
- chemql_python-1.5.2/tests/test_codecql.py +156 -0
- chemql_python-1.5.1/src/chemql/codecql.py +0 -477
- chemql_python-1.5.1/tests/test_codecql.py +0 -23
- {chemql_python-1.5.1 → chemql_python-1.5.2}/LICENSE +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/setup.cfg +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/__main__.py +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/colors.json +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/BondEnergies.json +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/MoleculeBonds.json +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/Molecules.json +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/PeriodicTableJSON.json +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/Reactions.json +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/THIRD_PARTY_LICENSES/PeriodicTableJSON.txt +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/THIRD_PARTY_LICENSES/RHEA.txt +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/html/periodic_table.html +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/README.md +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/collections.cql +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/datetime.cql +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/decimal.cql +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/fractions.cql +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/json.cql +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/math/statistics.cql +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/math.cql +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/pathlib.cql +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/random.cql +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/text.cql +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql_python.egg-info/SOURCES.txt +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql_python.egg-info/dependency_links.txt +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql_python.egg-info/entry_points.txt +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql_python.egg-info/requires.txt +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql_python.egg-info/top_level.txt +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/tests/test_external_molecule_lookup.py +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/tests/test_public_api.py +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/tests/test_reactions.py +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/tests/test_stdlib.py +0 -0
- {chemql_python-1.5.1 → chemql_python-1.5.2}/tests/test_structured_types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chemql-python
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.2
|
|
4
4
|
Summary: A chemistry-focused query language and REPL
|
|
5
5
|
Author-email: Mohammad Rakibul Islam <rakibulofficial1017@gmail.com>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -151,10 +151,23 @@ Install the package, then open a ChemQL file with the `codecql` command:
|
|
|
151
151
|
codecql script.cql
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
-
The editor supports syntax highlighting, direct text editing,
|
|
155
|
-
|
|
154
|
+
The editor supports syntax highlighting, direct text editing, word movement
|
|
155
|
+
with `Ctrl`/`Alt`+Arrow, selection with `Shift`+Arrow, internal copy/cut/paste
|
|
156
|
+
with `Ctrl+C`/`Ctrl+X`/`Ctrl+V` (copy also writes to the system clipboard
|
|
157
|
+
when a supported clipboard command is available), word deletion with
|
|
158
|
+
`Ctrl+Backspace`/`Ctrl+Delete`, and terminal bracketed paste. It also supports
|
|
159
|
+
undo (`Ctrl+Z`), redo (`Ctrl+Y`), save (`Ctrl+S`), and quit (`Ctrl+Q`).
|
|
160
|
+
Namespace declarations are highlighted and auto-indented. Its syntax and UI
|
|
156
161
|
colors are configurable in the packaged `chemql/colors.json` file.
|
|
157
162
|
|
|
163
|
+
Press `Ctrl+F` to search; matches highlight as you type. Press Enter or the
|
|
164
|
+
Down Arrow for the next match, Up Arrow for the previous match, and Escape
|
|
165
|
+
to close the search prompt. Searches are literal and case-insensitive by
|
|
166
|
+
default. Prefix a query with `r:` for a case-sensitive regular expression,
|
|
167
|
+
`ri:` for a case-insensitive regular expression, `l:` for case-sensitive
|
|
168
|
+
literal text, or `li:` for case-insensitive literal text. Add `w` to match
|
|
169
|
+
whole words, for example `lwi:cat`.
|
|
170
|
+
|
|
158
171
|
## Query language
|
|
159
172
|
|
|
160
173
|
A typical query starts with `search`, a source, optional conditions, and
|
|
@@ -963,10 +976,6 @@ Supported forms include `dump all|good|bad FILE`,
|
|
|
963
976
|
`dump all|good|bad queries FILE`, and `dump all|good|bad results FILE`.
|
|
964
977
|
`good` and `bad` select successful and failed executions respectively.
|
|
965
978
|
|
|
966
|
-
## CLI code editor
|
|
967
|
-
|
|
968
|
-
You can edit code in the terminal using `codecql script.cql` if your script is named `script.cql`
|
|
969
|
-
|
|
970
979
|
## Python API
|
|
971
980
|
|
|
972
981
|
``` python
|
|
@@ -138,10 +138,23 @@ Install the package, then open a ChemQL file with the `codecql` command:
|
|
|
138
138
|
codecql script.cql
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
-
The editor supports syntax highlighting, direct text editing,
|
|
142
|
-
|
|
141
|
+
The editor supports syntax highlighting, direct text editing, word movement
|
|
142
|
+
with `Ctrl`/`Alt`+Arrow, selection with `Shift`+Arrow, internal copy/cut/paste
|
|
143
|
+
with `Ctrl+C`/`Ctrl+X`/`Ctrl+V` (copy also writes to the system clipboard
|
|
144
|
+
when a supported clipboard command is available), word deletion with
|
|
145
|
+
`Ctrl+Backspace`/`Ctrl+Delete`, and terminal bracketed paste. It also supports
|
|
146
|
+
undo (`Ctrl+Z`), redo (`Ctrl+Y`), save (`Ctrl+S`), and quit (`Ctrl+Q`).
|
|
147
|
+
Namespace declarations are highlighted and auto-indented. Its syntax and UI
|
|
143
148
|
colors are configurable in the packaged `chemql/colors.json` file.
|
|
144
149
|
|
|
150
|
+
Press `Ctrl+F` to search; matches highlight as you type. Press Enter or the
|
|
151
|
+
Down Arrow for the next match, Up Arrow for the previous match, and Escape
|
|
152
|
+
to close the search prompt. Searches are literal and case-insensitive by
|
|
153
|
+
default. Prefix a query with `r:` for a case-sensitive regular expression,
|
|
154
|
+
`ri:` for a case-insensitive regular expression, `l:` for case-sensitive
|
|
155
|
+
literal text, or `li:` for case-insensitive literal text. Add `w` to match
|
|
156
|
+
whole words, for example `lwi:cat`.
|
|
157
|
+
|
|
145
158
|
## Query language
|
|
146
159
|
|
|
147
160
|
A typical query starts with `search`, a source, optional conditions, and
|
|
@@ -950,10 +963,6 @@ Supported forms include `dump all|good|bad FILE`,
|
|
|
950
963
|
`dump all|good|bad queries FILE`, and `dump all|good|bad results FILE`.
|
|
951
964
|
`good` and `bad` select successful and failed executions respectively.
|
|
952
965
|
|
|
953
|
-
## CLI code editor
|
|
954
|
-
|
|
955
|
-
You can edit code in the terminal using `codecql script.cql` if your script is named `script.cql`
|
|
956
|
-
|
|
957
966
|
## Python API
|
|
958
967
|
|
|
959
968
|
``` python
|