Skip to main content

Python SDK for Maya Labs' natural language programming paradigm

Project description

Maya Labs Python SDK

A new way to program machines, using natural language.

WIP version : alpha - 0.0.1.

Installation

pip3 install mayalabs

Usage

import mayalabs

script = """
1. inject default
2. print {{payload}}
"""

mayalabs.auth.api_key = <MAYA_API_KEY>

#create session
session = mayalabs.Session.new(script=script)

#create worker
worker = mayalabs.Worker.new(name="Test Worker")
worker.start()

# generate session
session.generate()

# wait for generate and start to end
session.deploy(worker_id=worker.id)

# soon
output = session.call({ 'payload' : 'cool'})

# clear everything
session.delete()
worker.delete()

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

mayalabs-0.0.1.tar.gz (13.4 kB view hashes)

Uploaded Source

Built Distribution

mayalabs-0.0.1-py3-none-any.whl (15.0 kB view hashes)

Uploaded Python 3

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