Skip to content

This repository is a python library, published via PyPI. This is built to make working with Replicon's Web Services easy.

License

Notifications You must be signed in to change notification settings

rajakodumuri/replicon-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Handler for Replicon Web Services

Downloads Supported Versions Contributors Publish Replicon Handler

Replicon-Handler is built in Python and is maintained by Rajendra Kodumuri. Interactions with Replicon WebServices are made possible, using the requests library.

Repetitive white noise, so to speak, can be avoided; Making working with the Replicon WebServices a breeze. Click here for more details.

from replicon_handler import RepliconHandler

replicon = RepliconHandler(
    company_key='company_key',
    username=None,
    password=None,
    authentication_token='',
    method='post',
    headers=headers,
    log_file=r'log_path\log_file.log'
)

headers['Content-Type'] = 'application/json'
headers['X-Replicon-Application'] = 'CompanyKey_OperationName_Version'
headers['Authorization'] = f'Bearer {replicon.authentication_token}'

Installing Replicon Handler

Replicon Handler is distributed via PyPI, installing it is as simple as:

> pip install -U replicon-handler

User Guide available on Read the Docs.

Read the Docs

Supported Features

Generation of Replicon tenant details and API URLs highlighted below, can be eliminated, to make working with the Replicon WebServices a breeze.

  • Finding the Slug.
  • Finding the Swimlane.
  • Generating URLs for:
    • Analytics API.
    • User Audit Log API.
    • Web Service End Points.
get_all_users = replicon.web_service('UserService1.svc', 'GetAllUsers')

payload = {}
all_users = replicon.connection_handler(get_all_users, payload)
  • Retries requests that failed due to connections failures.
  • Handles component call limitations of the Replicon Gen3 API.
  • Availability of concurrent threaded and asynchronous request handlers, out of the box.
get_user_details = replicon.web_service('UserService1.svc', 'GetUser2')

payloads = [{'userUri':user['uri']} for user in all_users]
all_users_details = replicon.threaded_handler(get_user_details, payloads, 5)

About

This repository is a python library, published via PyPI. This is built to make working with Replicon's Web Services easy.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages