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

Uploaded CPython 3.13tmanylinux: glibc 2.35+ x86-64

xronos-0.1.0-cp313-cp313t-manylinux_2_35_aarch64.whl (15.0 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.35+ ARM64

xronos-0.1.0-cp313-cp313-manylinux_2_35_x86_64.whl (15.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.35+ x86-64

xronos-0.1.0-cp313-cp313-manylinux_2_35_aarch64.whl (15.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.35+ ARM64

xronos-0.1.0-cp312-cp312-manylinux_2_35_x86_64.whl (15.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ x86-64

xronos-0.1.0-cp312-cp312-manylinux_2_35_aarch64.whl (15.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ ARM64

xronos-0.1.0-cp311-cp311-manylinux_2_35_x86_64.whl (15.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ x86-64

xronos-0.1.0-cp311-cp311-manylinux_2_35_aarch64.whl (15.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ ARM64

xronos-0.1.0-cp310-cp310-manylinux_2_35_x86_64.whl (15.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ x86-64

xronos-0.1.0-cp310-cp310-manylinux_2_35_aarch64.whl (15.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ ARM64

File details

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

File metadata

File hashes

Hashes for xronos-0.1.0-cp313-cp313t-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 a1bd9c44a0ab504f28852dd6195be21d9c3314bfe5228f988d0eb0662a3afbd7
MD5 a8fdd678328498c55b2ff4a314ec5a1d
BLAKE2b-256 f805219e7945a43f8d35c083f398fbc0d2ba6e2a76f13e8c966f59cbe4dad6ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.1.0-cp313-cp313t-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 291315b2c40418eb33cc0de90756bfbe11bbac9dfddea0523ccbbfc6dfb9fbc9
MD5 55bfb189eeb8120e91749a3cab1e2e8b
BLAKE2b-256 ad0529b8b9939ef3b140e9e38b4e0b7ecd74f2a2a24655c75cd21ac863f744fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.1.0-cp313-cp313-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 265d5ff9a85a1cd418628eb039eec57ac6ed4990ee31ca408bded059f620814f
MD5 73bc92aa0ed4da13eb18a5762832773e
BLAKE2b-256 ee8fdafab4d9c40cf6e6fa403628c54c1297f09aab3707cc7c47dbb1c859c280

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.1.0-cp313-cp313-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 77942d5c78a93e84b32e05229ffe3321ec7490bab185a47aca7a0c328a8f0fa8
MD5 9d0f72171049af56562dc952f63c076f
BLAKE2b-256 2ecf2a2c29d102cbf7aa1a9759db48c0982afe0cfab5e839ed1d68307e2be14c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.1.0-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 8e3f79600871229c73a825a28985c4cea49a03832ec5ceb049350a3659b2a1ec
MD5 73ba1a68abfe6db63725032b06c78d5d
BLAKE2b-256 1c5bf539aade2f431f90c31a7c2c02892cd753e1f8d1fed695017ba77af1377e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.1.0-cp312-cp312-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 548c92ed11d9f24203f9c6e2085b740dc4f4ff121b57dfc2e2e7fd03f2b60cae
MD5 78636ddff90eecc730e1ef7e161cc2e4
BLAKE2b-256 fbd43b7ed2a6403b68d240673c88959e391f3ce3979ab00b9e8e9d41300db792

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.1.0-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 1a46dd3fd2565c2f510aca695d70dc61597fb3f483addbbd7150ea2484334e5e
MD5 be3be16ec1c1092551c91349a7422a06
BLAKE2b-256 e0ac320a33fe1d9dee6b9062faf0369014c42af2a6deca7f5e6f84617ab3913a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.1.0-cp311-cp311-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 cdea6e32c85976d46da70ccd04813c22af6c62fa4230ab74c1439da9609d74b5
MD5 07d3126c809c243cfba240a137866089
BLAKE2b-256 c977216759c6301f5066e06a4a5a81a16b81fd3281e978dc2a7a8f12d2b84ee0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.1.0-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 994f5a2a03881283f84769b8cf4b499b55d52546a5f978a0f60161e7bbfe128b
MD5 e1966f8acaebbb01e9248fecf634d053
BLAKE2b-256 b0adbe7c12d902a84352bfdabfc71af287e6f60c7a159b529d5fb3b9fee1693d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.1.0-cp310-cp310-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 dc6ded5a6f2de74dd8ef9d476321c53fec4b5660fcc4b6afac0c86f8db0c762d
MD5 e3b8881d4945bf232b07f5e4dfce8e26
BLAKE2b-256 cddc816b6b814e86dc720e9558404d97034e77df1414bad32c2d307e8ac29eee

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