Pyblish By Example
1.8
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
On this page

Was this helpful?

Hello World

Our first publish will be about printing the classic "Hello World" to the screen. Here is the full source code.

import pyblish.api

class MyPlugin(pyblish.api.ContextPlugin):
  def process(self, context):
    print("hello python")

pyblish.api.register_plugin(MyPlugin)

import pyblish.util
pyblish.util.publish()

Running this in any Python environment, such as a standalone or built-in interpreter, will cause hello python to be printed to the screen.

PreviousIntroductionNextQuickstart

Last updated 5 years ago

Was this helpful?