Reactors for Python
Project description
Xronos
The Xronos library for writing reactor programs.
Resources:
- Github: https://github.com/xronos-inc/xronos
- Documentation: https://xronos-inc.github.io/xronos
- pypi: https://pypi.org/project/xronos
Prerequisites
Architectures:
- amd64
- arm64
Platforms:
- Ubuntu 22.04
- Ubuntu 24.04
Python:
- Python 3.10
- Python 3.11
- Python 3.12
Installation
We recommend working in a virtual environment. Use the following commands to create and load a new environment .venv.
python -m venv .venv
source .venv/bin/activate
Install the xronos pip packge:
pip install xronos
Hello World
This section shows you how to write a hello world program using xronos. Create a file called hello.py and paste the following content into it.
import xronos
class Hello(xronos.Reactor):
@xronos.reaction
def hello(self, interface):
interface.add_trigger(self.startup)
return lambda: print(f"Hello, world!")
env = xronos.Environment()
env.create_reactor("hello", Hello)
env.execute()
If you see the following output, the library is installed successfully.
$ python hello.py
Hello, world!
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 Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xronos-0.0.1-cp312-cp312-manylinux_2_35_x86_64.whl.
File metadata
- Download URL: xronos-0.0.1-cp312-cp312-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 14.4 MB
- Tags: CPython 3.12, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77810a7ffb2d32e15c62a2b8d54dd65707aa523bfea47f4999f4c6cae657fbea
|
|
| MD5 |
5710cdb3dcc824d5e06deb0169741b97
|
|
| BLAKE2b-256 |
0d8684f4ec91b8c02197ff3b49cae476277ff02444b9238ea177b46af672b374
|
File details
Details for the file xronos-0.0.1-cp312-cp312-manylinux_2_35_aarch64.whl.
File metadata
- Download URL: xronos-0.0.1-cp312-cp312-manylinux_2_35_aarch64.whl
- Upload date:
- Size: 13.7 MB
- Tags: CPython 3.12, manylinux: glibc 2.35+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
410e05a66b2b43a3b7f89a6a528ee57f77a8916b7fd44ea3a2faa62fdc7f0287
|
|
| MD5 |
e6922909bff0cb5a3f27ab51948e6c79
|
|
| BLAKE2b-256 |
3b2302887fed834e17a0323dd8bc08e52b3e54eda6c6a8cf68a618d20925897d
|
File details
Details for the file xronos-0.0.1-cp311-cp311-manylinux_2_35_x86_64.whl.
File metadata
- Download URL: xronos-0.0.1-cp311-cp311-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 14.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0f57177da6bcbe555e79c0f7eca247acc201e066f5556f28f909d4a2e324990
|
|
| MD5 |
dd1adf01251a76b0956d9684f6c84e8b
|
|
| BLAKE2b-256 |
7c5b99b052293575230b8001373bbee47cfbcc0d0a4cb6a299282fa604caf923
|
File details
Details for the file xronos-0.0.1-cp311-cp311-manylinux_2_35_aarch64.whl.
File metadata
- Download URL: xronos-0.0.1-cp311-cp311-manylinux_2_35_aarch64.whl
- Upload date:
- Size: 13.7 MB
- Tags: CPython 3.11, manylinux: glibc 2.35+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12aa5ed1c63a14d1fc070df46a37925dbaf7d25f755fa4e83c9c32d8d90a6aa2
|
|
| MD5 |
3f7cc0d93b28abedc9561c7b707a7047
|
|
| BLAKE2b-256 |
e87a2bc97ccd2b101220f382d1be169921d073b307eb48b12398e208d13afcf3
|
File details
Details for the file xronos-0.0.1-cp310-cp310-manylinux_2_35_x86_64.whl.
File metadata
- Download URL: xronos-0.0.1-cp310-cp310-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 14.4 MB
- Tags: CPython 3.10, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
557b0dbd823095fda013f1ab2ec1714a3ad7f0ca78758347b3c5a6cb25d6336e
|
|
| MD5 |
94455dfd8cf136d250d04b623d16f38b
|
|
| BLAKE2b-256 |
52350ab1657f336fd584afb9275412cf483f6b60b5758833945065d58979fe2b
|
File details
Details for the file xronos-0.0.1-cp310-cp310-manylinux_2_35_aarch64.whl.
File metadata
- Download URL: xronos-0.0.1-cp310-cp310-manylinux_2_35_aarch64.whl
- Upload date:
- Size: 13.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.35+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
013a7e41622f0b7a2ef31a9e5243d4f5e42849f12c59a40f715de5aaa70af55e
|
|
| MD5 |
c63539ca0a0da274f66f76c6d1c62b2e
|
|
| BLAKE2b-256 |
6fa23a586d5573d98173ca48be799a68cdb633eff1b17ca98989747883cc42a4
|