Pyblish By Example
Search…
Pyblish By Example
1.8
Introduction
Hello World
Quickstart
Files
Coordination
Architecture
Branching I
Branching II
Branching III
Sharing
Validating I
Validating II
CVEI I
CVEI II
CVEI III
CVEI IV
Data
Report I
Report II
Report III
Report IV
Report V
Callback I
Callback II
Callback III
Logging
Filtering
Next Steps
Powered By
GitBook
Hello World
Our first publish will be about printing the classic "Hello World" to the screen. Here is the full source code.
1
import
pyblish
.
api
2
3
class
MyPlugin
(
pyblish
.
api
.
ContextPlugin
):
4
def
process
(
self
,
context
):
5
print
(
"hello python"
)
6
7
pyblish
.
api
.
register_plugin
(
MyPlugin
)
8
9
import
pyblish
.
util
10
pyblish
.
util
.
publish
()
Copied!
Running this in any Python environment, such as a standalone or built-in interpreter, will cause hello python to be printed to the screen.
Previous
Introduction
Next
Quickstart
Last modified
2yr ago
Copy link