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.4.0-cp313-cp313t-manylinux_2_35_x86_64.whl (13.6 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.35+ x86-64

xronos-0.4.0-cp313-cp313t-manylinux_2_35_aarch64.whl (12.9 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.35+ ARM64

xronos-0.4.0-cp313-cp313-manylinux_2_35_x86_64.whl (13.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.35+ x86-64

xronos-0.4.0-cp313-cp313-manylinux_2_35_aarch64.whl (12.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.35+ ARM64

xronos-0.4.0-cp312-cp312-manylinux_2_35_x86_64.whl (13.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ x86-64

xronos-0.4.0-cp312-cp312-manylinux_2_35_aarch64.whl (12.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ ARM64

xronos-0.4.0-cp311-cp311-manylinux_2_35_x86_64.whl (13.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ x86-64

xronos-0.4.0-cp311-cp311-manylinux_2_35_aarch64.whl (12.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ ARM64

xronos-0.4.0-cp310-cp310-manylinux_2_35_x86_64.whl (13.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ x86-64

xronos-0.4.0-cp310-cp310-manylinux_2_35_aarch64.whl (12.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ ARM64

File details

Details for the file xronos-0.4.0-cp313-cp313t-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for xronos-0.4.0-cp313-cp313t-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 cf1878c3db7d11baf01ce4556f0cdcdfc9fae1cd4370932953eb2ecf3f18c7ec
MD5 3b7dde49c070ae925cf6853f8a882ec8
BLAKE2b-256 b94c07f98cc46ddc4d4268ca58c67a43d78c6773a2953c75d04cfd0ec6a6f7ee

See more details on using hashes here.

File details

Details for the file xronos-0.4.0-cp313-cp313t-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for xronos-0.4.0-cp313-cp313t-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 ad55cb1ff6860008b090da8b70ae304501e66e29b489fa61d1368cdddd7f3cda
MD5 503ef5784966ab507891593ee1c0e4ce
BLAKE2b-256 4b052750c2aceceacc0844201b36076aa5924fcb186273f31681990a2b79714c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.4.0-cp313-cp313-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 6d6b54c3a0c7036f6332c1a70569d1a3b9eca2253d823febf4aba1bfdfcfce2a
MD5 73ccad75f0fd0ba1a235a665e558ed89
BLAKE2b-256 f149a336fc1068868c15aba254b72e6526920587df93148d23321d8450b20cbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.4.0-cp313-cp313-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 f7e14f1a9c8c96a1dc16df1fa23518dadda752f10f488e21fae50f91352af986
MD5 294a3ebc9a679ae50c39aa16efcdec7b
BLAKE2b-256 a0d624945af95ede068b6f14f9e8888d63323f30d1e78677296544356ebdae18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.4.0-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 949c6c9abf9c6339597a84a29da35fa5bd135c9462194398bc669e53a77c7563
MD5 77e3f2f69bfc2b493fce49df19bd0995
BLAKE2b-256 dfe5d00c2647cd15f381739375f867f3036c0c7462838cedcbc7c499fe0e44a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.4.0-cp312-cp312-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 7894ae1caab5483446bf047a9f05e0f61a84fa2e4cecc6f6b7dfc26e1214de97
MD5 20d096206c97d6b16fbd789a14a7081f
BLAKE2b-256 58caca075d9db6e1e213a3e21e5d25ed84da3e9a60a5637041569e5cdfd60b68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.4.0-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 7f948c53ac324649905a66925d4505120ef6182345fbb2493aea6c51dd3267ee
MD5 36d0d159e3447625a130fcde4dc6fde2
BLAKE2b-256 597ccf9108e97f0edd80301847838a5bdaad80c89118f21bd002e2932720d33f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.4.0-cp311-cp311-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 f9f24760647ed5a22b0c9f52cef8a0e27602bc0a8fb101b8c6c33ddbac5cea93
MD5 26461a94347e034f3bb47f972e4918b8
BLAKE2b-256 6e5afa42baa320288f7616a391cbb06e0fa24778eb8b57e7af15b1c988c8b622

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.4.0-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 77dd3c272723e05ef6950137366bb02b1878a79266912cfccaac4f3277e50566
MD5 e82a3e6f56303d7f5f22e2b0a668842f
BLAKE2b-256 2026401fd590abc114b44bc748c5c2dae525ea50cf095f6d48ea9682727c74e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.4.0-cp310-cp310-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 6e82ed0379603a77d26b6c6cd1993182b03725c4ebaddfd9884d14e1f1976253
MD5 668203c35b91d04562ec6b4b0c1d4fcb
BLAKE2b-256 14568da8f2faa924ccee9527c472783006e9a159379b2c624d360d9eac89f680

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