Skip to main content

*DEPRECATED* Actcast Application Framework

Project description

DEPRECATED Actcast Application Framework for Python

This package provides a Python API for developing Actcast apps.

This framework has moved into actfw-core & actfw-raspberrypi since v1.4.0.

This package only provides actfw module name, which interally binds submodules in actfw_core and actfw_raspberrypi.

Document

Usage

Construct your application with a task parallel model

  • Application
    • actfw.Application : Main application
  • Workers
    • actfw.task.Producer : Task generator
      • actfw.capture.PiCameraCapture : Generate CSI camera capture image
      • actfw.capture.V4LCameraCapture : Generate UVC camera capture image
    • actfw.task.Pipe : Task to Task converter
    • actfw.task.Consumer : Task terminator

Each worker is executed in parallel.

User should

  • Define subclass of Producer/Pipe/Consumer
class MyPipe(actfw.task.Pipe):
    def proc(self, i):
        ...
  • Connect defined worker objects
p  = MyProducer()
f1 = MyPipe()
f2 = MyPipe()
c  = MyConsumer()
p.connect(f1)
f1.connect(f2)
f2.connect(c)
  • Register to Application
app = actfw.Application()
app.register_task(p)
app.register_task(f1)
app.register_task(f2)
app.register_task(c)
  • Execute application
app.run()

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

actfw-1.4.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

actfw-1.4.0-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

Details for the file actfw-1.4.0.tar.gz.

File metadata

  • Download URL: actfw-1.4.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for actfw-1.4.0.tar.gz
Algorithm Hash digest
SHA256 2b32afc18534f3ee0e921932ac00b02f1a3fb523f600ddd91e4affc239a3d35c
MD5 0bb9d1f8b80e26645a75403fa12e1af3
BLAKE2b-256 5c08237acfe20834726be45bd4437dfffee5c1ac7be9b75d90f95027835e85ae

See more details on using hashes here.

File details

Details for the file actfw-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: actfw-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 31.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for actfw-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5219903163ef033293ae0723554498186e3d1b62f83196002647ef843ce2ec28
MD5 a2d3ca359e1f73d3aa98520fae216fc4
BLAKE2b-256 a6bb5a48fd14b329318db71e8d79c7a013a4547e92758d5ba86021a9b0f2a220

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page