natlinkcore 5.4.2.dev5__tar.gz → 5.6.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.
- natlinkcore-5.6.0/LICENSE +190 -0
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/PKG-INFO +14 -4
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/pyproject.toml +73 -68
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/readme.md +89 -81
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/DefaultConfig/_config_instructions.py +84 -84
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/DefaultConfig/_information_config.py +28 -28
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/DefaultConfig/natlink.ini +49 -49
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/Index.htm +126 -126
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/_globals.py +99 -99
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/_mouse.py +353 -353
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/_repeatthat.py +67 -67
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/_sample1.py +44 -44
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/_sample2.py +56 -56
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/_sample3.py +60 -60
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/_sample4.py +46 -46
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/_sample5.py +71 -71
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/_sample8.py +127 -127
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/_sample9.py +28 -28
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/_sleeping.py +24 -24
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/excel_sample7.py +86 -86
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/natspeak_sample6.py +54 -54
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/trainuser.py +435 -435
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/transcribe.py +212 -212
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/wiki.css +1202 -1202
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/windict.py +298 -298
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/winspch.py +262 -262
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/winword_styles_sample.py +110 -110
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/OriginalSampleMacros/wordpad.py +250 -250
- natlinkcore-5.6.0/src/natlinkcore/SampleMacros/__init__.py +2 -0
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/_debug_natlink.py +79 -79
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/_sample7.py +45 -45
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/_sample_activatedeactivate.py +142 -142
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/_sample_callback.py +51 -51
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/_sample_directory_information.py +43 -43
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/_sample_move_natlinktimer.py +234 -234
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/_sample_natlinkstatus.py +84 -84
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/_sample_runmimic.py +59 -59
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/SampleMacros/_samplehypothesis.py +46 -46
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/__init__.py +30 -30
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/_natlink_core.pyi +217 -217
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/callbackhandler.py +74 -74
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/config.py +306 -250
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/configure/README.md +33 -33
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/configure/foo.txt +5 -5
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/configure/list of functions.txt +34 -34
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/configure/loggert.py +14 -14
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/configure/natlink_extensions.py +28 -28
- natlinkcore-5.6.0/src/natlinkcore/configure/natlink_extract_ini_value.py +50 -0
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/configure/natlinkconfig_cli.py +671 -500
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/configure/natlinkconfig_gui.py +255 -233
- natlinkcore-5.6.0/src/natlinkcore/configure/natlinkconfigfunctions.py +1254 -0
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/gramparser.py +867 -867
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/loader.py +785 -767
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/natlink.pyi +217 -217
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/natlinkpydebug.py +86 -86
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/natlinkstatus.py +931 -925
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/natlinktimer.py +393 -393
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/natlinkutils.py +1372 -1367
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/nsformat.py +499 -499
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/readwritefile.py +237 -208
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/redirect_output.py +105 -105
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/singleton.py +50 -50
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/tkinter_dialogs.py +85 -85
- natlinkcore-5.4.2.dev5/src/natlinkcore/SampleMacros/__init__.py +0 -2
- natlinkcore-5.4.2.dev5/src/natlinkcore/configure/natlinkconfigfunctions.py +0 -790
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/configure/__init__.py +0 -0
- {natlinkcore-5.4.2.dev5 → natlinkcore-5.6.0}/src/natlinkcore/py.typed +0 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
NatLink
|
|
2
|
+
(c) Copyright 1997-1999 by Joel Gould.
|
|
3
|
+
Portions (c) Copyright 1997-1999 by Dragon Systems,
|
|
4
|
+
Inc. All Rights Reserved. Permission to use, copy, modify and
|
|
5
|
+
distribute this software (except for the files noted below) and
|
|
6
|
+
documentation for any purpose and without fee is hereby granted,
|
|
7
|
+
provided that this copyright notice appear in all copies and
|
|
8
|
+
that both the copyright notice and this permission notice appear
|
|
9
|
+
in supporting documentation, and that the name Joel Gould not be
|
|
10
|
+
used in advertising or publicity pertaining to distribution of
|
|
11
|
+
the software without specific, written permission.
|
|
12
|
+
|
|
13
|
+
The following files are NOT covered by the previous previous
|
|
14
|
+
paragraph: NatlinkSource\speech.h and
|
|
15
|
+
NatlinkSource\dspeech.h. These files may not be redistributed
|
|
16
|
+
although they can be freely downloaded from
|
|
17
|
+
http://www.synapseadaptive.com/joel/PythonMacroSystem.html and
|
|
18
|
+
used on one machine.
|
|
19
|
+
|
|
20
|
+
Joel Gould disclaim all warranties with regard to this software,
|
|
21
|
+
including all implied warranties of merchantability and fitness,
|
|
22
|
+
in no event shall Joel Gould be liable for any special, indirect
|
|
23
|
+
or consequential damages or any damages whatsoever resulting
|
|
24
|
+
from the loss of use, data or profits whether in an action of
|
|
25
|
+
contract, negligence or tortious action, arising out of
|
|
26
|
+
connection with the use or performance of this software.
|
|
27
|
+
Possession of this software does NOT grant the possessor any
|
|
28
|
+
license to Dragon NaturallySpeaking or any other Dragon Systems
|
|
29
|
+
product, except where license to Dragon NaturallySpeaking or any
|
|
30
|
+
other Dragon Systems products is purchased or otherwise obtained
|
|
31
|
+
separately. This copyright only applies to NatLink, including
|
|
32
|
+
source and object code and not to Dragon NaturallySpeaking or
|
|
33
|
+
any other Dragon Systems product. Software on this web site is
|
|
34
|
+
not available from Dragon Systems, nor is Dragon Systems
|
|
35
|
+
formally associated with this software in any way.
|
|
36
|
+
|
|
37
|
+
-----------------------------------
|
|
38
|
+
|
|
39
|
+
Vocola
|
|
40
|
+
Copyright (c) 2002-2012 by Rick Mohr
|
|
41
|
+
|
|
42
|
+
Portions Copyright (c) 2012-15 by Hewlett-Packard Development
|
|
43
|
+
Company, L.P.
|
|
44
|
+
|
|
45
|
+
Permission is hereby granted, free of charge, to any person
|
|
46
|
+
obtaining a copy of this software and associated documentation
|
|
47
|
+
files (the "Software"), to deal in the Software without
|
|
48
|
+
restriction, including without limitation the rights to use,
|
|
49
|
+
copy, modify, merge, publish, distribute, sublicense, and/or
|
|
50
|
+
sell copies of the Software, and to permit persons to whom the
|
|
51
|
+
Software is furnished to do so, subject to the following
|
|
52
|
+
conditions:
|
|
53
|
+
|
|
54
|
+
The above copyright notice and this permission notice shall be
|
|
55
|
+
included in all copies or substantial portions of the Software.
|
|
56
|
+
|
|
57
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
58
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
59
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
60
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
61
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
62
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
63
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
64
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
65
|
+
|
|
66
|
+
-----------------------------------
|
|
67
|
+
|
|
68
|
+
Configurenatlinkunimacrovocola:
|
|
69
|
+
Copyright (c) 2008 by Quintijn Hoogenboom. It may be
|
|
70
|
+
redistributed in any way as long as this copyright notice
|
|
71
|
+
remains.
|
|
72
|
+
|
|
73
|
+
-----------------------------------
|
|
74
|
+
|
|
75
|
+
Unimacro (c) 2002-2011 Quintijn Hoogenboom, Ben Staniford, Bart Jan
|
|
76
|
+
van Os 2011 Frank Olaf Sem-Jacobsen
|
|
77
|
+
|
|
78
|
+
"unimacro" is free software; you can redistribute it
|
|
79
|
+
and/or modify it under the terms of the GNU General
|
|
80
|
+
Public License, see: http://www.gnu.org/licenses/gpl.txt
|
|
81
|
+
|
|
82
|
+
"unimacro" is distributed in the hope that it will be
|
|
83
|
+
useful, but WITHOUT ANY WARRANTY; See the GNU General
|
|
84
|
+
Public License details.
|
|
85
|
+
|
|
86
|
+
"unimacro" makes use of another SourceForge project "natlink",
|
|
87
|
+
which has the copyright notice shown above.
|
|
88
|
+
|
|
89
|
+
-----------------------------------
|
|
90
|
+
|
|
91
|
+
ConfigureNatLink.exe NLVCSetup.msi MessageWindow.dll
|
|
92
|
+
Copyright (c) 2004-2005 Applied Recognition Inc. All rights
|
|
93
|
+
reserved.
|
|
94
|
+
|
|
95
|
+
You may freely obtain this software from
|
|
96
|
+
http://speechwiki.org/NL.HomePage
|
|
97
|
+
|
|
98
|
+
Unauthorized redistribution, reverse engineering, and
|
|
99
|
+
decompilation is prohibited.
|
|
100
|
+
|
|
101
|
+
The Software comes "as is", with no warranties. None
|
|
102
|
+
whatsoever. This means no express, implied or statutory
|
|
103
|
+
warranty, including without limitation, warranties of
|
|
104
|
+
merchantability or fitness for a particular purpose or any
|
|
105
|
+
warranty of title or non-infringement.
|
|
106
|
+
|
|
107
|
+
Neither Applied Recognition Inc. nor any contributor to the
|
|
108
|
+
Software will be liable for any of those types of damages known
|
|
109
|
+
as indirect, special, consequential, or incidental related to
|
|
110
|
+
the Software or this license, to the maximum extent the law
|
|
111
|
+
permits, no matter what legal theory it's based on.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
-----------------------------------
|
|
115
|
+
|
|
116
|
+
Shared Source License for Microsoft Visual Basic Power Pack for
|
|
117
|
+
Microsoft Visual Basic 2003
|
|
118
|
+
|
|
119
|
+
This license governs use of the accompanying software
|
|
120
|
+
(`Software'), and your use of the Software constitutes acceptance
|
|
121
|
+
of this license.
|
|
122
|
+
|
|
123
|
+
You may use the Software for any commercial or noncommercial purpose,
|
|
124
|
+
including distributing derivative works.
|
|
125
|
+
|
|
126
|
+
In return, we simply require that you agree:
|
|
127
|
+
|
|
128
|
+
1. Not to remove any copyright or other notices from the Software.
|
|
129
|
+
|
|
130
|
+
2. That if you distribute the Software in source code form you do so
|
|
131
|
+
only under this license (i.e. you must include a complete copy of
|
|
132
|
+
this license with your distribution), and if you distribute the
|
|
133
|
+
Software solely in object form you only do so under a license that
|
|
134
|
+
complies with this license.
|
|
135
|
+
|
|
136
|
+
3. That the Software comes "as is", with no warranties. None
|
|
137
|
+
whatsoever. This means no express, implied or statutory warranty,
|
|
138
|
+
including without limitation, warranties of merchantability or
|
|
139
|
+
fitness for a particular purpose or any warranty of title or
|
|
140
|
+
non-infringement. Also, you must pass this disclaimer on whenever you
|
|
141
|
+
distribute the Software or derivative works.
|
|
142
|
+
|
|
143
|
+
4. That neither Microsoft nor any contributor to the Software will be
|
|
144
|
+
liable for any of those types of damages known as indirect, special,
|
|
145
|
+
consequential, or incidental related to the Software or this license,
|
|
146
|
+
to the maximum extent the law permits, no matter what legal theory
|
|
147
|
+
it's based on. Also, you must pass this limitation of liability on
|
|
148
|
+
whenever you distribute the Software or derivative works.
|
|
149
|
+
|
|
150
|
+
5. That if you sue anyone over patents that you think may apply to the
|
|
151
|
+
Software for a person's use of the Software, your license to the
|
|
152
|
+
Software ends automatically.
|
|
153
|
+
|
|
154
|
+
6. That the patent rights, if any, granted in this license only apply to
|
|
155
|
+
the Software, not to any derivative works you make.
|
|
156
|
+
|
|
157
|
+
7. That the Software is subject to U.S. export jurisdiction at the time
|
|
158
|
+
it is licensed to you, and it may be subject to additional export or
|
|
159
|
+
import laws in other places. You agree to comply with all such laws
|
|
160
|
+
and regulations that may apply to the Software after delivery of the
|
|
161
|
+
software to you.
|
|
162
|
+
|
|
163
|
+
8. That if you are an agency of the U.S. Government, (i) Software
|
|
164
|
+
provided pursuant to a solicitation issued on or after December 1,
|
|
165
|
+
1995, is provided with the commercial license rights set forth in
|
|
166
|
+
this license, and (ii) Software provided pursuant to a solicitation
|
|
167
|
+
issued prior to December 1, 1995, is provided with `Restricted
|
|
168
|
+
Rights' as set forth in FAR, 48 C.F.R. 52.227-14 (June 1987) or DFAR,
|
|
169
|
+
48 C.F.R. 252.227-7013 (Oct 1988), as applicable.
|
|
170
|
+
|
|
171
|
+
9. That your rights under this License end automatically if you breach
|
|
172
|
+
it in any way.
|
|
173
|
+
|
|
174
|
+
10. That all rights not expressly granted to you in this license are
|
|
175
|
+
reserved.
|
|
176
|
+
|
|
177
|
+
---------------------------------------
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
XPCommonControls.dll
|
|
181
|
+
From http://www.steepvalley.net
|
|
182
|
+
|
|
183
|
+
The controls plus the source code are completely free to use. There are
|
|
184
|
+
no cost at all attached to this project.
|
|
185
|
+
|
|
186
|
+
This means also that I cannot take any responsibility for bugs and
|
|
187
|
+
errors resulting from this code.
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
----------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: natlinkcore
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.6.0
|
|
4
4
|
Summary: Python portion of Natlink, a compatibility module for Dragon Naturally Speaking
|
|
5
5
|
Author-email: "Quintijn Hoogenboom (maintainer)" <q.hoogenboom@antenna.nl>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -13,11 +13,13 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
13
13
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
14
14
|
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
|
|
15
15
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
16
|
+
License-File: LICENSE
|
|
16
17
|
Requires-Dist: FreeSimpleGUI>=5.1.0
|
|
17
18
|
Requires-Dist: pydebugstring >= 1.0.0.1
|
|
18
|
-
Requires-Dist: dtactions
|
|
19
|
+
Requires-Dist: dtactions >= 1.7.0,<2
|
|
20
|
+
Requires-Dist: pyuac
|
|
19
21
|
Requires-Dist: platformdirs >= 4.2.0
|
|
20
|
-
Requires-Dist: natlink
|
|
22
|
+
Requires-Dist: natlink >= 5.6.0,<6
|
|
21
23
|
Requires-Dist: pyenvutils ; extra == "dev"
|
|
22
24
|
Requires-Dist: entry-point-inspector ; extra == "dev"
|
|
23
25
|
Requires-Dist: build ; extra == "dev"
|
|
@@ -39,6 +41,14 @@ You can install from [The Python Package Index (PyPI)](https://pypi.org/) with
|
|
|
39
41
|
|
|
40
42
|
Note that natlinkcore will not install if you have not installed Natlink first. Natlink is installed through running an installer.
|
|
41
43
|
|
|
44
|
+
This will install utilties you can run from a shell prompt: natlinkconfig_cli, natlinkconfig_gui, and natlink_extract_ini_value.
|
|
45
|
+
|
|
46
|
+
You can use natlink_extract_ini_value to grab a directory or setting out of natlink.ini for copying and pasting or a shell script.
|
|
47
|
+
```
|
|
48
|
+
PS C:\Users\doug\code\dt\natlinkcore> natlink_extract_ini_value -s directories -k dragonflyuserdirectory
|
|
49
|
+
C:\Users\doug\Documents
|
|
50
|
+
```
|
|
51
|
+
|
|
42
52
|
|
|
43
53
|
## Test Framework
|
|
44
54
|
Tests use the [pytest](https://docs.pytest.org/) framework.
|
|
@@ -1,68 +1,73 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["flit_core >=3.2,<4", "pytest>=7.1.2"]
|
|
3
|
-
build-backend = "flit_core.buildapi"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "natlinkcore"
|
|
7
|
-
authors = [{name = "Quintijn Hoogenboom (maintainer)", email = "q.hoogenboom@antenna.nl"}]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
]
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
[
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
[
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
[project.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["flit_core >=3.2,<4", "pytest>=7.1.2"]
|
|
3
|
+
build-backend = "flit_core.buildapi"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "natlinkcore"
|
|
7
|
+
authors = [{name = "Quintijn Hoogenboom (maintainer)", email = "q.hoogenboom@antenna.nl"}]
|
|
8
|
+
|
|
9
|
+
version="5.6.0"
|
|
10
|
+
|
|
11
|
+
dynamic = [ "description"]
|
|
12
|
+
requires-python = ">=3.10"
|
|
13
|
+
readme = "readme.md"
|
|
14
|
+
dependencies= [
|
|
15
|
+
|
|
16
|
+
"FreeSimpleGUI>=5.1.0",
|
|
17
|
+
"pydebugstring >= 1.0.0.1",
|
|
18
|
+
"dtactions >= 1.7.0,<2",
|
|
19
|
+
"pyuac",
|
|
20
|
+
"platformdirs >= 4.2.0",
|
|
21
|
+
"natlink >= 5.6.0,<6"
|
|
22
|
+
# "natlink >= 5.5.8.dev2"
|
|
23
|
+
]
|
|
24
|
+
classifiers=[
|
|
25
|
+
"Development Status :: 4 - Beta",
|
|
26
|
+
"Environment :: Win32 (MS Windows)",
|
|
27
|
+
"Intended Audience :: Developers",
|
|
28
|
+
"Operating System :: Microsoft :: Windows",
|
|
29
|
+
"Programming Language :: Python :: 3.10",
|
|
30
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
31
|
+
"Topic :: Multimedia :: Sound/Audio :: Speech",
|
|
32
|
+
"Topic :: Software Development :: Libraries :: Python Modules"
|
|
33
|
+
]
|
|
34
|
+
[project.optional-dependencies]
|
|
35
|
+
test = [
|
|
36
|
+
"pytest >=7.1.2",
|
|
37
|
+
]
|
|
38
|
+
dev = [
|
|
39
|
+
"pyenvutils","entry-point-inspector","build"
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
[tool.pytest.ini_options]
|
|
43
|
+
minversion = "7.1.2"
|
|
44
|
+
addopts = "--capture=tee-sys "
|
|
45
|
+
# very important
|
|
46
|
+
#the pythonpath lets pytest load code in your source area
|
|
47
|
+
#in addition to that in site-packages etc.
|
|
48
|
+
#you may want to run your tests without install natlinkcore with flit or pip
|
|
49
|
+
pythonpath = [
|
|
50
|
+
"src",
|
|
51
|
+
"src/natlinkcore",
|
|
52
|
+
"tests",
|
|
53
|
+
]
|
|
54
|
+
testpaths= [
|
|
55
|
+
"tests",
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
[project.scripts]
|
|
59
|
+
natlinkconfig_cli = "natlinkcore.configure.natlinkconfig_cli:main_cli"
|
|
60
|
+
natlink_extensions = "natlinkcore.configure.natlink_extensions:main"
|
|
61
|
+
natlink_extract_ini_value = "natlinkcore.configure.natlink_extract_ini_value:main"
|
|
62
|
+
|
|
63
|
+
[project.gui-scripts]
|
|
64
|
+
natlinkconfig_gui = "natlinkcore.configure.natlinkconfig_gui:main_gui"
|
|
65
|
+
|
|
66
|
+
[project.entry-points."dt.loggers"]
|
|
67
|
+
natlink ="natlinkcore:logname"
|
|
68
|
+
|
|
69
|
+
[project.entry-points."natlink.extensions"]
|
|
70
|
+
natlink_sample_macros = "natlinkcore.SampleMacros:locateme"
|
|
71
|
+
|
|
72
|
+
[project.urls]
|
|
73
|
+
Home = "https://github.com/dictation-toolbox/natlinkcore/"
|
|
@@ -1,81 +1,89 @@
|
|
|
1
|
-
|
|
2
|
-
# Natlinkcore
|
|
3
|
-
|
|
4
|
-
## More Information
|
|
5
|
-
Please refer to the README file in the project repository [https://github.com/dictation-toolbox/natlink](https://github.com/dictation-toolbox/natlink) for more information about natlink.
|
|
6
|
-
|
|
7
|
-
## Installing from PyPi
|
|
8
|
-
You can install from [The Python Package Index (PyPI)](https://pypi.org/) with
|
|
9
|
-
|
|
10
|
-
`py -m pip install natlinkcore`
|
|
11
|
-
|
|
12
|
-
Note that natlinkcore will not install if you have not installed Natlink first. Natlink is installed through running an installer.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
##
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
- 5.4.0
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"natlink ~= 5.5,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
1
|
+
|
|
2
|
+
# Natlinkcore
|
|
3
|
+
|
|
4
|
+
## More Information
|
|
5
|
+
Please refer to the README file in the project repository [https://github.com/dictation-toolbox/natlink](https://github.com/dictation-toolbox/natlink) for more information about natlink.
|
|
6
|
+
|
|
7
|
+
## Installing from PyPi
|
|
8
|
+
You can install from [The Python Package Index (PyPI)](https://pypi.org/) with
|
|
9
|
+
|
|
10
|
+
`py -m pip install natlinkcore`
|
|
11
|
+
|
|
12
|
+
Note that natlinkcore will not install if you have not installed Natlink first. Natlink is installed through running an installer.
|
|
13
|
+
|
|
14
|
+
This will install utilties you can run from a shell prompt: natlinkconfig_cli, natlinkconfig_gui, and natlink_extract_ini_value.
|
|
15
|
+
|
|
16
|
+
You can use natlink_extract_ini_value to grab a directory or setting out of natlink.ini for copying and pasting or a shell script.
|
|
17
|
+
```
|
|
18
|
+
PS C:\Users\doug\code\dt\natlinkcore> natlink_extract_ini_value -s directories -k dragonflyuserdirectory
|
|
19
|
+
C:\Users\doug\Documents
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Test Framework
|
|
24
|
+
Tests use the [pytest](https://docs.pytest.org/) framework.
|
|
25
|
+
For developers, if you are developing on the project, please add tests for any new features or bug
|
|
26
|
+
fixes.
|
|
27
|
+
|
|
28
|
+
Mandy Python IDEs such as [Visual Studio Code](https://code.visualstudio.com/) have build in support for test frameworks and make it easy to run and debug pytest. see [Visual Studio Code for testing](https://code.visualstudio.com/docs/python/testing).
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## Building the Python Package Locally
|
|
32
|
+
|
|
33
|
+
`py -m build` to build the Python package locally.
|
|
34
|
+
|
|
35
|
+
Publishing to PyPi is done through the [trusted publisher mechanism](https://docs.pypi.org/trusted-publishers/using-a-publisher/) when a release is created on github using github actions.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## Version Numbering and Publishing Checklist
|
|
39
|
+
|
|
40
|
+
While you are developing, use a .dev release number. When you are ready for alpha or beta or release candidate, use the appropriate version numbers.
|
|
41
|
+
If you are submitting a pull request, the review should review and adjust the version number.
|
|
42
|
+
The version specificier is in pyroject.toml.
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
The version number progression is explained in [PEP440](https://peps.python.org/pep-0440/#summary-of-permitted-suffixes-and-relative-ordering).
|
|
46
|
+
|
|
47
|
+
Hypothetical Progression of release numbers.
|
|
48
|
+
|
|
49
|
+
Working towards 5.4.0:
|
|
50
|
+
- 5.4.0.dev1
|
|
51
|
+
- 5.4.0.dev2
|
|
52
|
+
- 5.4.0.dev_feature_x
|
|
53
|
+
- 5.4.0a1
|
|
54
|
+
- 5.4.0b1dev1
|
|
55
|
+
- 5.4.0b1
|
|
56
|
+
- 5.4.0rc1
|
|
57
|
+
- 5.4.0rc2
|
|
58
|
+
- 5.4.0
|
|
59
|
+
|
|
60
|
+
Use alpha and beta specifiers (5.4a2, 5.4.b1, etc) to release alphas and betas.
|
|
61
|
+
If you go through a release candidate phase, use 5.4rc1 etc.
|
|
62
|
+
|
|
63
|
+
Non breaking changes, add a micro version number. ie from version 5.4.1 to 5.4.2.
|
|
64
|
+
Breaking changes, add a minor version number.
|
|
65
|
+
|
|
66
|
+
*Before you publish to pypi*:
|
|
67
|
+
- doublecheck the dependancies, especially on natlink. You may want to specify a minimum natlink (i.e. 5.5.3) and
|
|
68
|
+
normally you should also specify that natlink has not had a breaking change by specifying the major and minor version numbers are as expected. Note that this requires a release of natlinkcore if the minor version of natlink changes. At minimum this will require an update to pyproject.toml and a release to pypi, even if no python code has changed.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
This is how the version specifier should look for natlink (subsituting the version numbers appropriate). In this case, we are saying that any natlink 5.5 is required, and that
|
|
73
|
+
we require greater than 5.5.7 as well because we are relying on a non-breaking change introduced in 5.5.7.
|
|
74
|
+
` "natlink ~= 5.5, >= 5.5.7"
|
|
75
|
+
`
|
|
76
|
+
Often, the natlink dependancy should just specify the major and minor version:
|
|
77
|
+
`
|
|
78
|
+
"natlink ~= 5.5"
|
|
79
|
+
`
|
|
80
|
+
|
|
81
|
+
You could have a case where natlinkcore works with natlink 5.5 and 5.6, you could express this in pyproject.toml as
|
|
82
|
+
"natlink ~= 5.5, ~= 5.6".
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## Debugging Instructions
|
|
86
|
+
|
|
87
|
+
Read the detailed developer instructions for setting up the debugger. You can look in this projects tree until
|
|
88
|
+
documentation/developers.rst.
|
|
89
|
+
|