Skip to main content

Reactors for Python

Project description

Xronos

The Xronos library for writing reactor programs.

Resources:

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

xronos-0.0.1-cp312-cp312-manylinux_2_35_x86_64.whl (14.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ x86-64

xronos-0.0.1-cp312-cp312-manylinux_2_35_aarch64.whl (13.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ ARM64

xronos-0.0.1-cp311-cp311-manylinux_2_35_x86_64.whl (14.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ x86-64

xronos-0.0.1-cp311-cp311-manylinux_2_35_aarch64.whl (13.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ ARM64

xronos-0.0.1-cp310-cp310-manylinux_2_35_x86_64.whl (14.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ x86-64

xronos-0.0.1-cp310-cp310-manylinux_2_35_aarch64.whl (13.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ ARM64

File details

Details for the file xronos-0.0.1-cp312-cp312-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for xronos-0.0.1-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 77810a7ffb2d32e15c62a2b8d54dd65707aa523bfea47f4999f4c6cae657fbea
MD5 5710cdb3dcc824d5e06deb0169741b97
BLAKE2b-256 0d8684f4ec91b8c02197ff3b49cae476277ff02444b9238ea177b46af672b374

See more details on using hashes here.

File details

Details for the file xronos-0.0.1-cp312-cp312-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for xronos-0.0.1-cp312-cp312-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 410e05a66b2b43a3b7f89a6a528ee57f77a8916b7fd44ea3a2faa62fdc7f0287
MD5 e6922909bff0cb5a3f27ab51948e6c79
BLAKE2b-256 3b2302887fed834e17a0323dd8bc08e52b3e54eda6c6a8cf68a618d20925897d

See more details on using hashes here.

File details

Details for the file xronos-0.0.1-cp311-cp311-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for xronos-0.0.1-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 c0f57177da6bcbe555e79c0f7eca247acc201e066f5556f28f909d4a2e324990
MD5 dd1adf01251a76b0956d9684f6c84e8b
BLAKE2b-256 7c5b99b052293575230b8001373bbee47cfbcc0d0a4cb6a299282fa604caf923

See more details on using hashes here.

File details

Details for the file xronos-0.0.1-cp311-cp311-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for xronos-0.0.1-cp311-cp311-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 12aa5ed1c63a14d1fc070df46a37925dbaf7d25f755fa4e83c9c32d8d90a6aa2
MD5 3f7cc0d93b28abedc9561c7b707a7047
BLAKE2b-256 e87a2bc97ccd2b101220f382d1be169921d073b307eb48b12398e208d13afcf3

See more details on using hashes here.

File details

Details for the file xronos-0.0.1-cp310-cp310-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for xronos-0.0.1-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 557b0dbd823095fda013f1ab2ec1714a3ad7f0ca78758347b3c5a6cb25d6336e
MD5 94455dfd8cf136d250d04b623d16f38b
BLAKE2b-256 52350ab1657f336fd584afb9275412cf483f6b60b5758833945065d58979fe2b

See more details on using hashes here.

File details

Details for the file xronos-0.0.1-cp310-cp310-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for xronos-0.0.1-cp310-cp310-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 013a7e41622f0b7a2ef31a9e5243d4f5e42849f12c59a40f715de5aaa70af55e
MD5 c63539ca0a0da274f66f76c6d1c62b2e
BLAKE2b-256 6fa23a586d5573d98173ca48be799a68cdb633eff1b17ca98989747883cc42a4

See more details on using hashes here.

Supported by

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