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.

Files for actfw, version 1.4.0
Filename, size File type Python version Upload date Hashes
Filename, size actfw-1.4.0-py3-none-any.whl (31.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size actfw-1.4.0.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page