Skip to main content

Digital Control Manager Backend

Project description

moirai

Moirai is the backend for the platform. It is developed as part of my scientific initiation project, named Plataformas de baixo custo para controle de processos (low-cost platform for process control), developed at CEFET-MG (Brazil) under the supervision of Prof. Dr. Valter Leite. The project was developed through a FAPEMIG scholaship.

It's meant to be installed in a computer near the plant, so it can be remote-controlled by Lachesis. It exposes a RESTful API that let's you configure the hardware, save tests and controllers, execute them and fetch the results in real-time or after the execution finishes.

Controllers for this platform are written in Python 3 and can use any librarie available in the computer where moirai is running. It already depends on NumPy and SciPy, as they are commonly used. This platform manages the hardware interfacing through the ahio libray, so extending it's hardware capabilities is a question of extending AHIO, which should be simple. Execution time, sampling time, input querying and output updating is managed by the application and let's you focus on your controller/model.

Installation

Use pip to install. This is a Python 3 application and won't run in Python 2. Use pip install moirai or pip3 install moirai to install it. It also has other dependencies not installable through pip, which can be installed by running moirai --install --sudo. It will install MongoDB (or MySQL on Raspberry Pi) and the Snap7 library. It's designed to work on Windows, macOS (with Homebrew) and Linux (apt-get, dnf, yum and zypper).

If using the Snap7 driver on Windows, you may need to compile the driver yourself and copy it to /Windows/System32.

On macOS, using Homebrew, you can install with:

brew tap acristoffers/repo
brew install moirai

License

Copyright (c) 2016 Álan Crístoffer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

moirai-1.3.31.tar.gz (59.1 kB view details)

Uploaded Source

Built Distribution

moirai-1.3.31-py3-none-any.whl (48.8 kB view details)

Uploaded Python 3

File details

Details for the file moirai-1.3.31.tar.gz.

File metadata

  • Download URL: moirai-1.3.31.tar.gz
  • Upload date:
  • Size: 59.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for moirai-1.3.31.tar.gz
Algorithm Hash digest
SHA256 b8fe294423a0d75dae167ddcb20e31eed9c6e4f3cf8720d712ff25a03b56ff9f
MD5 8e08d16ecd29bd76c88bd23b6b40f1f1
BLAKE2b-256 1f781dc99525646bb89ab2927ab35acc887b9f89f03840b8bc6bec696ff58ff7

See more details on using hashes here.

Provenance

The following attestation bundles were made for moirai-1.3.31.tar.gz:

Publisher: wheels.yml on acristoffers/moirai

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

File details

Details for the file moirai-1.3.31-py3-none-any.whl.

File metadata

  • Download URL: moirai-1.3.31-py3-none-any.whl
  • Upload date:
  • Size: 48.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for moirai-1.3.31-py3-none-any.whl
Algorithm Hash digest
SHA256 e8a74f271e5b564b243f7b01ab78aed14be80f846d9c319b1d93ceae8e15fefc
MD5 97da76a61303b26a9c459950ecb9ea8c
BLAKE2b-256 e671771dd4fd271a14390666a7e69599f066f58661464af4184fe22e6b53ec63

See more details on using hashes here.

Provenance

The following attestation bundles were made for moirai-1.3.31-py3-none-any.whl:

Publisher: wheels.yml on acristoffers/moirai

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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page