Saravanan666/pypi-org huggingface dataset:
Package: maya-mock-completion
MAYA MOCK COMPLETIONThis project is a custom modification of Maya'scommands/apistub libraries that allows you to execute python code that uses these libraries from a regular python interpreter, ideally the one from your venv.Developing code for Maya can be a bit sluggish since it normally takes the following steps:Opening Maya (maybe multiple times).Setting up a way to send the code from your IDE to Maya.Setting up the command completion to get Maya's libraries on your IDE.Once code is sent, you need to refresh it to apply the changes unless you want to restart the app.Also, if you are building your own packages you might have other dependencies that you might not want to install to yourmayapyinterpreter. Because of this you might have a separate virtual environment that contains these, but you cannot use amayapyas a base interpreter for creating venvs.What this package allows you is to separate your code from Maya to a certain degree. By installing this "mock" completion you can use Maya's libraries using a regular python interpreter.This is different from using the application instandalonemode since you won't be initializing any maya at all.Important:The code will run since it will find Maya's modules (cmds, pymel, api...), and they won't throw any errors due to Maya not being open. However,please notice that the objects generated by the api only return proxy objects and commands don't do anything real. They just "pass" or return other proxy objects.The utility from this is that you can play with these proxy objects and commands in a way that mimics Maya's behavior. Then, when you want you can execute that same code inside Maya and it should behave the same way but providing a meaningful output.This can also be useful for quick UI development, making unittests and running them from your IDE of choice or making your code just more abstract overall by removing the necessity to run the code inside Maya.How to useYou can do one of the following:Install this package via pip once it is available on pypi and just import the modules on your code as normal.Save this package in your directory of choice and add the path to it to your interpreter's list of paths manually.Then you should be able to run the code using the normal python interpreter.# Imports won't crashimportmaya.cmdsasmcimportmaya.api.OpenMayaasommc.polyCube()# Should provide flags suggestions with correct typing inference, but it won't do anythingm_obj=om.MGlobal.getActiveSelectionList()# Returns proxy object that doesn't do anything either but has the same methods as the real objectDisclaimersPySide2's completion hasn't been added in case you might want to run UI code using the real library. If this is not what you want you can use the same principle to run the code in the same way.This project is just a concept of a workflow. It might have its shortcomings, and it hasn't been tested in a real production, so I am not entirely sure how useful or reliable it actually is.This is still being updated as not all methods of the API mock completion return proxy objects. That is to say these will get updated as they are required.Cheers and have fun!
Package: mayan-cabinets
DescriptionMayan EDMS app that stores documents in a multi level hierarchy.LicenseThis project is open sourced under the Apache 2.0InstallationActivate the virtualenv where you installed Mayan EDMS.
Install from PyPI:pip install mayan-cabinetsIn your settings/local.py file addcabinetsto yourINSTALLED_APPSlist:INSTALLED_APPS += (
    'cabinets',
)Run the migrations for the app:mayan-edms.py migrateAdd the media files from the app:mayan-edms.py collectstaticUpgradingActivate the virtualenv where you installed Mayan EDMS.
Install the latest version of Cabinets from PyPI:pip install -U mayan-cabinetsDevelopmentClone repository in a directory outside of Mayan EDMS:git clone https://gitlab.com/mayan-edms/mayayn-cabinets.gitSymlink the app into your Mayan EDMS’ app folder:ln -s <repository directory>/cabinets/ <Mayan EDMS directory>/mayan/appsIn your settings/local.py file addcabinetsto yourINSTALLED_APPSlist:INSTALLED_APPS += (
    'cabinets',
)Run the migrations for the app:./manage.py migrate1.1.1 (2017-03-09)Fix typo that removed the jstree dist folder
Multi level widget should render correctly now1.1.0 (2017-02-07)Fix cabinet list API endpoint.Improve cabinet document API endpoints.Add more API tests.1.0.0 (2017-01-25)Initial release.
Package: mayan-credentials
DescriptionMayan EDMS app to manage credentials.LicenseThis project is open sourced under theApache 2.0 License.InstallationInstall from PyPI in the samevirtualenvwhere you installed Mayan EDMS.
Or if using the Docker image, passmayan-credentialsto theMAYAN_PIP_INSTALLSenvironment variable.pip install mayan-credentialsAddcredentialsto theCOMMON_EXTRA_APPSsetting, either as an
environment variable, from a Python settings modules, or from the UI
via theconfig.yamlconfiguration file.Python settings module example:INSTALLED_APPS += (
    'credentials',
)Run the migrations for the app (not required for the Docker image):mayan-edms.py migrateRequirementsMayan EDMS version 3.41.4.1 (2023-06-12)Support new event manager module location.1.4 (2022-01-25)Update for Mayan EDMS version 4.2.1.3 (2021-06-03)Update for version 4.0.1.2 (2021-02-23)Add aninternal_namefield.Add Google Service Account backend.Support post processing of credential objects.1.1 (2020-12-15)Add API views.Change the import module name from “credentials” to
“credential_backends”.1.0.2 (2020-09-09)Fix grammatical error.Include object on the view context to allow showing the missing
menu entries.Normalize URL prefixes.1.0.1 (2020-09-07)Update absolute imports to self.1.0.0 (2020-09-01)Initial release
Package: mayan-document-classifier
DescriptionMayan EDMS machine learning document classifier.LicenseThis project is open sourced under theApache 2.0 License.InstallationInstall from PyPI in the samevirtualenvwhere you installed Mayan EDMS.
Or if using the Docker image, passmayan-document-classifierto theMAYAN_PIP_INSTALLSenvironment variable.pip install mayan-document-classifierAdddocument_classifierto theCOMMON_EXTRA_APPSsetting, either as an
environment variable, from a Python settings modules, or from the UI
via theconfig.yamlconfiguration file.Python settings module example:INSTALLED_APPS += (
    'document_classifer',
)Run the migrations for the app (not required for the Docker image):mayan-edms.py migrateRequirementsMayan EDMS version 3.41.0.2 (2021-03-04)Fix Google AI library dependency definition.1.0.1 (2021-03-04)Add missing Google AI library dependency.1.0.0 (2021-01-06)Initial release
Package: mayan-document_renaming
DescriptionMayan EDMS app to allow automatic renaming of documents upon upload.LicenseThis project is open sourced under theMIT License.InstallationActivate the virtualenv where you installed Mayan EDMS.Install from PyPI:pip install mayan-document_renamingIn your settings/local.py file adddocument_renamingto yourINSTALLED_APPSlist:INSTALLED_APPS += (
    'document_renaming',
)Run the migrations for the app:mayan-edms.py migrateUsageCreate a sequence.Create a renaming template a document type using Django’s templating language and referencing a sequence’s.next_valuemethod.Example:Invoice-{{ sequence_invoice.next_value|stringformat:"05d" }}This will rename a new document as “Invoice-0000”. A subsequent document will be renamed as “Invoice-0001” and so on.DevelopmentClone repository in a directory outside of Mayan EDMS:git clone https://gitlab.com/mayan-edms/document_renaming.gitSymlink the app into your Mayan EDMS’ app folder:ln -s <repository directory>/document_renaming/ <Mayan EDMS directory>/mayan/appsIn your settings/local.py file adddocument_renamingto yourINSTALLED_APPSlist:INSTALLED_APPS += (
    'document_renaming',
)Run the migrations for the app:./manage.py migrate1.0.0 (2016-01-02)Initial release
Package: mayan-dropbox
DescriptionMayan EDMS app to migrate files from Dropbox.LicenseThis project is open sourced under theApache 2.0 License.InstallationInstall from PyPI in the samevirtualenvwhere you installed Mayan EDMS.
Or if using the Docker image, passmayan-dropboxto theMAYAN_PIP_INSTALLSenvironment variable.pip install mayan-dropboxAdddropboxto theCOMMON_EXTRA_APPSsetting, either as an
environment variable, from a Python settings modules, or from the UI
via theconfig.yamlconfiguration file.Python settings module example:INSTALLED_APPS += (
    'dropbox',
)Run the migrations for the app (not required for the Docker image):mayan-edms.py migrateRequirementsdropbox- Dropbox Python SDK (https://www.dropbox.com/developers/documentation/python#install)Mayan EDMS version 3.4UsageCreate an app in Dropbox’s App Console (https://www.dropbox.com/developers/apps/).Generate an Access Token with no expiration.Create a credential instance in the Mayan EDMS Dropbox app and enter the Access Token.Create an Import Setup that will filter the files to fetch from Dropbox.Click the “Populate” button and check that the item count is correct.Click the “Process” button to start the import process.1.0.0 (2020-09-01)Initial release
Package: mayan-exif
DescriptionMayan EDMS app that extracts image documents’ EXIF data.LicenseThis project is open sourced under theMIT License.InstallationActivate the virtualenv where you installed Mayan EDMS.Install from PyPI:pip install mayan-exifIn your settings/local.py file addexifto yourINSTALLED_APPSlist:INSTALLED_APPS += (
    'exif',
)Run the migrations for the app:mayan-edms.py migrateSettingsEXIF_BACKEND: Specifies the backend used to extract the EXIF data, default: exif.backends.exiftool.EXIFTool.RequirementsExifToolhttp://www.sno.phy.queensu.ca/~phil/exiftool/UsageEXIF data is extracted automatically upon initial document upload or version uploads. The EXIF data is available via the
.exif_value_of. accessor of the document version model. Example:{{ document.exif_value_of.FileType }}or:{{ document.latest_version.exif_value_of.FileType }}returns the ‘PNG’ string for PNG image files. This accessor can be used anywhere template expressions are used: indexing, smart links, etc.DevelopmentClone repository in a directory outside of Mayan EDMS:git clone https://gitlab.com/mayan-edms/exif.gitSymlink the app into your Mayan EDMS’ app folder:ln -s <repository directory>/exif/ <Mayan EDMS directory>/mayan/appsIn your settings/local.py file addexifto yourINSTALLED_APPSlist:INSTALLED_APPS += (
    'exif',
)Run the migrations for the app:./manage.py migrateEXIF Backends are just a class with a single method calledexecutewhich receives a document
version instance and returns a dictionary of EXIF tags with their corresponding values. The default backend
callsexiftoolusing the JSON parameter and then turn that JSON result into a Python dictionary:class EXIFTool(object):
    def execute(self, document_version):
        new_file_object, temp_filename = tempfile.mkstemp()

        try:
            document_version.save_to_file(filepath=temp_filename)
            result = exiftool(temp_filename)
            return json.loads(result.stdout)[0]
        finally:
            fs_cleanup(filename=temp_filename)1.0.0 (2015-12-22)Initial release
