Working with meta profiles from Python SDK
Python SDK offers you a way to handle meta profiles from the backend of your system.
Create and manage your meta profiles and their processes through simple API calls. You can do it through your Ziggeo account dashboard, however you can also do it through your own API calls.
It is simple, fast and bellow you can see exactly how to do it.
Python SDK Meta Profiles Methods
- create Create a new meta profile.
ziggeo.metaProfiles().create(arguments = None)
- key Meta Profile profile key.
- title Meta Profile profile title.
This method returns JSONExample:import sys from Ziggeo import Ziggeo if(len(sys.argv) < 3): print ("Error\n") print ("Usage: $>python metaprofiles_create.py YOUR_API_TOKEN YOUR_PRIVATE_KEY METAPROFILE_TITLE\n") sys.exit() api_token = sys.argv[1] private_key = sys.argv[2] metaprofiles_title = sys.argv[3] ziggeo = Ziggeo(api_token, private_key) arguments = {} arguments['title'] = metaprofiles_title metaprofiles = ziggeo.metaProfiles().create(arguments) print(metaprofiles)
- index Get list of meta profiles.
ziggeo.metaProfiles().index(arguments = None)
- limit Limit the number of returned meta profiles. Can be set up to 100.
- skip Skip the first [n] entries.
- reverse Reverse the order in which meta profiles are returned.
This method returns JSON - get Get a single meta profile
ziggeo.metaProfiles().get(token_or_key)
This method returns JSON - delete Delete the meta profile
ziggeo.metaProfiles().delete(token_or_key)
Python SDK Meta Profile Processes Methods
- index Return all processes associated with a meta profile
ziggeo.metaProfileProcess().index(meta_token_or_key)
This method returns JSON - get Get a single process
ziggeo.metaProfileProcess().get(meta_token_or_key, token_or_key)
This method returns JSON - delete Delete the process
ziggeo.metaProfileProcess().delete(meta_token_or_key, token_or_key)
- create_video_analysis_process Create a new video analysis meta process
ziggeo.metaProfileProcess().create_video_analysis_process(meta_token_or_key)
This method returns JSON - create_audio_transcription_process Create a new audio transcription meta process
ziggeo.metaProfileProcess().create_audio_transcription_process(meta_token_or_key)
This method returns JSON - create_nsfw_process Create a new nsfw filter meta process
ziggeo.metaProfileProcess().create_nsfw_process(meta_token_or_key, arguments = None)
- nsfw_action One of the following three: approve, reject, nothing.
This method returns JSON - create_profanity_process Create a new profanity filter meta process
ziggeo.metaProfileProcess().create_profanity_process(meta_token_or_key, arguments = None)
- profanity_action One of the following three: approve, reject, nothing.
This method returns JSON