Skip to main content

xCherry APIs

Project description

xcherryapi

This APIs between xCherry service and SDKs

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.0.1
  • Package version: 0.0.1
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/xcherryio/apis.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/xcherryio/apis.git)

Then import the package:

import xcherryapi

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import xcherryapi

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import time
import xcherryapi
from xcherryapi.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = xcherryapi.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
with xcherryapi.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = xcherryapi.DefaultApi(api_client)
    process_execution_describe_request = xcherryapi.ProcessExecutionDescribeRequest() # ProcessExecutionDescribeRequest |  (optional)

    try:
        # describe a process execution
        api_response = api_instance.api_v1_xcherry_service_process_execution_describe_post(process_execution_describe_request=process_execution_describe_request)
        print("The response of DefaultApi->api_v1_xcherry_service_process_execution_describe_post:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->api_v1_xcherry_service_process_execution_describe_post: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultApi api_v1_xcherry_service_process_execution_describe_post POST /api/v1/xcherry/service/process-execution/describe describe a process execution
DefaultApi api_v1_xcherry_service_process_execution_publish_to_local_queue_post POST /api/v1/xcherry/service/process-execution/publish-to-local-queue send message(s) to be consumed within a single process execution
DefaultApi api_v1_xcherry_service_process_execution_rpc_post POST /api/v1/xcherry/service/process-execution/rpc execute a RPC method of a process execution
DefaultApi api_v1_xcherry_service_process_execution_start_post POST /api/v1/xcherry/service/process-execution/start start a process execution
DefaultApi api_v1_xcherry_service_process_execution_stop_post POST /api/v1/xcherry/service/process-execution/stop stop a process execution
DefaultApi api_v1_xcherry_worker_async_state_execute_post POST /api/v1/xcherry/worker/async-state/execute invoking AsyncState.execute API
DefaultApi api_v1_xcherry_worker_async_state_wait_until_post POST /api/v1/xcherry/worker/async-state/wait-until invoking AsyncState.waitUntil API
DefaultApi api_v1_xcherry_worker_process_rpc_post POST /api/v1/xcherry/worker/process/rpc execute a RPC method of a process execution in the worker
DefaultApi internal_api_v1_xcherry_notify_immediate_tasks_post POST /internal/api/v1/xcherry/notify-immediate-tasks for api service to tell async service that there are new immediate tasks added to the queue
DefaultApi internal_api_v1_xcherry_notify_timer_tasks_post POST /internal/api/v1/xcherry/notify-timer-tasks for api service to tell async service that there are new timer tasks added to the queue

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

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

xcherryapi-0.0.1.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

xcherryapi-0.0.1-py3-none-any.whl (105.6 kB view details)

Uploaded Python 3

File details

Details for the file xcherryapi-0.0.1.tar.gz.

File metadata

  • Download URL: xcherryapi-0.0.1.tar.gz
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1016-azure

File hashes

Hashes for xcherryapi-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6b98818f3274856253f4f62774b346fb5d9151690d5785a349e745a46568f590
MD5 d3b8b75cc4dcddf0b2b52b5f2ec05e34
BLAKE2b-256 b163239b36536d3a9c0761b757ff0955fe3607f85238a6bd20a4cb9fdb0c7b82

See more details on using hashes here.

File details

Details for the file xcherryapi-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: xcherryapi-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 105.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1016-azure

File hashes

Hashes for xcherryapi-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e074da23a475293909324e46461314b31a1b4801f3dbe1189dd7f35d39b8825
MD5 5030d373b4db610795b8d61b08467633
BLAKE2b-256 a7de14ee16f0c2826db7419ab41629efa817e11e36adfbc1281f43f8ae71ae00

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