Skip to content

Latest commit

 

History

History

tools

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Helper Scripts

install requirements

pip install pye3dc[develop]

Convert RSCP Tags

The script convert_rscp_tags.py can be used to generate the RscpTag(Enum) class if a new version of the Javascript rscp library (https://s10.e3dc.com/s10/js/rscpLibV0.9.3.min.js) is available.

usage

usage: convert_rscp_tags.py [-h] [-r RSCPLIB]

E3DC rscp tags convert

options:
  -h, --help            show this help message and exit
  -r RSCPLIB, --rscpLib RSCPLIB
                        rscp library file

Run tests

The script tests.py will run all non altering methods for pye3dc for testing or sharing the output.

usage

usage: tests.py [-h] [-c CONFIGURATION] [-m] [-v] -u USERNAME -p PASSWORD [-i IPADDRESS] [-k KEY] [-s SERIALNUMBER]

E3DC tests

options:
  -h, --help            show this help message and exit
  -c CONFIGURATION, --configuration CONFIGURATION
                        configuration of E3DC
  -m, --module          use locally installed E3DC module for test
  -v, --verbose         use local E3DC module for test

required named arguments:
  -u USERNAME, --username USERNAME
                        username of E3DC
  -p PASSWORD, --password PASSWORD
                        password of E3DC

required named arguments for local connection:
  -i IPADDRESS, --ipaddress IPADDRESS
                        IP address of E3DC
  -k KEY, --key KEY     rscp key of E3DC

required named arguments for web connection:
  -s SERIALNUMBER, --serialnumber SERIALNUMBER
                        serialnumber of E3DC

Run tests for different python versions

The script testcontainers.py wil run the tests, using docker, for multiple Python versions supported by this library.

usage

usage: testcontainers.py [-h] [-l LIST] [-c CONFIGURATION] [-m MODULE] [-v] -u USERNAME -p PASSWORD [-i IPADDRESS] [-k KEY]
                         [-s SERIALNUMBER]

E3DC testcontainers

options:
  -h, --help            show this help message and exit
  -l LIST, --list LIST  list of Python versions to test with
  -c CONFIGURATION, --configuration CONFIGURATION
                        configuration of E3DC
  -m MODULE, --module MODULE
                        specify E3DC module version to be installed for tests. Use local to install from sources
  -v, --verbose         use local E3DC module for test

required named arguments:
  -u USERNAME, --username USERNAME
                        username of E3DC
  -p PASSWORD, --password PASSWORD
                        password of E3DC

required named arguments for local connection:
  -i IPADDRESS, --ipaddress IPADDRESS
                        IP address of E3DC
  -k KEY, --key KEY     rscp key of E3DC

required named arguments for web connection:
  -s SERIALNUMBER, --serialnumber SERIALNUMBER
                        serialnumber of E3DC