Appfire is a toolkit that provides utilities for quickly building configurable microservices.
Project description
nr.appfire
Appfire is a toolkit that provides utilities for quickly building configurable microservices.
Components
nr.appfire.tasks
This package provides an easy-to-use framework for managing background tasks in a Python application.
Example
import dataclasses
from nr.appfire.tasks import Runnable, Task, DefaultExecutor
@dataclasses.dataclass
class Looper(Runnable[None]):
loops: int
def run(self, task: Task[None]) -> None:
for i in range(self.loops):
print(i)
if not task.sleep(1):
print('Bye, bye')
break
executor = DefaultExecutor('MyApp')
executor.execute(Looper(10))
executor.idlejoin()
Copyright © 2021 Niklas Rosenstein
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nr.appfire-0.3.0.tar.gz
(14.8 kB
view details)
Built Distribution
File details
Details for the file nr.appfire-0.3.0.tar.gz
.
File metadata
- Download URL: nr.appfire-0.3.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69f2d383c4dcd9c084ea070c827e4d6f4895ad521d1f4aff68f658507e93d906 |
|
MD5 | ab91101945359fe8982161e794dfc699 |
|
BLAKE2b-256 | a520b8da2030d9e25dac48b2ed851fa1e34b1491d5f3289aa9a0754c6c616ef4 |
File details
Details for the file nr.appfire-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: nr.appfire-0.3.0-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f63307febe642433b5b0a7d4d6c51e12728458519c67797ca6c56f347c98777 |
|
MD5 | faa3ed745d310be15cd6c0064022a75b |
|
BLAKE2b-256 | b34b2e00713ae8007b3643d5c6012d2b68600f2f95e0e04d62689af885ccba50 |