Skip to content

Appesteijn/UraniumExampleOutputDevicePlugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Output Device

This is an example output device plug-in for Uranium.

Output devices are meant to communicate with a place where the output of the application can be stored. For instance, an export of the model or a result of computation.

An output device plug-in starts with a start() method and stops with a stop() method. This allows you to make a connection with your device while in the loading screen. This should then add one or more OutputDevice instances. For instance, a plug-in could continuously listen for incoming internet connections and add an output device whenever a new connection is made.

The actual output device finds the desired file type to write with, and then provides that file type's file writer with a stream that it can write to. The file writer does the rest.

Packaging

To package your plug-in, use the packaging script in Uranium: https://github.com/Ultimaker/Uranium/blob/master/create_plugin.py

Try the following command:

python3 /path/to/Uranium/create_plugin.py plugin_location /path/to/UraniumExampleExtensionPlugin

That should produce a .plugin file that can be added to any application based on Uranium.

About

An example output device plug-in for Uranium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%