Skip to content

Add support for Python clients #104

Description

@robertmaynard

We need the ability to generate a python interface to the client class.

This would allow remus users to write python client code, and interact with a c++ worker.

from remus.common import MeshIOType
from remus.meshtypes import Model, Mesh3D
from remus.client import ServerConnection, Client
from remus.proto import JobSubmission, MemoryJobContent

conn = ServerConnection()
client = client( conn )

request = MeshIOType(Model(),Mesh3D())
if client.canMesh( request ):
  workerRequirements = client.retrieveRequirements( request )
  sub = JobSubmission(workerRequirements[0])
  sub["data"] = MemoryJobContent( "Hello from Python ")
  j  = client.submitJob(sub)
  state = client.jobStatus(j)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions