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.2.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.2.0-cp313-cp313t-manylinux_2_35_aarch64.whl (12.9 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.35+ ARM64

xronos-0.2.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.2.0-cp313-cp313-manylinux_2_35_aarch64.whl (12.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.35+ ARM64

xronos-0.2.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.2.0-cp312-cp312-manylinux_2_35_aarch64.whl (12.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ ARM64

xronos-0.2.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.2.0-cp311-cp311-manylinux_2_35_aarch64.whl (12.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ ARM64

xronos-0.2.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.2.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.2.0-cp313-cp313t-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for xronos-0.2.0-cp313-cp313t-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 d2278093cac01d2db81840c62d400d080394dce3f448268004e495601aafc2a6
MD5 4c380238c018f39c6561d0497f463487
BLAKE2b-256 4d6bc9eb99ff82f69c74396aecb7625a7a5c64bce15c311a32fca8782d2c66bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.2.0-cp313-cp313t-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 7282cc5a3e11d31c527f03be669a806cae63fbb939d1658a87e605fcb282b10f
MD5 0f3cb0aaa20b1a5c9d47e5126757a641
BLAKE2b-256 69500c50c83457c35caf5457e8f163a56001610f0a0cf9fd06269ac0c51179d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.2.0-cp313-cp313-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 9aea165f7e733abf619dc2ffc37fbf67020e6131c8e0705e53fb348a2fec6568
MD5 0d7a87aa84479915a17c28e9f45f3954
BLAKE2b-256 77debe183a11ce9c4dd4dd80c5f00a17146f7213bce479ee6429276e6cc6af5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.2.0-cp313-cp313-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 cf4488960f2fd9ed434403375daa095bc625a146acfda10dcf187d774b8da714
MD5 8a0d5baa319be21ab2bfdad7ef9c5b81
BLAKE2b-256 71b0ed98da1b1663567713c4d12f50ca758b652093c583d460e098372c42bfd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.2.0-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 f6ca4578154b8cfa2822bec5113c1b09670adb628af82e1586e3ad968e0a8a4a
MD5 efd6f2a13ff3a83cc29675ca217c7323
BLAKE2b-256 ec07c6eb87b8361c6ee966e676567461b139e92671f7c9fa03adbfaa64e2a6d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.2.0-cp312-cp312-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 e37fe2b969e0a6a5bb42698b104ffb776875a805b1d8b68a47acda4c91753515
MD5 bc628bab213ffc240f0c8e913239f1ba
BLAKE2b-256 9591609a97730803286f314e30ad1014b78babdcfefdd6c052680a5462087392

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.2.0-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 3320d3640ca3094178d162f0b52ebef0d12555861eaad0d36725122a6ee7a209
MD5 d560386e7241917e9fc52f136ec0d389
BLAKE2b-256 52d4a1689a56e49ee8a2834593a51e1390d6a69fcd507541ef0550b58fc36614

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.2.0-cp311-cp311-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 5d76e63c26b989de66fbd1106a953339a3d0f5ec14e4b112f6f914dc8dcd0676
MD5 80292b3b570fa30dc96d6fd01265ce9a
BLAKE2b-256 d5d824250d14fc8e38cc9de066ac4531d0b6c85ec3357a636f312b639e691f72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.2.0-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 3df64514997d958486957a68420dc0b80767fc061ca0f8f091a4fbb6b47658cb
MD5 eb14d2bdf3575412d5a39b8f68d7b7b2
BLAKE2b-256 17edeb80781000e19a09a15c76ad96d57c2290551e7a0931b1a49cdf9db24fe9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xronos-0.2.0-cp310-cp310-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 d9b5baf8cda3308c335efb32a6fdaf918e4cea4306203a6dfafe12a089b8bbe7
MD5 94bef4220e4f5c85beeae9711143f896
BLAKE2b-256 7c7441368568cb125f3d39193a7433b1c18f1814f170cdd1dff035821a13cc03

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