Skip to content

Files

plugin-template

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 13, 2021
Aug 13, 2021
Apr 1, 2021
Oct 7, 2022
Apr 5, 2022
Aug 13, 2021
Mar 18, 2020
Oct 21, 2021
Apr 1, 2021
Apr 5, 2022
Apr 5, 2022
Apr 1, 2021

Nanome - {{name}}

{{description}}

Dependencies

Docker

TODO: Provide instructions on how to install and link any external dependencies for this plugin.

TODO: Update docker/Dockerfile to install any necessary dependencies.

Usage

To run {{name}} in a Docker container:

$ cd docker
$ ./build.sh
$ ./deploy.sh [run_args]

Run args

These args are passed to deploy.sh, and then forwarded to the Plugin's run.py command

usage: run.py [-h] [-a HOST] [-p PORT] [-r] [-v] [-n NAME] [-k KEYFILE]
              [-i IGNORE] [--write-log-file WRITE_LOG_FILE]

Starts a Nanome Plugin.

optional arguments:
  -h, --help            show this help message and exit
  -a HOST, --host HOST  connects to NTS at the specified IP address
  -p PORT, --port PORT  connects to NTS at the specified port
  -r, --auto-reload     Restart plugin automatically if a .py or .json file in
                        current directory changes
  -v, --verbose         enable verbose mode, to display Logs.debug
  -n NAME, --name NAME  Name to display for this plugin in Nanome
  -k KEYFILE, --keyfile KEYFILE
                        Specifies a key file or key string to use to connect
                        to NTS
  -i IGNORE, --ignore IGNORE
                        To use with auto-reload. All paths matching this
                        pattern will be ignored, use commas to specify
                        several. Supports */?/[seq]/[!seq]
  --write-log-file WRITE_LOG_FILE
                        Enable or disable writing logs to .log file

Development

To run {{name}} with autoreload:

$ python3 -m pip install -r requirements.txt
$ python3 run.py -r [run_args]

License

MIT