Skip to main content

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.

Release files for moirai 1.3.32

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moirai 1.3.32
File Size Uploaded
moirai-1.3.32.tar.gz 104.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moirai 1.3.32
File Interpreter ABI Platform
moirai-1.3.32-py3-none-any.whl Python 3 none any Details

Total release size: 153.0 kB

Release files / moirai-1.3.32.tar.gz

Download URL moirai-1.3.32.tar.gz
Size 104.1 kB
Tags Source
SHA-256 checksum
How to use checksums
12c5a8a9141ad6d79ed1524d6f6e3d003188a5bbb66b1ac7d6f30f75b01d65fc
BLAKE2b-256 checksum
How to use checksums
edc033c0dc14c6dc8f9fdaebd7435621244e8ebf63fbe53200791bba155061fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 4, 2026.

Transparency log

Release files / moirai-1.3.32-py3-none-any.whl

Download URL moirai-1.3.32-py3-none-any.whl
Size 48.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae3c46704b36bcc37b3b0eb1b4632c924b7c0f5785cbd77ac040f05204f9c3e5
BLAKE2b-256 checksum
How to use checksums
89d9859a5d36e45df10d96c8447e356a6f506f33b840174463da16e3a0bb53f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.32 This release

2 release files

1.3.31

2 release files

1.3.30

2 release files

1.3.29

2 release files

1.3.28

2 release files

1.3.27

2 release files

1.3.25

2 release files

1.3.24

2 release files

1.3.20

2 release files

1.3.19

2 release files

1.3.18

2 release files

1.3.17

1 release file

1.3.16

1 release file

1.3.15

1 release file

1.3.14

1 release file

1.3.13

1 release file

1.3.12

1 release file

1.3.11

1 release file

1.3.10

1 release file

1.3.9

1 release file

1.3.8

1 release file

1.3.7

1 release file

1.3.6

1 release file

1.3.5

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.8

1 release file

1.2.7

1 release file

1.2.6

1 release file

1.2.5

1 release file

1.2.4

1 release file

1.2.0

1 release file

1.1.13

1 release file

1.1.12

1 release file

1.1.11

1 release file

1.1.10

1 release file

1.1.9

1 release file

1.1.8

1 release file

1.1.7

1 release file

1.1.6

2 release files

1.1.5

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.26

1 release file

1.0.25

1 release file

1.0.24

1 release file

1.0.23

1 release file

1.0.22

1 release file

1.0.21

1 release file

1.0.20

1 release file

1.0.19

1 release file

1.0.18

1 release file

1.0.17

1 release file

1.0.16

1 release file

1.0.15

1 release file

1.0.14

1 release file

1.0.13

1 release file

1.0.12

1 release file

1.0.11

1 release file

1.0.10

1 release file

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page