Working with effect profiles from Python SDK
Python SDK offers you a way to handle effect profiles from the backend of your system.
Create and manage your effect profiles and their processes through simple API calls. All that from the comfort of your Python scripts.
It is simple, fast and bellow you can see exactly how to do it.
Python SDK Effect Profiles Methods
- create Create a new effect profile.
ziggeo.effectProfiles().create(arguments = None)
- key Effect profile key.
- title Effect profile title.
- default_effect Boolean. If TRUE, sets an effect profile as default. If FALSE, removes the default status for the given effect
This method returns JSON - index Get list of effect profiles.
ziggeo.effectProfiles().index(arguments = None)
- limit Limit the number of returned effect profiles. Can be set up to 100.
- skip Skip the first [n] entries.
- reverse Reverse the order in which effect profiles are returned.
This method returns JSON - get Get a single effect profile
ziggeo.effectProfiles().get(token_or_key)
This method returns JSON - delete Delete the effect profile
ziggeo.effectProfiles().delete(token_or_key)
- update Updates an effect profile.
ziggeo.effectProfiles().update(token_or_key, arguments = None)
- default_effect Boolean. If TRUE, sets an effect profile as default. If FALSE, removes the default status for the given effect
This method returns JSON
Python SDK Effect Profile Processes Methods
- index Return all processes associated with a effect profile
ziggeo.effectProfileProcess().index(effect_token_or_key, arguments = None)
- states Filter streams by state
This method returns JSON - get Get a single process
ziggeo.effectProfileProcess().get(effect_token_or_key, token_or_key)
This method returns JSON - delete Delete the process
ziggeo.effectProfileProcess().delete(effect_token_or_key, token_or_key)
- create_filter_process Create a new filter effect process
ziggeo.effectProfileProcess().create_filter_process(effect_token_or_key, arguments = None)
- effect Effect to be applied in the process
This method returns JSON - create_watermark_process Attaches an image to a new stream
ziggeo.effectProfileProcess().create_watermark_process(effect_token_or_key, arguments = None, file = None)
- file Image file to be attached
- vertical_position Specify the vertical position of your watermark (a value between 0.0 and 1.0)
- horizontal_position Specify the horizontal position of your watermark (a value between 0.0 and 1.0)
- video_scale Specify the image scale of your watermark (a value between 0.0 and 1.0)
This method returns JSON - edit_watermark_process Edits an existing watermark process.
ziggeo.effectProfileProcess().edit_watermark_process(effect_token_or_key, token_or_key, arguments = None, file = None)
- file Image file to be attached
- vertical_position Specify the vertical position of your watermark (a value between 0.0 and 1.0)
- horizontal_position Specify the horizontal position of your watermark (a value between 0.0 and 1.0)
- video_scale Specify the image scale of your watermark (a value between 0.0 and 1.0)
This method returns JSON