Skip to main content

peplink-api-client

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

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

  • API version: 1.0.1
  • Package version: 1.0.0
  • Generator version: 7.8.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

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 peplink_api_client

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 peplink_api_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import peplink_api_client
from peplink_api_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = peplink_api_client.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
with peplink_api_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = peplink_api_client.DefaultApi(api_client)
    token_request = peplink_api_client.TokenRequest() # TokenRequest |  (optional)

    try:
        # Generate a new access token
        api_response = api_instance.api_auth_token_grant_post(token_request=token_request)
        print("The response of DefaultApi->api_auth_token_grant_post:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->api_auth_token_grant_post: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultApi api_auth_token_grant_post POST /api/auth.token.grant Generate a new access token
DefaultApi api_status_wan_connection_get GET /api/status.wan.connection Get WAN status

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Metadata

Release files for peplink_api_client 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for peplink_api_client 1.0.2
File Size Uploaded Provenance Actions
peplink_api_client-1.0.2.tar.gz 25.3 kB Without provenance Details for peplink_api_client-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for peplink_api_client 1.0.2
File Interpreter ABI Platform Actions
peplink_api_client-1.0.2-py3-none-any.whl Python 3 none any Details for peplink_api_client-1.0.2-py3-none-any.whl

Total release size: 75.4 kB

Security for peplink_api_client 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page