Skip to main content

marax_server_sdk

Project description

marax_server_sdk

Marax Server SDK to send transactional events from client server to marax server

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

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

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

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

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

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

Then import the package:

import marax_server_sdk

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 marax_server_sdk

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import marax_server_sdk
from marax_server_sdk.rest import ApiException
from pprint import pprint

configuration = marax_server_sdk.Configuration()
# Configure API key authorization: ApiKeyAuth
configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'

# Defining host is optional and default to https://<client-name>.marax.ai
configuration.host = "https://<client-name>.marax.ai"
# Enter a context with an instance of the API client
with marax_server_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = marax_server_sdk.RewardApi(api_client)
    request_body = marax_server_sdk.RequestBody() # RequestBody | Details of transactional event (optional)

    try:
        # Perform reward post-processing
        api_response = api_instance.process_event(request_body=request_body)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling RewardApi->process_event: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://<client-name>.marax.ai

Class Method HTTP request Description
RewardApi process_event POST /event/process Perform reward post-processing

Documentation For Models

Documentation For Authorization

ApiKeyAuth

  • Type: API key
  • API key parameter name: X-API-KEY
  • Location: HTTP header

Author

team@marax.ai

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

marax_server_sdk-0.2.9.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marax_server_sdk-0.2.9-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file marax_server_sdk-0.2.9.tar.gz.

File metadata

  • Download URL: marax_server_sdk-0.2.9.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for marax_server_sdk-0.2.9.tar.gz
Algorithm Hash digest
SHA256 654be9e3d16198f4968eb96e47089636cb0342f0378971dcdc7f3fb7fbb43c75
MD5 0d2b1716cbd558d71b96d6163aaf028a
BLAKE2b-256 4cad13bc1475abfafd8381192e152387f1ad5640a597860b82f915e3cb36baa2

See more details on using hashes here.

File details

Details for the file marax_server_sdk-0.2.9-py3-none-any.whl.

File metadata

  • Download URL: marax_server_sdk-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 37.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for marax_server_sdk-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8bf96a39226d7588d038fe3679ea66239c7d768ab2d7cca677afa282a28f4a47
MD5 d09d21661a7f8e1bb498c5eb7ee6c17e
BLAKE2b-256 760083e9cda87a781165a5e56a23671c6f9988ceb998e2fee61ae64d235953b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page