python-nebri

python-nebri is a simple and easy-to-use package to make nebri api requests from a python application.


License
Other
Install
pip install python-nebri==0.1.5

Documentation

Python Nebri

The simple and easy-to-use package for making Nebri api requests from a python application.

This app is intended for use with a Nebri instance. Visit https://nebrios.com to sign up for free!

Installation

This app can be installed via pip:
pip install python-nebri

Usage

In order to use this component to make Nebri api requests, you must instantiate the class. ``` nebri = NebriClient('instance_name') ``` - instance name is your Nebri instance name. i.e. https://instance_name.nebrios.com

Public Functions

Currently, this client only supports making api requests.

NebriClient.api_request

  • api_module: the name of the api module stored on your Nebri instance
  • view_name: the name of the target function contained in the given api module
  • method: the desired HTTP request method
  • headers (optional): any custom headers you would like added to your request
  • payload (optional): an object containing params and values
  • files (optional): any files that you would like to upload via a POST request

Example

``` from nebri_client import NebriClient

client = NebriClient('instance_name') client.api_request('api_module', 'view_name', payload=json_payload)

outputs api response