Skip to content

nebrie/python-nebri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python Client for NebriOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages