Skip to main content

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
  • Python 3.13

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.4-cp313-cp313-manylinux_2_35_x86_64.whl (14.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.35+ x86-64

xronos-0.0.4-cp313-cp313-manylinux_2_35_aarch64.whl (13.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.35+ ARM64

xronos-0.0.4-cp312-cp312-manylinux_2_35_x86_64.whl (14.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ x86-64

xronos-0.0.4-cp312-cp312-manylinux_2_35_aarch64.whl (13.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ ARM64

xronos-0.0.4-cp311-cp311-manylinux_2_35_x86_64.whl (14.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ x86-64

xronos-0.0.4-cp311-cp311-manylinux_2_35_aarch64.whl (13.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ ARM64

xronos-0.0.4-cp310-cp310-manylinux_2_35_x86_64.whl (14.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ x86-64

xronos-0.0.4-cp310-cp310-manylinux_2_35_aarch64.whl (13.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ ARM64

File details

Details for the file xronos-0.0.4-cp313-cp313-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for xronos-0.0.4-cp313-cp313-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 4429ab9fe79502352e0486bd7e7ad418a372ecb55f7ca83965a96ca727f37ce8
MD5 a6ca67f8daaf9f8339549e4a832d6d63
BLAKE2b-256 72501489acc5fbfb4b285caa0fda6a94f5691465282dc3805ac215ae1ddb4af8

See more details on using hashes here.

File details

Details for the file xronos-0.0.4-cp313-cp313-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for xronos-0.0.4-cp313-cp313-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 675a699f88978654065ea96860e2205fcb2bc786a84be5fbbfbe4d3765577ece
MD5 d6c4661e86d3fdda95472482d942c532
BLAKE2b-256 a56ac417f55b189746056fd45094c7c66daf89866afde50da7b61f998a9a8902

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.0.4-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 d0c6cb1544f49eccecee8eca8d56cdc243edd1320f12fa190a7be82a118e665e
MD5 a5bd7b6b4f98c6890ea469d7f74e738a
BLAKE2b-256 70eb5eec43db0a5486b74f5ef9db41093d66488efe466f31fc4edb6b29d69910

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.0.4-cp312-cp312-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 e74bf89fc4364b84737cf197b85d3c4fee6196dbfe0e69e84926a3f665382cd4
MD5 b05e8b8e7b65ed8e32e2be8fc1aa7b5c
BLAKE2b-256 c39a534c0322f027398ff9b496e603ba842ab8d68d7f326f2ff96f9c259ff190

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.0.4-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 ec03a8380e59819bdebdb9adac258654a6972c110b74822baae911f909d1f4cf
MD5 1d8d0b470c2478b46ed1b45b39481fe8
BLAKE2b-256 e4f960f837875447162db2caaa2e899701b560765da0481b52503d3d13046b5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.0.4-cp311-cp311-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 8594a42bc28cf7ec5f11ca7e259f2215141bd2e019d7384ac234bde0d6afe94d
MD5 00b8bb0d96df018a5725e516d5eda4b4
BLAKE2b-256 364b6dc480845f936c2bfd0cc3c1c9b947f39b869c3920eb623d5d0b20db6f95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.0.4-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 16313a4d474a88078f64427ad99854d3d8dd492d3bba1914e2df2209a50ef447
MD5 ffe7409975094fae5d97017f26ea9b40
BLAKE2b-256 ebc4f9552ba6625e4f23df04bc49985133352a2a556daef212c137d19c41f3b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.0.4-cp310-cp310-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 45013540fa1ef90c5e23a46f4a681839c819173ec02c021c43aec96ed096dcaa
MD5 e10cb9711537fece991cac0450300e98
BLAKE2b-256 2057e2eb8dbb8bf06fc01de4b1e864b2971fa0e6a74e698690fb08533100fe8c

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