Skip to content

LetheanMovement/sdp-api-python

Repository files navigation

letheanSDP

Functionality to simplify using LTHN

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

  • API version: 1.2.2
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://lt.hn

Requirements.

Python >= 3.6

Installation & Usage

pip install

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

pip install git+https://github.com/LetheanMovement/sdp-api-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/LetheanMovement/sdp-api-python.git)

Then import the package:

import letheanSDP

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 letheanSDP

Getting Started

Please follow the installation procedure and then run the following:

import time
import letheanSDP
from pprint import pprint
from letheanSDP.api import vpn_api
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = letheanSDP.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
with letheanSDP.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = vpn_api.VpnApi(api_client)
    data_dir = "data_dir_example" # str | Returns the binary version
version = True # bool | Returns the binary version (optional)

    try:
        api_instance.start_letheand(data_dir, version=version)
    except letheanSDP.ApiException as e:
        print("Exception when calling VpnApi->start_letheand: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
VpnApi start_letheand GET /letheand/start

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

contact@lethean.io

Notes for Large OpenAPI documents

If the OpenAPI document is large, imports in letheanSDP.apis and letheanSDP.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:

Solution 1: Use specific imports for apis and models like:

  • from letheanSDP.api.default_api import DefaultApi
  • from letheanSDP.model.pet import Pet

Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:

import sys
sys.setrecursionlimit(1500)
import letheanSDP
from letheanSDP.apis import *
from letheanSDP.models import *

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published