8000 GitHub - megapihel/Corezoid: Corezoid Python SDK
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

megapihel/Corezoid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Corezoid SDK for Python 3.x

This module helps you sending and modifying tasks to Corezoid processes.

Installation

pip install Corezoid

Requirements

pip install requests

Quick Start

from Corezoid import Corezoid

# Insert Corezoid Process credentials
# Learn more about credentials: https://doc.corezoid.com/en/interface/access_management.html
API_KEY    = '<INSERT API KEY>' 
API_SECRET = '<INSERT API SECRET>'
PROCESS_ID = '<INSERT PROCESS ID>'

# Initialize Corezoid SDK
c = Corezoid(API_KEY, API_SECRET, PROCESS_ID)

# There are 2 methods available: send and modify tasks.
# Learn more about Corezoid API: https://doc.corezoid.com/en/api/upload_data/

# Input parameters:
# ref: string
# data: JSON

# Send a new task to Corezoid process
def send_task(ref, data):
    c.create_task(ref, data)

# Modify an existing task by ref at Corezoid process
def modify_task(ref, data):
    c.modify_task(ref, data)

Important Notes

Max. task size: 128 000 bytes. If you have a large data object try to split it into a few tasks.

That's it! Let's start using Corezoid.

About

Corezoid Python SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%
0