Skip to main content

mecord tools

Project description

Mecord Python Tool

The Mecord Python Tool is a official tool for mecodr, you can use it to Register device to mecord server, other person can use Mecord Application assign tasks to you for implementation

Installation

The Mecord requires Python 3.10.6 or later.

Installing
pip install mecord-cli
Uninstalling
pip uninstall mecord-cli

Use

1. RegisterDevice To Mecord Server
$ mecord deviceid

use mecord mobile application scan qrcode to register your device to mecord server

2. Running
$ mecord service start

start a process to wait for the server to issue tasks. Please do not close it

Module Developer

$ mecord widget init

in empty folder, use above command craete a mecord module, structure is like

[widget folder]
    |-- h5
        |-- config.json     //*required, do not change*
        |-- icon.png
        |-- index.html      //*required* index web page
        |-- MekongJS.js      //*required, do not change*
    |-- script
        |-- main.py         //*required, do not change* 
        |-- run.py

if other person share widget code to you , you can add widget path in your computer to mecord environment

$ mecord widget add [path_with_widget_code]

you can modify script and h5 file yourself, then publish to mecord sever

$ mecord widget publish

#####other command set/get multi process task number

$ mecord set_multitask_num / get_multitask_num 1

add this device joined to other group using token, or show current group token , you can share it to other person

$ mecord add_token /  show_token [token_string]

unregister this device from mecord server

$ mecord unbind

get mecord version $ mecord version

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mecord_cli-0.7.220.tar.gz (134.7 kB view hashes)

Uploaded Source

Built Distribution

mecord_cli-0.7.220-py3-none-any.whl (147.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page