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
Metadata
Release files for nr.appfire 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nr.appfire-0.3.0.tar.gz | 14.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nr.appfire-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.4 kB
Release files / nr.appfire-0.3.0.tar.gz
| Download URL | nr.appfire-0.3.0.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69f2d383c4dcd9c084ea070c827e4d6f4895ad521d1f4aff68f658507e93d906
|
|
BLAKE2b-256 checksum How to use checksums |
a520b8da2030d9e25dac48b2ed851fa1e34b1491d5f3289aa9a0754c6c616ef4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / nr.appfire-0.3.0-py3-none-any.whl
| Download URL | nr.appfire-0.3.0-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f63307febe642433b5b0a7d4d6c51e12728458519c67797ca6c56f347c98777
|
|
BLAKE2b-256 checksum How to use checksums |
b34b2e00713ae8007b3643d5c6012d2b68600f2f95e0e04d62689af885ccba50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|