Skip to main content

dtactions __init__

Project description

dtactions

dtactions is an OpenSource extension module for the speech recognition program Dragon. It is meant to perform actions that are common to other packages like Dragonfly, Unimacro and Vocola.

This document describes how to install dtactions for end users and for developers.

Status

Sucessfully upgraded to Python 3.

Instructions for End Users

If you would like to install dtactions for use, but not as a developer, here are the instructions:

Install Python and Natlink and the packages you would like to use (Dragonfly, Caster, Unimacro, Vocola) as described in the Natlink repository README.

  1. Install dtactions

    It will also pull any prerequisites from the Python Packaging Index.

    In a cmd or powershell window (possibly in elevated mode) run:

    • py -m pip install dtactions

Instructions for Developers

Starting 1.6.5.dev1 ( going to 1.6.5 ASAP) renaming of the unimacro actions part has been done:

  • unimacroutils directory renamed to uniutils
  • unimacro/unimacroactions.py renamed to uniactions/uactions.py
  • unimacroactionsclasses renamed to uniactions/actionsclasses (so directory is renamed and moved, internal use only)

If you are working on dtactions the most convenient setup is an editable install. Your local git repository can be anywhere convenient.

Uninstall the packages you wish to develop. i.e pip if you want to work on dtactions: py -m pip uninstall dtactions and answer yes to all the questions about removing files from your python scripts folder.

Run py -m pip install -e .[dev,test] from the dtactions project root. You can skip [dev,test] after the first install.

Use semantic versioning for version numbers. Usually version numbers indicate dev, alpha, beta, release candidate etc. When the release candidate is approved, we can just change pyproject.toml and perform an actual release.

Unit testing

Run pytest to run the tests, written in a combinatin of unittest and pytest. If adding a test, pytest seems to be a lot more convenient and powerful.

Most tests go in tests; tests that require a natlink install go in natlink_test as not every package dependent on natlink.

You can run py -m pip install dtactions[test] or py -m pip install dtactions[natlink_test] if you don't have the prequisites like pytest.

You can run pytest from project root folder to run the tests that don't depend on natlink being installed. For the natlink-dependent tests, run py -m pytest natlink_test.

Notes About Packaging for Developers

The package is specified in pyproject.toml.

Too build the package locally,

python -m build. If this fails because you don't have build installed, run pip install -e .[dev].

To publish to dtactions in the Python Packaging Index, increase the version number in __init__.py and draft a new release.

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

dtactions-1.6.5.dev1.tar.gz (305.3 kB view details)

Uploaded Source

Built Distribution

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

dtactions-1.6.5.dev1-py3-none-any.whl (322.7 kB view details)

Uploaded Python 3

File details

Details for the file dtactions-1.6.5.dev1.tar.gz.

File metadata

  • Download URL: dtactions-1.6.5.dev1.tar.gz
  • Upload date:
  • Size: 305.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dtactions-1.6.5.dev1.tar.gz
Algorithm Hash digest
SHA256 43bb2f1c731de93093538ef91f995b0e743041381de127e245012a3ca34eca71
MD5 3320caaf51bc57aff7cbf877390af8f8
BLAKE2b-256 7241f8f3fb66e965d79a44dee85a9ee0d13825aa64945fb0f8b11d988b7a5bd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtactions-1.6.5.dev1.tar.gz:

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

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

File details

Details for the file dtactions-1.6.5.dev1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for dtactions-1.6.5.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e91d6ecfd68af408e2c25884c1bb98f68d404ae5c3e119a10effef1b70f66f2
MD5 d47b3492a3cddac15d152fa2787aec91
BLAKE2b-256 c4d17d0c033d35a339e9e9267dc507068a086e1b615952b0dbd436799a328b53

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtactions-1.6.5.dev1-py3-none-any.whl:

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

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