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.
Files changed (42) hide show
  1. {chemql_python-1.5.1 → chemql_python-1.5.2}/PKG-INFO +16 -7
  2. {chemql_python-1.5.1 → chemql_python-1.5.2}/README.md +15 -6
  3. {chemql_python-1.5.1 → chemql_python-1.5.2}/pyproject.toml +1 -1
  4. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/__init__.py +1 -1
  5. chemql_python-1.5.2/src/chemql/codecql.py +924 -0
  6. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql_python.egg-info/PKG-INFO +16 -7
  7. chemql_python-1.5.2/tests/test_codecql.py +156 -0
  8. chemql_python-1.5.1/src/chemql/codecql.py +0 -477
  9. chemql_python-1.5.1/tests/test_codecql.py +0 -23
  10. {chemql_python-1.5.1 → chemql_python-1.5.2}/LICENSE +0 -0
  11. {chemql_python-1.5.1 → chemql_python-1.5.2}/setup.cfg +0 -0
  12. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/__main__.py +0 -0
  13. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/colors.json +0 -0
  14. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/BondEnergies.json +0 -0
  15. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/MoleculeBonds.json +0 -0
  16. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/Molecules.json +0 -0
  17. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/PeriodicTableJSON.json +0 -0
  18. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/Reactions.json +0 -0
  19. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/THIRD_PARTY_LICENSES/PeriodicTableJSON.txt +0 -0
  20. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/data/THIRD_PARTY_LICENSES/RHEA.txt +0 -0
  21. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/html/periodic_table.html +0 -0
  22. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/README.md +0 -0
  23. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/collections.cql +0 -0
  24. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/datetime.cql +0 -0
  25. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/decimal.cql +0 -0
  26. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/fractions.cql +0 -0
  27. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/json.cql +0 -0
  28. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/math/statistics.cql +0 -0
  29. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/math.cql +0 -0
  30. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/pathlib.cql +0 -0
  31. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/random.cql +0 -0
  32. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql/stdlib/text.cql +0 -0
  33. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql_python.egg-info/SOURCES.txt +0 -0
  34. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql_python.egg-info/dependency_links.txt +0 -0
  35. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql_python.egg-info/entry_points.txt +0 -0
  36. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql_python.egg-info/requires.txt +0 -0
  37. {chemql_python-1.5.1 → chemql_python-1.5.2}/src/chemql_python.egg-info/top_level.txt +0 -0
  38. {chemql_python-1.5.1 → chemql_python-1.5.2}/tests/test_external_molecule_lookup.py +0 -0
  39. {chemql_python-1.5.1 → chemql_python-1.5.2}/tests/test_public_api.py +0 -0
  40. {chemql_python-1.5.1 → chemql_python-1.5.2}/tests/test_reactions.py +0 -0
  41. {chemql_python-1.5.1 → chemql_python-1.5.2}/tests/test_stdlib.py +0 -0
  42. {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.1
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, undo (`Ctrl+Z`),
155
- redo (`Ctrl+Y`), save (`Ctrl+S`), and quit (`Ctrl+Q`). Its syntax and UI
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, undo (`Ctrl+Z`),
142
- redo (`Ctrl+Y`), save (`Ctrl+S`), and quit (`Ctrl+Q`). Its syntax and UI
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "chemql-python"
7
- version = "1.5.1"
7
+ version = "1.5.2"
8
8
  authors = [
9
9
  { name = "Mohammad Rakibul Islam", email = "rakibulofficial1017@gmail.com" }
10
10
  ]
@@ -64,7 +64,7 @@ __all__ = [
64
64
  "__version__"
65
65
  ]
66
66
 
67
- __version__ = "1.5.1"
67
+ __version__ = "1.5.2"
68
68
 
69
69
  # Persistent preprocessor/function state for the current ChemQL session.
70
70
  DEFINITIONS = {}