Skip to main content

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

Release files for batch-automation 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for batch-automation 0.0.3
File Size Uploaded
batch_automation-0.0.3.tar.gz 33.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for batch-automation 0.0.3
File Interpreter ABI Platform
batch_automation-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 83.2 kB

Release files / batch_automation-0.0.3.tar.gz

Download URL batch_automation-0.0.3.tar.gz
Size 33.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c384dfd9063b0b4e48c4f3bf6ea071dca9133f6cfd2f7c98c36207259bb89ec2
BLAKE2b-256 checksum
How to use checksums
aeb4e11e78126a60f5a794e33fbf1ee6cfe26370c041b0bb6233d8aaa3cbcf9e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / batch_automation-0.0.3-py3-none-any.whl

Download URL batch_automation-0.0.3-py3-none-any.whl
Size 50.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8dd5dc25e0c469abc7364e1d706191bbf9e278f2b6f9e54d0a60b1102ee85b57
BLAKE2b-256 checksum
How to use checksums
4b25ca76194a607a8cbdf60e746c4d9f02b40c3eb2fa698b7e0d7859d2dc9348
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page