chemql-python 1.5.1__tar.gz → 1.5.3__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.3}/PKG-INFO +21 -7
  2. {chemql_python-1.5.1 → chemql_python-1.5.3}/README.md +20 -6
  3. {chemql_python-1.5.1 → chemql_python-1.5.3}/pyproject.toml +1 -1
  4. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/__init__.py +1 -1
  5. chemql_python-1.5.3/src/chemql/codecql.py +947 -0
  6. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql_python.egg-info/PKG-INFO +21 -7
  7. chemql_python-1.5.3/tests/test_codecql.py +192 -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.3}/LICENSE +0 -0
  11. {chemql_python-1.5.1 → chemql_python-1.5.3}/setup.cfg +0 -0
  12. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/__main__.py +0 -0
  13. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/colors.json +0 -0
  14. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/data/BondEnergies.json +0 -0
  15. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/data/MoleculeBonds.json +0 -0
  16. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/data/Molecules.json +0 -0
  17. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/data/PeriodicTableJSON.json +0 -0
  18. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/data/Reactions.json +0 -0
  19. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/data/THIRD_PARTY_LICENSES/PeriodicTableJSON.txt +0 -0
  20. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/data/THIRD_PARTY_LICENSES/RHEA.txt +0 -0
  21. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/html/periodic_table.html +0 -0
  22. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/stdlib/README.md +0 -0
  23. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/stdlib/collections.cql +0 -0
  24. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/stdlib/datetime.cql +0 -0
  25. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/stdlib/decimal.cql +0 -0
  26. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/stdlib/fractions.cql +0 -0
  27. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/stdlib/json.cql +0 -0
  28. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/stdlib/math/statistics.cql +0 -0
  29. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/stdlib/math.cql +0 -0
  30. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/stdlib/pathlib.cql +0 -0
  31. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/stdlib/random.cql +0 -0
  32. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql/stdlib/text.cql +0 -0
  33. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql_python.egg-info/SOURCES.txt +0 -0
  34. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql_python.egg-info/dependency_links.txt +0 -0
  35. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql_python.egg-info/entry_points.txt +0 -0
  36. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql_python.egg-info/requires.txt +0 -0
  37. {chemql_python-1.5.1 → chemql_python-1.5.3}/src/chemql_python.egg-info/top_level.txt +0 -0
  38. {chemql_python-1.5.1 → chemql_python-1.5.3}/tests/test_external_molecule_lookup.py +0 -0
  39. {chemql_python-1.5.1 → chemql_python-1.5.3}/tests/test_public_api.py +0 -0
  40. {chemql_python-1.5.1 → chemql_python-1.5.3}/tests/test_reactions.py +0 -0
  41. {chemql_python-1.5.1 → chemql_python-1.5.3}/tests/test_stdlib.py +0 -0
  42. {chemql_python-1.5.1 → chemql_python-1.5.3}/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.3
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,9 +151,27 @@ 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.
162
+ Use `Ctrl+Up` and `Ctrl+Down` to scroll the viewport while keeping the cursor
163
+ at the same screen position.
164
+
165
+ Press `Ctrl+F` to search; matches highlight as you type. Press Enter or the
166
+ Down Arrow for the next match, Up Arrow for the previous match, and Escape
167
+ to close the search prompt. Searches are literal and case-insensitive by
168
+ default. Prefix a query with `r:` for a case-sensitive regular expression,
169
+ `ri:` for a case-insensitive regular expression, `l:` for case-sensitive
170
+ literal text, or `li:` for case-insensitive literal text. Add `w` to match
171
+ whole words, for example `lwi:cat`.
172
+
173
+ Use `Ctrl+Up` and `Ctrl+Down` to scroll the viewport while keeping the cursor
174
+ at the same screen position.
157
175
 
158
176
  ## Query language
159
177
 
@@ -963,10 +981,6 @@ Supported forms include `dump all|good|bad FILE`,
963
981
  `dump all|good|bad queries FILE`, and `dump all|good|bad results FILE`.
964
982
  `good` and `bad` select successful and failed executions respectively.
965
983
 
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
984
  ## Python API
971
985
 
972
986
  ``` python
@@ -138,9 +138,27 @@ 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.
149
+ Use `Ctrl+Up` and `Ctrl+Down` to scroll the viewport while keeping the cursor
150
+ at the same screen position.
151
+
152
+ Press `Ctrl+F` to search; matches highlight as you type. Press Enter or the
153
+ Down Arrow for the next match, Up Arrow for the previous match, and Escape
154
+ to close the search prompt. Searches are literal and case-insensitive by
155
+ default. Prefix a query with `r:` for a case-sensitive regular expression,
156
+ `ri:` for a case-insensitive regular expression, `l:` for case-sensitive
157
+ literal text, or `li:` for case-insensitive literal text. Add `w` to match
158
+ whole words, for example `lwi:cat`.
159
+
160
+ Use `Ctrl+Up` and `Ctrl+Down` to scroll the viewport while keeping the cursor
161
+ at the same screen position.
144
162
 
145
163
  ## Query language
146
164
 
@@ -950,10 +968,6 @@ Supported forms include `dump all|good|bad FILE`,
950
968
  `dump all|good|bad queries FILE`, and `dump all|good|bad results FILE`.
951
969
  `good` and `bad` select successful and failed executions respectively.
952
970
 
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
971
  ## Python API
958
972
 
959
973
  ``` 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.3"
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.3"
68
68
 
69
69
  # Persistent preprocessor/function state for the current ChemQL session.
70
70
  DEFINITIONS = {}