Skip to main content

Batch Automation Tools and Packages

Project description

Batch Automation

Image Downloads

Batch Automation is a Python library with a variety of functions and APIs for dealing with 3d and non-3d related stuff.

A few examples:

  • AWS Thinkbox Deadline API
  • Blackmagic API
  • Google Services API
  • MongoDB API
  • Custom Tools

more functions will be added overtime

Installation

Use the package manager pip to install Batch Automation.

pip install batch_automation

Usage

AWS Thinkbox Deadline API

from batch_automation.deadline.custom.custom import *

# Returns all jobs in selected repository.
print (Repository('WebServiceName', Port).GetJobs())

# Returns all jobs in selected repository.
print (Repository('WebServiceName', Port).GetJobByName('Job-Name'))

# Returns a job details.
# you can search by "job_name" or "job_id", job_id method is a lot quicker
print (Repository('WebServiceName', Port).GetJobDetails('Job-Name'))

# Create the info_file and plugin_file and submit them to deadline
info_file = Repository().JobInfo(Name='Job-Name', 
                                UserName='UserName', 
                                Frames='1', 
                                Plugin='VraySpawner')
plugin_file = Repository().PluginInfo(Version='Max2023')
print(Repository('WebServiceName', Port).SubmitJob(info_file, plugin_file))

All standard api calls are included as well

from batch_automation.deadline.api.DeadlineConnect import DeadlineCon as Connect

repo = Connect('WebServiceName', Port)

#The list of Group names.
print (repo.Groups.GetGroupNames())

# The list of Jobs
print (repo.Jobs.GetJobs())

Blackmagic API Full list of funcions Link

from batch_automation.davinci.MediaPool import MediaPool
from batch_automation.davinci.ProjectManager import ProjectManager

# Returns currently selected Folder
print (MediaPool.GetCurrentFolder())

# Adds new timeline with given name
print (MediaPool.CreateEmptyTimeline('New-Timeline'))

# Imports specified file/folder paths into current Media Pool folder.
# Input is an array of file/folder paths. Returns a list of the MediaPoolItems created.
print (MediaPool.ImportMedia(['/mdeia/clip.mov']))

# Creates and returns a project if projectName (string) is unique, and None if it is not.
print(ProjectManager.CreateProject('New-Project'))

# Returns a list of dictionary items (with keys 'DbType', 'DbName' and optional 'IpAddress')
# corresponding to all the databases added to Resolve
print(ProjectManager.GetDatabaseList())

# Loads and returns the project
print(ProjectManager.LoadProject('Project-Name'))
...

Google API

from batch_automation.google.api import create_service

# Creates an Google Service
print (create_service('https://www.googleapis.com/auth/spreadsheets', 'sheets', 'v4', '/cred/OAuth.json'))

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache Software License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

batch_automation-0.0.3.tar.gz (33.0 kB view details)

Uploaded Source

Built Distribution

batch_automation-0.0.3-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

File details

Details for the file batch_automation-0.0.3.tar.gz.

File metadata

  • Download URL: batch_automation-0.0.3.tar.gz
  • Upload date:
  • Size: 33.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.8

File hashes

Hashes for batch_automation-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c384dfd9063b0b4e48c4f3bf6ea071dca9133f6cfd2f7c98c36207259bb89ec2
MD5 1c950c717d64fb3184edec2760141012
BLAKE2b-256 aeb4e11e78126a60f5a794e33fbf1ee6cfe26370c041b0bb6233d8aaa3cbcf9e

See more details on using hashes here.

File details

Details for the file batch_automation-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: batch_automation-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 50.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.8

File hashes

Hashes for batch_automation-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8dd5dc25e0c469abc7364e1d706191bbf9e278f2b6f9e54d0a60b1102ee85b57
MD5 842a266e6d325f4a476ddd7383ea5e31
BLAKE2b-256 4b25ca76194a607a8cbdf60e746c4d9f02b40c3eb2fa698b7e0d7859d2dc9348

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page