Skip to main content

cli tool to manage libivs modules

Project description

This is the npm + pip for libvis: it allows you to download, install and develop custom libvis modules.

Install libvis module

To download a module from libvis official repo

libvis-mods download gh:/libvis/<module name>
cd <module name>
libvis-mods install

Start your own module

Set up the project

To try out a simple module, you can start with a simple template that uses two files:

⟩ libvis-mods init-file MyModule
/home/dali/side-projects-hobby/pywebviz/mods/libvis_mods/project-templates/source-files {'name': 'MyModule'} .

⟩ cd MyModule/

~/MyModule ⟩ ls

Original template repo:

For a more complex project, use the init-dir command:

⟩ libvis-mods init-dir MyModule
/home/dali/side-projects-hobby/pywebviz/mods/libvis_mods/project-templates/source-dirs {'name': 'MyModule'} .

⟩ tree MyModule/
├── Makefile
├── back
│   ├──
│   ├──
│   └──
├── front
│   ├── index.js
│   ├──
│   └── style.css
├── js_requirements.txt
├── libvis-mod.conf
└── py_requirements.txt

2 directories, 11 files

Original template repo:

Develop with Hot-reload

cd MyModule
libvis-mods develop

This will start the react development server and a hot-reload server for the python module. The front and back will be reloaded on write. Use test variable on the web app to display the test_object from your module.


⟩ libvis-mods
Usage: libvis-mods [OPTIONS] COMMAND [ARGS]...

  --help  Show this message and exit.

  develop    Run the web server in development mode with hot reload
  download   Download source for the module into ./`module_name`
  install    Install a module from directory
  list       list installed modules
  uninstall  Uninstall module
  where      Prints locations of where modules are installed


Just yarn or npm to build the webapp.


This project is under active development. Any feedback is welcome!

The mods repo is currently here

Project details

Download files

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

Files for libvis-mods, version 0.1.12
Filename, size File type Python version Upload date Hashes
Filename, size libvis_mods-0.1.12-py3-none-any.whl (63.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size libvis_mods-0.1.12.tar.gz (45.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page