Skip to content

Set of tools made in Python for developping TwinCAT projects

Notifications You must be signed in to change notification settings

DEMCON/twincat-tools

Repository files navigation

TwinCAT Tools

Documentation PyTest codecov

This repository contains a small set of tools for developing TwinCAT projects.

Install

Install it with pip from pypi.org with:

pip install twincat-tools

Use it as python -m tctools.[*].

Note: the PyPi package named TcTools is not affiliated with this project and is simply an unfortunate name conflict!

Develop

Requirements

Install package in editable mode and get the development requirements with:

poetry install --with dev --with doc

The package uses dynamic versioning. The plugin can be added to your Poetry installation with:

poetry self add "poetry-dynamic-versioning[plugin]"

Documentation

Documentation is built using Sphinx. This is done automatically and hosted by ReadTheDocs.

Linting

Code style is enforced with black, isort and flake8. Format code with:

isort .
black .

And verify code with: (flake8 extensions will also perform black and isort checks)

flake8 ./src ./tests

Tools

See RTD documentation for full overview of usage: https://twincat-tools.readthedocs.io/latest/pages/tools.html

About

Set of tools made in Python for developping TwinCAT projects

Resources

Stars

Watchers

Forks