Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Latest commit

 

History

History
51 lines (33 loc) · 2.33 KB

README.md

File metadata and controls

51 lines (33 loc) · 2.33 KB

Scriptor

Scriptor was meanwhile superseded by viur-scriptor. Please go there for an actively developed version.

Scriptor is a Python scripting environment for ViUR running in the browser.

About

Scriptor can be used for custominzed analyzing, filtering, exporting or refining of any information provided from a VIUR-based system. It provides a set of pre-configured tools to easily access data from VIUR-modules, in-memory write data into CSV-files or output status information. This alltogether with the tools provided by Python's standard libary.

Scriptor is intended to be used by technically advised users for any kinds of tasks described above.

Scriptor uses the session of the user who is logged in, therefor logging into the ViUR-system before starting Scriptor is required.

Special thanks to Andreas H. Kelch for doing all the preliminary work on this tool.

Features

  • Runs out-of-the-box on any ViUR project
  • Editor with Python syntax highlighting (Codemirror 5.65.8)
  • Python 3.10.2 running in a webworker (using Pyodide 0.21.2)
  • Interaction protocol between the frontend and webworker
  • scripter.py provides tools for
    • viur namespace to view and list modules
    • csvwriter class for in-memory CSV file writer
    • logging namespace for data output with several severities
    • print() function
    • exit() function
  • Objects are JSON-serialized and pretty-printed for better readability

Setup

To integrate Scriptor into your project either unpack a release or add scriptor as a submodule to your repository into the folder deploy/scriptor.

Then, add the following entry to your app.yaml handler section:

- url: /scriptor
  static_dir: scriptor

Afterwards, you can access scriptor locally via http://localhost:8080/scriptor/scriptor.html or under the project URL when deployed from onto a specific app engine project.

Scriptor runs out of the box. It currently is limited to Chromium-based browsers only.

License

Copyright © 2022 by Mausbrand Informationssysteme GmbH.
Mausbrand and ViUR are registered trademarks of Mausbrand Informationssysteme GmbH.

MIT licensed. Please see the LICENSE file for details.