{ "info": { "author": "Christopher Crouzet", "author_email": "christopher.crouzet@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "Bana\n====\n\n.. image:: https://img.shields.io/pypi/v/bana.svg\n :target: https://pypi.python.org/pypi/bana\n :alt: PyPI latest version\n\n.. image:: https://readthedocs.org/projects/bana/badge/?version=latest\n :target: https://bana.readthedocs.io\n :alt: Documentation status\n\n.. image:: https://img.shields.io/pypi/l/bana.svg\n :target: https://pypi.python.org/pypi/bana\n :alt: License\n\n\nBana is a set of extensions for `Autodesk Maya`_'s Python API.\n\nThe Maya's Python API is often a good choice over the commands layer whenever\nperformances and robustness are valued. But because of its overall poor design,\nit is not uncommon that some *fundamental* functionalities are **lacking** out\nof the box and/or require too much **boilerplate** to get rolling.\n\nOther gotchas to be expected include methods that became too **daunting** to\nuse after porting in the *worst* possible way the API from C++ to Python,\n**undocumented** behaviours of certain features where error trialing is\neverything that is left, and methods **throwing** an exception when returning\n``None`` would have been more appropriate.\n\nBana aims at reducing these shortcomings to provide a more *friendly*,\n*predictable*, and *efficient* developing environment.\n\nUsing the monkey patching package |gorilla|_, new methods prefixed with ``bn``\nare inserted within some classes from the ``maya.OpenMaya*`` modules, thus\nextending their functionalities while making these new methods feel as if they\nwere built-in into Maya.\n\nSince performances are a primary reason for using the API, a set of benchmarks\nbuilt with the help of the package |revl|_ helps to ensure that these\nextensions remain as fast as possible.\n\n\nNotes\n-----\n\nBana extends on Maya's Python API 1.0 rather than 2.0 because the latter\nversion seems to be still incomplete. That being said, it is encouraged to use\nthe API 2.0 whenever possible since it provides a much more Pythonic interface\nwith increased performances.\n\nBana does *not* aim at making the API more Pythonic. This could in some cases\nimpact the performances, which goes against Bana's goal of keeping things fast.\n\n\nFeatures\n--------\n\n* easy retrieval of nodes from the scene.\n* robust and predictable specification for pattern matching with wildcards.\n* abstract away the usage of the ``maya.OpenMaya.MScriptUtil`` class.\n* performances as a top priority.\n\n\nUsage\n-----\n\n.. code-block:: python\n\n >>> import bana\n >>> bana.initialize()\n >>> from maya import OpenMaya\n >>> # Retrieve a transform node named 'root'.\n >>> root = OpenMaya.MFnTransform.bnGet(pattern='*|root')\n >>> # Recursively iterate over all the DAG nodes child of 'root'.\n >>> for node in root.bnFindChildren():\n ... print(node)\n >>> # Find all the mesh nodes in the scene containing the word 'Shape' but\n ... # not belonging to any namespace.\n >>> for node in OpenMaya.MFnMesh.bnFind(pattern='*|*Shape*'):\n ... print(node)\n\n\nSee the `Tutorial`_ section from the documentation for more detailed examples\nand explanations on how to use Bana.\n\n\nDocumentation\n-------------\n\nRead the documentation online at `bana.readthedocs.io`_ or check its source in\nthe ``doc`` directory.\n\n\nAuthor\n------\n\nChristopher Crouzet\n<`christophercrouzet.com `_>\n\n\nThanks\n------\n\n* Justin Israel for discovering that multiple instances pointing to a same\n Maya object return different hash values.\n\n\n.. |gorilla| replace:: ``gorilla``\n.. |revl| replace:: ``revl``\n\n.. _Autodesk Maya: http://www.autodesk.com/products/maya\n.. _bana.readthedocs.io: https://bana.readthedocs.io\n.. _GitHub project page: https://github.com/christophercrouzet/bana\n.. _gorilla: https://github.com/christophercrouzet/gorilla\n.. _revl: https://github.com/christophercrouzet/revl\n.. _Tutorial: https://bana.readthedocs.io/en/latest/tutorial.html", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/christophercrouzet/bana", "keywords": "Autodesk Maya API extension gorilla monkey patch", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "bana", "package_url": "https://pypi.org/project/bana/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bana/", "project_urls": { "Homepage": "https://github.com/christophercrouzet/bana" }, "release_url": "https://pypi.org/project/bana/0.1.0/", "requires_dist": [ "gorilla (>=0.2.0)", "coverage; extra == 'dev'", "revl; extra == 'dev'", "sphinx (>=1.3); extra == 'dev'", "sphinx (>=1.3); extra == 'docs'" ], "requires_python": "", "summary": "Set of extensions for Autodesk Maya's Python API", "version": "0.1.0" }, "last_serial": 2566331, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "73307e42730a481ce524c98c44199e7e", "sha256": "b3acd231d7bb0cbe4f2c5888f6f22396fff53767a12f5e494310127e9e52f6a1" }, "downloads": -1, "filename": "bana-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "73307e42730a481ce524c98c44199e7e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 25792, "upload_time": "2017-01-11T03:32:35", "url": "https://files.pythonhosted.org/packages/7e/61/27102cdbb28f71beded3afa07f2619ea5be1c6803655b714016059ab2139/bana-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "96f86e19be3a1e9dec921d7792417054", "sha256": "42c86a018508049f1a8e19714fb79fb110420894c430117704f7d19a74a8b492" }, "downloads": -1, "filename": "bana-0.1.0.tar.gz", "has_sig": false, "md5_digest": "96f86e19be3a1e9dec921d7792417054", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 77590, "upload_time": "2017-01-11T03:32:38", "url": "https://files.pythonhosted.org/packages/02/9a/f5cb46f538071d18fd57e1d52c7066344bb269e694e3d156cdea0e42d658/bana-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "73307e42730a481ce524c98c44199e7e", "sha256": "b3acd231d7bb0cbe4f2c5888f6f22396fff53767a12f5e494310127e9e52f6a1" }, "downloads": -1, "filename": "bana-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "73307e42730a481ce524c98c44199e7e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 25792, "upload_time": "2017-01-11T03:32:35", "url": "https://files.pythonhosted.org/packages/7e/61/27102cdbb28f71beded3afa07f2619ea5be1c6803655b714016059ab2139/bana-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "96f86e19be3a1e9dec921d7792417054", "sha256": "42c86a018508049f1a8e19714fb79fb110420894c430117704f7d19a74a8b492" }, "downloads": -1, "filename": "bana-0.1.0.tar.gz", "has_sig": false, "md5_digest": "96f86e19be3a1e9dec921d7792417054", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 77590, "upload_time": "2017-01-11T03:32:38", "url": "https://files.pythonhosted.org/packages/02/9a/f5cb46f538071d18fd57e1d52c7066344bb269e694e3d156cdea0e42d658/bana-0.1.0.tar.gz" } ] }