Package: mayan-shareable-links
DescriptionMayan EDMS app to provide unique links to documents.LicenseThis project is open sourced under theApache 2.0 License.InstallationInstall from PyPI in the samevirtualenvwhere you installed Mayan EDMS.
Or if using the Docker image, passmayan-shareable-linksto theMAYAN_PIP_INSTALLSenvironment variable.pip install mayan-shareable-linksAddshareable_linkto theCOMMON_EXTRA_APPSsetting, either as an
environment variable, from a Python settings modules, or from the UI
via theconfig.yamlconfiguration file.Python settings module example:INSTALLED_APPS += (
    'shareable_links',
)Run the migrations for the app (not required for the Docker image):mayan-edms.py migrateRequirementsMayan EDMS version 3.41.0.0 (2020-12-XX)Initial release
Package: mayarepacker
mayarepackerAutomatic package reloader for Maya.README Japanese versionFeaturesThis repository is a feature that makes it easy to hot-load their tools when they create them in Maya.When monitoring is started, the specified Package will be reloaded when the pythonFile under the specified folder is updated.It is also possible to manually reload at any time.How to installInstall it with pip.Runpip install mayarepacker.You can start it by running the following in the Maya console.Register it on the shelf and use it as needed.importmayarepackermayarepacker.main()UsageThere are two modes of mayarepackerAutomatic reloadSpecify a folder and mayarepacker will reload the specified package when there is an update to the Python files under that folder.Manual reloadReloads the specified package.Manual ReloadSpecify the reload targetClick the reload button.Auto ReloadSpecify the folder to monitorSelect the target to reload when there is an updateStart monitoringConfirm that the file is automatically updated when it is updated.If you want to stop the monitoring, you can click the Stop button or close the tool.Support〇・・confirmed operation.？・・Not tested.Maya VerisonWindowsMac2018〇？2019？？2020〇〇2022〇？release1.0.2Fixed an issue that prevented Maya2018 from starting properly due to QStringModel.1.0.0Initial release.
Package: maya-rig-core
maya_rig_core一个好用的绑定核心库目录快速开始安装使用版权说明快速开始安装注意下方的python是你的Python, 正常情况下可以直接通过python调用, 而Maya的python一般是C:\ProgramFiles\Autodesk<Maya版本>\bin\mayapy.exepython -m pip install maya-rig-core在windows下maya的安装例子注意:请将Maya路径替换为自己的。请使用cmd"C:\Program Files\Autodesk\Maya2018\bin\mayapy.exe" -m pip install maya-rig-core使用创建控制器与组# -*-coding:utf-8 -*-from__future__importprint_function,unicode_literals,divisionfromrig_core.allimport*ctx=Ctx()con=ctx.controller()grp=ctx.add_group_to_object(con)创建名称空间上下文# -*-coding:utf-8 -*-from__future__importprint_function,unicode_literals,divisionfromrig_core.allimport*ctx=Ctx()withctx.enter_new_name_space(prefix='prefix_'):con_list=ctx.controller()print('在这里你可以查看名称空间上下文结束之后的名称',con_list)创建生成块上下文# -*-coding:utf-8 -*-from__future__importprint_function,unicode_literals,divisionfromrig_core.allimport*ctx=Ctx()# nodes 就是这个生成块记录的节点, 两个nodes都是.withctx.enter_build_block(key=lambdanodes:print('从回调获得 生成块中创建了什么节点 >>  ',nodes))asnodes:con_list=ctx.controller()print('从变量获得 生成块中创建了什么节点 >>  ',nodes)使用Tag过滤节点# -*-coding:utf-8 -*-from__future__importprint_function,unicode_literals,divisionfromrig_core.allimport*ctx=Ctx()# 进入一个新的Tag运行时(不进入其实也能跑,但是这里为了演示就进入了)withctx.enter_new_tag_rt('test_tag_rt'):# 创建有one标签的控制器one_con_list=ctx.controller(tags=['one'])# 创建有two标签的控制器two_con_list=ctx.controller(tags=['two'])# 创建过滤器f=ctx.filter()# 过滤节点nodes=f.tag_equal('one')print('搜索到的节点',list(nodes))进入一个新的根对象# -*-coding:utf-8 -*-from__future__importprint_function,unicode_literals,divisionfromrig_core.allimport*ctx=Ctx()root_con=ctx.controller()root_grp=ctx.add_group_to_object(root_con)withctx.enter_new_root_object(root_con):child_con=ctx.controller()child_grp=ctx.add_group_to_object(child_con)虚拟骨骼树的使用# -*-coding:utf-8 -*-from__future__importprint_function,unicode_literals,divisionfromrig_core.allimport*ctx=Ctx()# 创建控制器和组con_list=ctx.controller_list(tags=['test'],count=10)grp_list=ctx.add_group_to_object_list(con_list,tags=['test'])# 将控制器添加虚拟骨骼树下面ctx.root_joint.add_joint_chain_from_object_list(con_list)# 将虚拟骨骼树转化为实体骨骼create_real_joints_from_root(ctx.root_joint)进入一个新的根虚拟关节# -*-coding:utf-8 -*-from__future__importprint_function,unicode_literals,divisionfromrig_core.allimport*ctx=Ctx()root_con=ctx.controller()root_grp=ctx.add_group_to_object(root_con)# 进入一个新的根虚拟关节withctx.create_child_joint_as_new_root_joint(obj=root_con):# 创建控制器和组con_list=ctx.controller_list(tags=['test'],count=10)grp_list=ctx.add_group_to_object_list(con_list,tags=['test'])# 将控制器添加虚拟骨骼树下面ctx.root_joint.add_child_from_object_list(con_list)# 将虚拟骨骼树转化为实体骨骼create_real_joints_from_root(ctx.root_joint)节点数据库功能# -*-coding:utf-8 -*-from__future__importprint_function,unicode_literals,divisionfromrig_core.allimport*ctx=Ctx()con=ctx.controller()grp=ctx.add_group_to_object(con)# 进入一个新的节点数据库运行时(不进入其实也能跑,但是这里为了演示就进入了)withctx.enter_new_all_node_db_rt('test_attributes_name'):# 向控制器储存ctx.all_node_db_rt[con,'test_key']='test_all_db_rt_data'# 从控制器读取数据print('从控制器读取的数据',ctx.all_node_db_rt[con,'test_key'])版权说明该项目签署了Apache-2.0 授权许可，详情请参阅 LICENSE
Package: maya-rig-operation-graph
maya-rig-operation-graphmaya计算图的实现目录快速开始安装使用版权说明快速开始安装注意下方的python是你的Python, 正常情况下可以直接通过python调用,而Maya的python一般是”C:Program FilesAutodesk\\binmayapy.exe”python -m pip install maya-rig-operation-graph在windows下maya的安装例子注意:请将Maya路径替换为自己的。如果你需要安装到maya的python的site-packages下时,请使用管理员身份运行安装命令. (在你没有安装到一个特定目录下时建议你这么干)"C:\Program Files\Autodesk\Maya2018\bin\mayapy.exe" -m pip install maya-rig-operation-graph使用例子# -*-coding:utf-8 -*-from__future__importunicode_literals,print_function,divisionfromrig_core.allimport*fromrig_operation_graph.allimport*ctx=Ctx()# 使用计算图进行数学运算out_attr=float_min(ctx,0,1)print(out_attr,out_attr.get_value())out_attr=float_max(ctx,0,1)print(out_attr,out_attr.get_value())out_attr=float_mean(ctx,0,1)print(out_attr,out_attr.get_value())out_attr=float_pow(ctx,10,10)print(out_attr,out_attr.get_value())out_attr=float_sin(ctx,0.5)print(out_attr,out_attr.get_value())out_attr=float_cos(ctx,0.5)print(out_attr,out_attr.get_value())out_attr=float_tan(ctx,0.5)print(out_attr,out_attr.get_value())# 使用计算图进行向量数学运算out_attr=vector_add(ctx,(1,1,1),(-1,-1,-1))print(out_attr,out_attr.get_value())out_attr=vector_sub(ctx,out_attr,(-1,1,-1))print(out_attr,out_attr.get_value())out_attr=vector_mul(ctx,out_attr,(1.5,1.5,1.5))print(out_attr,out_attr.get_value())out_attr=vector_div(ctx,out_attr,(3,3,3))print(out_attr,out_attr.get_value())out_attr=vector_pow(ctx,out_attr,(3,3,3))print(out_attr,out_attr.get_value())out_attr=vector_mean(ctx,out_attr,(0,0,0),(0,0,0),(0,0,0))print(out_attr,out_attr.get_value())out_attr=vector_sum(ctx,out_attr,out_attr,out_attr,out_attr)print(out_attr,out_attr.get_value())版权说明该项目签署了Apache-2.0 授权许可，详情请参阅 LICENSE
Package: maya-sdk
maya-sdkA client library for accessing Maya Insights APIUsageimportmaya_sdkmaya_sdk.api_key=<API_KEY>API KeyReplace the <API_KEY> in the examples with an api key provided from Maya Insights. To generate a key, please contact our live chat support athttps://mayainsights.com.ExamplesCSV Uploadimportmaya_sdkmaya_sdk.api_key=<API_KEY>withopen("orders.csv","rb")asf:maya_sdk.files.upload_csv(category="imported_orders",file=f)
Package: maya-stubs
Maya StubsType Annotated Stubs for Autodesk Maya's python APIsGoalsProvide fully type annotated stubs for maya.cmds and OpenMaya 1.0 & 2.0StatusNote that is very much in progress and it is unlikely that the stubs will ever be perfect.At this point, even if some of themaya.cmdsannotations are wrong/misleading, I would consider it a better experience than using the stubs from the devkit.
The stubs from OpenMaya 1.0 and 2.0 are very minimal and only have*args, **kwargssignatures, which should be pretty close to the devkit stubs.🚧 maya.cmds: In ProgressStubs for all commands.Accurate Arguments signatures for most commands.
Parsed from the HTML Docs or the synopsys fromcmds.help("command")Accurate Positional Only Arguments for most command.Accurate Return types on most commandsDocstrings.Accurate Arguments signatures all commands.Accurate Return types all most commands🚧 OpenMaya 1.0: IncompleteStubs for all membersAccurate Argument SignaturesReturn TypesDocstrings.🚧 OpenMaya 2.0: IncompleteStubs for all membersAccurate Argument SignaturesReturn TypesDocstrings.InstallationYou can get the stubs with one of two ways:Runpip install maya-stubsfrom the python executable used by your IDE.Download them manually from theGithub releasesand let your IDE know of their location.NotesPyCharm maya.cmds completionPyCharm users may not see code completion formaya.cmdsas the editor limits code insight features by default on files over 2.5 MB for performance reasons. Currently the cmds stub is over this limit.This value can be increased inPyCharm's properties, accessible via theHelp > Edit Custom Propertiesmenu.Code completion should work after adding the line below to the properties file and restarting PyCharm. This example overrides the default value from 2.5 MB to 10 MB. The value may be customized as needed, but keep in mind it can affect editor performance.idea.max.intellisense.filesize = 10000
Package: mayatest
# Maya Test[![Build Status](https://travis-ci.org/arubertoson/mayatest.svg?branch=master)](https://travis-ci.org/arubertoson/mayatest)[![Coverage Status](https://coveralls.io/repos/github/arubertoson/mayatest/badge.svg?branch=master)](https://coveralls.io/github/arubertoson/mayatest?branch=master)[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/arubertoson/mayatest/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/arubertoson/mayatest/?branch=master)[![PyPI version](https://badge.fury.io/py/mayatest.svg)](https://badge.fury.io/py/mayatest)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)Wrapper to easily test maya scripts and modules with the powerful pytest framework.## Getting Started### PrerequisitesYou'll need to install:* Autodesk Maya (2014+)* Python (2.7+)### Installing```bashpip install mayatest```### UsageRun mayatest in the folder of the script or module.```bash# To invoke pytest using mayapy from Maya 2017 do:mayatest -m 2017# Then the normal usage for pytest applies, e.g. to test specific  file:mayatest -m 2017 --pytest="test_sometest.py"# to only run test_funcmayatest -m 2017 --pytest="test_sometest.py::test_func"```For more information using pytest go to their [docs](https://docs.pytest.org/en/latest/usage.html).## LicenseThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
Package: maya-test-tools
maya_test_toolsmaya 测试工具包目录快速开始安装使用版权说明快速开始安装注意下方的python是你的Python, 正常情况下可以直接通过python调用, 而Maya的python一般是C:\ProgramFiles\Autodesk<Maya版本>\bin\mayapy.exepython -m pip install maya-test-tools在windows下maya的安装例子注意:请将Maya路径替换为自己的。请使用cmd"C:\Program Files\Autodesk\Maya2018\bin\mayapy.exe" -m pip install cpmel使用打开文件frommaya_test_toolsimportopen_fileopen_file('maya file path')在命令行下询问是否用maya gui打开当前场景.frommaya_test_toolsimportquestion_open_maya_guiquestion_open_maya_gui()版权说明该项目签署了Apache-2.0 授权许可，详情请参阅 LICENSE
Package: mayatk
MAYATK (Maya Toolkit)mayattk is a collection of backend utilities for Autodesk Maya.Installation:To install:
Add themayatkfolder to a directory on your python path, or
install via pip in a command line window using:python -m pip install mayatkExample use-case:importmayatkasmtkmtk.is_group(<obj>)# Returns: boolmtk.getBoundingBox(<obj>,'centroid|size')# Returns: tuple containing bounding box center and size.# ex. ((-0.02406523456116849, -0.8100277092487823, 0.0), (3.3830200057098523, 4.0155477063595555, 3.40770764056194))