Skip to content

A simple libcoap wrapper for Python3 to test the performance and functionality of CoAP servers.

License

Notifications You must be signed in to change notification settings

scottzach1/CoapTesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CoapTesting

A simple libcoap wrapper for Python3 to test the performance and functionality of CoAP servers.

About

This project is a Python wrapper for the coap-client command exposed by libcoap providing various testing utilities.

Dependencies

As this project utilises the coap-client command, libcoap must be installed and the coap-client must be present within the users PATH.

More Details: https://github.com/obgm/libcoap

Usage

The coap.py module contains various different utility functions. Examples of usage can be seen below. In the future this project may produce an official pip package, but for now coap.py must be copied into your projects structure.

from coap import *

addr = '192.168.1.12'

time, res = test(GET, 'temp', addr)

_, _ = test(PUT, 'temp', 'VALUE')
_ = test_paths(GET, ['temp', 'humid'], addr)
_ = test_times_sync(GET, 'temp', addr, 100)
_ = test_times_multi(GET, 'temp', addr, 100, workers=10)

About

A simple libcoap wrapper for Python3 to test the performance and functionality of CoAP servers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages