Skip to main content

konbini

PyPI version

おまえはもうショットいる。なに?!

Opinionated wrapper for Autodesk ~~~Shotgun~~~ ~~~ShotGrid~~~ I mean Flow Production Tracking 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

  1. Add konbinine to your project's requirements.txt.
  2. ???
  3. 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

Documentation

For now, refer to the docstring in the source code. Generally this is not meant to outright replace shotgun_api3 and there is some attributes that are intentionally missing as I don't use it (or yet to use it).

Extending konbinine

Coming soon!

Metadata

Release files for konbinine 0.3.11

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

Source distribution (sdist)

Source distribution for konbinine 0.3.11
File Size Uploaded
konbinine-0.3.11.tar.gz 23.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for konbinine 0.3.11
File Interpreter ABI Platform
konbinine-0.3.11-py3-none-any.whl Python 3 none any Details

Total release size: 47.3 kB

Release files / konbinine-0.3.11.tar.gz

Download URL konbinine-0.3.11.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5d24f46c938cb10dc34180d399646ed7d6da4f2804bb1676cce1f9e4f4d02422
BLAKE2b-256 checksum
How to use checksums
c4653f7f7214dfb1cf6b5d353ac7a136523efb6920e63f2d96d92d38235d7497
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / konbinine-0.3.11-py3-none-any.whl

Download URL konbinine-0.3.11-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
807d45b26ae1a08a937411233249ba4d797ef82fd350527e22ba790b5fdf50a7
BLAKE2b-256 checksum
How to use checksums
b7224ff1c92186ec6a496a38e54dc8f1362aa9ac486eaf1cef0cdfe0268feaed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.3.11 This release

2 release files

0.3.10

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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