Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Python library for interacting with DVM runtimes via REST

Notifications You must be signed in to change notification settings

DVMProject/pydvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

PyDVM

Python libraries for interacting with DVMProject applications

DVMRest

dvmrest.py is used to interact with a DVM REST API endpoint, and handles authentication token exchange and automatic re-auth. DVMRest supports GET, PUT, and POST requests to DVM REST endpoints.

Usage

from .pydvm.dvmrest import DVMRest

# Create a new DVMRest connection
dvm_rest = DVMRest('127.0.0.1', 9990, 'PASSWORD)

# Query the list of peers from an FNE
rest_resp = dvm_rest.get("/peer/list")

# Iterate over the list of peers returned
for peer in rest_resp['peers']:
  print(peer)

About

Python library for interacting with DVM runtimes via REST

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages