Skip to content

thingsdb/module-py-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo ThingsDB Module (Python)

Demo module written using the Python language.

Installation

Install the module by running the following command in the @thingsdb scope:

new_module('demo', 'github.com/thingsdb/module-py-demo');

Optionally, you can choose a specific version by adding a @ followed with the release tag. For example: @v0.1.0.

Configuration

This module does not require any config.

Exposed functions

Name Description
echo Accepts an input message (string) and returns the same message back in uppercase.
ping Return with pong.
msg Accepts an input message (string) and extra options.

echo

Syntax: echo(message)

Arguments

  • message: The string which will be returned in uppercase.

Example:

demo.echo("Hi Demo module!").then(|reply| {
    reply;
});

About

Demo ThingsDB Module (Python)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages