Opinionated Autodesk Shotgun/ShotGrid API Wrapper.
Project description
konbini
おまえはもうショットいる。なに?!
Opinionated wrapper for Autodesk Shotgun I mean ShotGrid Python API because the API usage requirements is 便利じゃないでしょう?
コンビニね~ As there is an existing PyPI project using konbini name, this repo project name on PyPI will be konbinine.
How to Use
For Python 3.8 and newer! While Autodesk made shotgun_api3 to be compatible with Python 2 and 3, konbinine uses
dataclass
that is only available in Python 3.7 onwards. Starting with v0.1.6, Python 3.8 will be the minimum version due to the usage of TypedDict.
konbinine is designed to be used with web framework (such as Django, Flask, etc.) that interacts with ShotGrid. This library has not been tested inside Digital Content Creation (DCC) software such as Maya, 3ds Max or Houdini.
Technically it should just work but that is outside the scope of this library.
New Project
First time setup
- Add
konbinine
to your project'srequirements.txt
. - ???
- Profit (in improving code readability and debugging)
Using konbinine
I recommend configuring the environment variables before running the following code.
Set it using your .env
file or through the shell session etc.
# if your studio subscribed to Shotgun prior to the ShotGrid rename, the URL should
# looks like https://yourstudioname.shotgunstudio.com or something
KONBINI_BASE_URL=https://yourstudioname.shotgrid.autodesk.com
KONBINI_SCRIPT_NAME=YOURSHOTGRIDAPISCRIPTNAMEHERE
KONBINI_API_KEY=YOURSHOTGRIDAPIKEYHERE
from konbinine import Konbini
from konbinine.enums import SgEntity
kon = Konbini()
booking_schemas = kon.get_sg_entity_schema_fields(SgEntity.BOOKING)
# whatever booking schemas results here
Existing Project that Uses shotgun_api3
You will need to... rewrite/refactor your code to use konbinine! Pretty much the main reason why konbinine was created is to improve the Developer Experience (DX) when interacting with ShotGrid.
Quickstart for Developers
pip install -r requirements.txt
Extending konbinine
Coming soon!
TODO
- Implement
Sequence
dataclass - Handle Image/Movie upload gracefully (currently for Project entity only)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file konbinine-0.3.3.tar.gz
.
File metadata
- Download URL: konbinine-0.3.3.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe20486db2dd0ed1413b08db61b145396048f3a417b20cda82880307c1a66d12 |
|
MD5 | 1af7aa407db2cb77e32b603939319397 |
|
BLAKE2b-256 | 8600567144a6d201a3dadad285e335500a9a9c1c77a1619b002ac109e8f90181 |
File details
Details for the file konbinine-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: konbinine-0.3.3-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf810d84a9af2c6475355a01ee7f620326343db306391ad704634e15d9b10228 |
|
MD5 | 83ebfda1698fc6daf6edacb7a4c1780c |
|
BLAKE2b-256 | d361d972cc0471fa184c3b815392b145a8042f443d68c16da67e61c1421ff361 |