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

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 . from the dtactions project root.

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 test; 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 and uses flit as the underlying build tool.

Too build the package locally,

py -m flit build (or just flit build) builds the package. You can also use python -m build if you have build installed. A github action publishes to publishes to Python Packaging Index.

Version numbers of the packages must be increased before your publish to Python Packaging Index.

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.2.tar.gz (177.8 kB view details)

Uploaded Source

Built Distribution

dtactions-1.6.2-py3-none-any.whl (190.9 kB view details)

Uploaded Python 3

File details

Details for the file dtactions-1.6.2.tar.gz.

File metadata

  • Download URL: dtactions-1.6.2.tar.gz
  • Upload date:
  • Size: 177.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for dtactions-1.6.2.tar.gz
Algorithm Hash digest
SHA256 5082260c70b64aadad8648b449dfc433bc51b0079eec6cf1923fac084c9788ac
MD5 e56177cb34c22f0d2836c9947e309e1b
BLAKE2b-256 6829d4ee3cfc34571dda4b12705760d7a094461e18a7f640d5107c48d22d64ce

See more details on using hashes here.

File details

Details for the file dtactions-1.6.2-py3-none-any.whl.

File metadata

  • Download URL: dtactions-1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 190.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for dtactions-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c484537d36bc8b4aa83c861f0dc324b6901d3433190a14e260844aaef9ee0e19
MD5 21700ef9ba733e3a8af11be9cd0de72c
BLAKE2b-256 125c780f238415a60f49658b3099deede2ddf073e96ddb5f4862455bdbd24002

See more details on using hashes here.

Supported by

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