Skip to main content

Python portion of Natlink, a compatibility module for Dragon Naturally Speaking

Project description

Natlinkcore

More Information

Please refer to the README file in the project repository https://github.com/dictation-toolbox/natlink for more information about natlink.

Installing from PyPi

You can install from The Python Package Index (PyPI) with

py -m pip install natlinkcore

Note that natlinkcore will not install if you have not installed Natlink first. Natlink is installed through running an installer.

This will install utilties you can run from a shell prompt: natlinkconfig_cli, natlinkconfig_gui, and natlink_extract_ini_value.

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.

PS C:\Users\doug\code\dt\natlinkcore> natlink_extract_ini_value -s directories -k  dragonflyuserdirectory
C:\Users\doug\Documents

Test Framework

Tests use the pytest framework.
For developers, if you are developing on the project, please add tests for any new features or bug fixes.

Mandy Python IDEs such as Visual Studio Code have build in support for test frameworks and make it easy to run and debug pytest. see Visual Studio Code for testing.

Building the Python Package Locally

py -m build to build the Python package locally.

Publishing to PyPi is done through the trusted publisher mechanism when a release is created on github using github actions.

Version Numbering and Publishing Checklist

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. If you are submitting a pull request, the review should review and adjust the version number.
The version specificier is in pyroject.toml.

The version number progression is explained in PEP440.

Hypothetical Progression of release numbers.

Working towards 5.4.0:

  • 5.4.0.dev1
  • 5.4.0.dev2
  • 5.4.0.dev_feature_x
  • 5.4.0a1
  • 5.4.0b1dev1
  • 5.4.0b1
  • 5.4.0rc1
  • 5.4.0rc2
  • 5.4.0

Use alpha and beta specifiers (5.4a2, 5.4.b1, etc) to release alphas and betas. If you go through a release candidate phase, use 5.4rc1 etc.

Non breaking changes, add a micro version number. ie from version 5.4.1 to 5.4.2. Breaking changes, add a minor version number.

Before you publish to pypi:

  • doublecheck the dependancies, especially on natlink. You may want to specify a minimum natlink (i.e. 5.5.3) and 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.

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 we require greater than 5.5.7 as well because we are relying on a non-breaking change introduced in 5.5.7. "natlink ~= 5.5, >= 5.5.7" Often, the natlink dependancy should just specify the major and minor version: "natlink ~= 5.5"

You could have a case where natlinkcore works with natlink 5.5 and 5.6, you could express this in pyproject.toml as "natlink ~= 5.5, ~= 5.6".

Debugging Instructions

Read the detailed developer instructions for setting up the debugger. You can look in this projects tree until documentation/developers.rst.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

natlinkcore-5.4.3.tar.gz (120.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

natlinkcore-5.4.3-py3-none-any.whl (147.1 kB view details)

Uploaded Python 3

File details

Details for the file natlinkcore-5.4.3.tar.gz.

File metadata

  • Download URL: natlinkcore-5.4.3.tar.gz
  • Upload date:
  • Size: 120.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for natlinkcore-5.4.3.tar.gz
Algorithm Hash digest
SHA256 dc09678ec025084dba965145e637563e3a3e44b508596540eed98bd7aa32a673
MD5 21d44b04c454d3c6d2b00e5a827847db
BLAKE2b-256 a355f52a8073b474f6199422aaadac74997ce509e973ad93bd2fad612153ea71

See more details on using hashes here.

Provenance

The following attestation bundles were made for natlinkcore-5.4.3.tar.gz:

Publisher: python-publish.yml on dictation-toolbox/natlinkcore

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file natlinkcore-5.4.3-py3-none-any.whl.

File metadata

  • Download URL: natlinkcore-5.4.3-py3-none-any.whl
  • Upload date:
  • Size: 147.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for natlinkcore-5.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 03848e8f110ef95607ea820752bb43312f8bad81c38d64d30ed92537d94c4a44
MD5 38940a4ad4ebb0dccf80696370ff8e0c
BLAKE2b-256 1bbc307e38601b6923c9433f5c304ffebe56a393d797671e903118b652978f5b

See more details on using hashes here.

Provenance

The following attestation bundles were made for natlinkcore-5.4.3-py3-none-any.whl:

Publisher: python-publish.yml on dictation-toolbox/natlinkcore

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page