{ "info": { "author": "c0z3n", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Other Audience", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Artistic Software" ], "description": "pySimpleDMX\n===========\n\n### c0z3n 2012, GPL v3 ###\n\n\npySimpleDMX is a simple python module designed to make basic DMX control in python easy.\n\npySimpleDMX is designed for and requires an [Enttec USB DMX Pro](http://www.enttec.com/index.php?main_menu=Products&pn=70304&show=description&name=dmxusbpro) or compatible hardware for communication over a DMX network.\n\n#### Installation ####\n\n```\n# stable\npip install pysimpledmx\n# head\npip install git+https://github.com/c0z3n/pySimpleDMX.git\n```\n\n#### Initialization ####\nTo initialize pySimpleDMX, initialize a `pysimpledmx.DMXConnection()` object, using the com port number of your enttec DMX USB Pro as an argument. For example, if our DMX USB Pro is on com port 3, we would initialize our dmx connection using `dmx = pysimpledmx.DMXConnection(3)`\n\nIf for any reason the dmx connection fails to initialize on the provided com port, pysimpledmx will let you know via the console and close.\n\n # example\n import pysimpledmx\n mydmx = pysimpledmx.DMXConnection(3)\n ...\n\n\n#### Usage ####\nDMX output through pySimpleDMX is managed using a local list of size 512 in the `DMXConnection()` object, which represents the values for all 512 dmx channels in a single universe. When initialized, the default value for each channel is zero. to push the current list of values out over the dmx network, or 'update' the network, you must call the `.render()` method on your `DMXConnection()` object.\n\nto change the value for a channel, use the `setChannel()` method on your `DMXConnection()` object. `setChannel()` requires `chan` (channel) and `val` (value) arguments, as well as an optional `autorender` argument, which should be set to `True` if you wish to have PySimpleDMX automatically update the dmx output immediately upon changing the specified channel value.\n\nthe `chan` and `val` arguments should be between 1 and 512 and between 0 and 255, respectively.\n\nunless the `autorender` argument is specified `True`, the `.render()` method must be called to update the dmx output. because of the serial communication with the DMX USB Pro, this is a relatively slow operation, and thus rendering should be done sparingly to avoid bottlenecking and setting `autorender` is not reccomended.\n\n\n # example\n import pysimpledmx\n mydmx = pysimpledmx.DMXConnection(3)\n\n mydmx.setChannel(1, 255) # set DMX channel 1 to full\n mydmx.setChannel(2, 128) # set DMX channel 2 to 128\n mydmx.setChannel(3, 0) # set DMX channel 3 to 0\n mydmx.render() render # render all of the above changes onto the DMX network\n\n mydmx.setChannel(4, 255, autorender=True) # set channel 4 to full and render to the network\n\n#### Development #####\n##### Bumping Version #####\n\n1. Change version in `./setup.py`\n2. `python setup.py sdist bdist_wheel upload` (requires `pip install wheel`)\n3. `git commit -am 'bump version to x.x.x'`\n3. `git tag x.x.x`\n4. `git push --tags`\n5. Add release to github tag, with changes and releasion name.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/c0z3n/pySimpleDMX", "keywords": null, "license": "GPLV3", "maintainer": null, "maintainer_email": null, "name": "pysimpledmx", "package_url": "https://pypi.org/project/pysimpledmx/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pysimpledmx/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/c0z3n/pySimpleDMX" }, "release_url": "https://pypi.org/project/pysimpledmx/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "simple dmx control for the Enttec DMX USB Pro", "version": "0.1.1" }, "last_serial": 2018831, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5ea224825e1f0878119761925dbef761", "sha256": "39a88b1cfca72bd97ac518a1f7bed7cc313af339a32e8b638c884a02ee7d36fb" }, "downloads": -1, "filename": "pysimpledmx-0.1.0-cp27-none-win32.whl", "has_sig": false, "md5_digest": "5ea224825e1f0878119761925dbef761", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4503, "upload_time": "2015-04-22T02:10:24", "url": "https://files.pythonhosted.org/packages/53/cb/037142f790c0e44032f80e803bb4afe30dae1b9617c2627d38c19c4ee315/pysimpledmx-0.1.0-cp27-none-win32.whl" }, { "comment_text": "", "digests": { "md5": "1b662b2c84b14fec7160485539240506", "sha256": "a2a836f61d4661d0f2d7f564fbef5b37804ed11db6448e80159648bcd37b734f" }, "downloads": -1, "filename": "pysimpledmx-0.1.0.zip", "has_sig": false, "md5_digest": "1b662b2c84b14fec7160485539240506", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6459, "upload_time": "2015-04-22T02:10:20", "url": "https://files.pythonhosted.org/packages/3d/0a/ee23c308d6292fb7a1b840a7573998e2d82a21b38a3d8ed940471634f5b5/pysimpledmx-0.1.0.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "155a380d274d2f20e1e6e5058884eaaf", "sha256": "2c8a56546a68844d253c59f7affe3eccbb17a97132b851abf55ae1da464a2973" }, "downloads": -1, "filename": "pysimpledmx-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "155a380d274d2f20e1e6e5058884eaaf", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 11348, "upload_time": "2016-03-21T15:06:24", "url": "https://files.pythonhosted.org/packages/c8/46/7d106f35c54bba9a11b9e501881ddd3f59952c2cee95580443663d18c1fa/pysimpledmx-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8177e863ea9e19f6d2a30c37ecedb165", "sha256": "bd70e2cbce4f89a400c02428de72b035468d8a27f96e7741ecfb599a5b2da579" }, "downloads": -1, "filename": "pysimpledmx-0.1.1.tar.gz", "has_sig": false, "md5_digest": "8177e863ea9e19f6d2a30c37ecedb165", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3451, "upload_time": "2016-03-21T15:06:12", "url": "https://files.pythonhosted.org/packages/96/b6/743960da12bac348e8980a00ed5b94b2b12084f0c624a9a827a12b3ac9e6/pysimpledmx-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "155a380d274d2f20e1e6e5058884eaaf", "sha256": "2c8a56546a68844d253c59f7affe3eccbb17a97132b851abf55ae1da464a2973" }, "downloads": -1, "filename": "pysimpledmx-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "155a380d274d2f20e1e6e5058884eaaf", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 11348, "upload_time": "2016-03-21T15:06:24", "url": "https://files.pythonhosted.org/packages/c8/46/7d106f35c54bba9a11b9e501881ddd3f59952c2cee95580443663d18c1fa/pysimpledmx-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8177e863ea9e19f6d2a30c37ecedb165", "sha256": "bd70e2cbce4f89a400c02428de72b035468d8a27f96e7741ecfb599a5b2da579" }, "downloads": -1, "filename": "pysimpledmx-0.1.1.tar.gz", "has_sig": false, "md5_digest": "8177e863ea9e19f6d2a30c37ecedb165", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3451, "upload_time": "2016-03-21T15:06:12", "url": "https://files.pythonhosted.org/packages/96/b6/743960da12bac348e8980a00ed5b94b2b12084f0c624a9a827a12b3ac9e6/pysimpledmx-0.1.1.tar.gz" } ] }