konbinine


Namekonbinine JSON
Version 0.3.8 PyPI version JSON
download
home_pagehttps://github.com/hueyyeng/konbini
SummaryOpinionated Autodesk Shotgun/ShotGrid API Wrapper.
upload_time2024-03-13 08:40:40
maintainerHuey Yeng
docs_urlNone
authorHuey Yeng
requires_python>=3.7
licenseMIT License Copyright (c) 2023 Huey Yeng Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords python library shotgrid shotgun api autodesk
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # konbini

[![PyPI version](https://badge.fury.io/py/konbinine.svg)](https://badge.fury.io/py/konbinine)

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

Opinionated wrapper for Autodesk Shotgun I mean [ShotGrid Python API](https://github.com/shotgunsoftware/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.

```shell
# 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
```

```python
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

```commandline
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!

## TODO

1. Implement `Sequence` dataclass

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hueyyeng/konbini",
    "name": "konbinine",
    "maintainer": "Huey Yeng",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "Huey Yeng <huey.yeng.mmu@gmail.com>",
    "keywords": "python,library,shotgrid,shotgun,api,autodesk",
    "author": "Huey Yeng",
    "author_email": "Huey Yeng <huey.yeng.mmu@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/53/44/f3435eac5d2e270de77a9128286dadc1c996b339bff06acf17ee0789913b/konbinine-0.3.8.tar.gz",
    "platform": null,
    "description": "# konbini\n\n[![PyPI version](https://badge.fury.io/py/konbinine.svg)](https://badge.fury.io/py/konbinine)\n\n\u304a\u307e\u3048\u306f\u3082\u3046\u30b7\u30e7\u30c3\u30c8\u3044\u308b\u3002\u306a\u306b\uff1f\uff01\n\nOpinionated wrapper for Autodesk Shotgun I mean [ShotGrid Python API](https://github.com/shotgunsoftware/python-api)\nbecause the API usage requirements is \u4fbf\u5229\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\uff1f\n\n> \u30b3\u30f3\u30d3\u30cb\u306d\uff5e As there is an existing PyPI project using **_konbini_** name, this repo project name\n> on PyPI will be **konbinine**.\n\n## How to Use\n\n> For Python 3.8 and newer! While Autodesk made **shotgun_api3** to be compatible with Python 2 and 3, **konbinine**\n> uses `dataclass` that is only available in Python 3.7 onwards. Starting with v0.1.6, Python 3.8 will be the minimum\n> version due to the usage of TypedDict.\n\n**konbinine** is designed to be used with web framework (such as Django, Flask, etc.) that interacts with ShotGrid. This\nlibrary has not been tested inside Digital Content Creation (DCC) software such as Maya, 3ds Max or Houdini.\n\nTechnically it should just work but that is outside the scope of this library.\n\n### New Project\n\n#### First time setup\n\n1. Add `konbinine` to your project's `requirements.txt`.\n2. ???\n3. Profit (in improving code readability and debugging)\n\n#### Using konbinine\n\nI recommend configuring the environment variables before running the following code.\n\nSet it using your `.env` file or through the shell session etc.\n\n```shell\n# if your studio subscribed to Shotgun prior to the ShotGrid rename, the URL should\n# looks like https://yourstudioname.shotgunstudio.com or something \nKONBINI_BASE_URL=https://yourstudioname.shotgrid.autodesk.com\nKONBINI_SCRIPT_NAME=YOURSHOTGRIDAPISCRIPTNAMEHERE\nKONBINI_API_KEY=YOURSHOTGRIDAPIKEYHERE\n```\n\n```python\nfrom konbinine import Konbini\nfrom konbinine.enums import SgEntity\n\nkon = Konbini()\nbooking_schemas = kon.get_sg_entity_schema_fields(SgEntity.BOOKING)\n# whatever booking schemas results here\n```\n\n### Existing Project that Uses shotgun_api3\n\nYou will need to... rewrite/refactor your code to use **konbinine**! Pretty much the main reason why **konbinine** was\ncreated is to improve the Developer Experience (DX) when interacting with ShotGrid.\n\n## Quickstart for Developers\n\n```commandline\npip install -r requirements.txt\n```\n\n## Documentation\n\nFor now, refer to the docstring in the source code. Generally this is not meant to outright replace `shotgun_api3` and\nthere is some attributes that are intentionally missing as I don't use it (or yet to use it).\n\n## Extending konbinine\n\nComing soon!\n\n## TODO\n\n1. Implement `Sequence` dataclass\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Huey Yeng  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Opinionated Autodesk Shotgun/ShotGrid API Wrapper.",
    "version": "0.3.8",
    "project_urls": {
        "Bug Reports": "https://github.com/hueyyeng/konbini/issues",
        "Homepage": "https://github.com/hueyyeng/konbini",
        "Source": "https://github.com/hueyyeng/konbini"
    },
    "split_keywords": [
        "python",
        "library",
        "shotgrid",
        "shotgun",
        "api",
        "autodesk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4cfa0d47ef37092222bbe238726be5893c143de8192ca178ca4de1a91b6e7223",
                "md5": "7c92ab06c44b09af8941f3eb8afdc3af",
                "sha256": "5949fb65ba589a8dfd759c6819780b87c8faa46e4c5f9a9a56f16f7fa6941dc5"
            },
            "downloads": -1,
            "filename": "konbinine-0.3.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7c92ab06c44b09af8941f3eb8afdc3af",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 22412,
            "upload_time": "2024-03-13T08:40:37",
            "upload_time_iso_8601": "2024-03-13T08:40:37.854901Z",
            "url": "https://files.pythonhosted.org/packages/4c/fa/0d47ef37092222bbe238726be5893c143de8192ca178ca4de1a91b6e7223/konbinine-0.3.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5344f3435eac5d2e270de77a9128286dadc1c996b339bff06acf17ee0789913b",
                "md5": "07ee20c0132d7afe0b53e15e879362d9",
                "sha256": "3d5dae78ceded1aa5e4fc79c80e59170260cd80e53baa645376dee91cf9c1a22"
            },
            "downloads": -1,
            "filename": "konbinine-0.3.8.tar.gz",
            "has_sig": false,
            "md5_digest": "07ee20c0132d7afe0b53e15e879362d9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 22594,
            "upload_time": "2024-03-13T08:40:40",
            "upload_time_iso_8601": "2024-03-13T08:40:40.010342Z",
            "url": "https://files.pythonhosted.org/packages/53/44/f3435eac5d2e270de77a9128286dadc1c996b339bff06acf17ee0789913b/konbinine-0.3.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-13 08:40:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hueyyeng",
    "github_project": "konbini",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "konbinine"
}
        
Elapsed time: 0.39224s