{ "info": { "author": "Ryan Hope", "author_email": "rmh3093@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License (GPL)", "Programming Language :: Python :: 2", "Topic :: Scientific/Engineering", "Topic :: Utilities" ], "description": "==========\nPyCogWorks\n==========\n\n``pycogworks`` is a Python package with miscellaneous functions used in the CogWorks lab.\n\nInstallation\n============\n``pycogworks`` can be installed using 'pip'.\n::\n\n # pip install pycogworks\n \nDependencies\n============\n``pycogworks`` has the following dependencies:\n\n- `PyCrypto `_\n- `PySide `_\n\nGUI Functions\n=============\n\npycogworks.getSubjectInfo\n-------------------------\nCreates a GUI dialog to collect subject information. The default dialog collects subjects\nfirst name, last name and RIN. Additional fields can be collected by passing an array\nof field names to ``getSubjectInfo``. ``getSubjectInfo`` returns a dict of subject information\nwhere the keys are the field names converted to lower case and spaces replaced with underscores.\nThe RIN field is automatically encrypted using ``pycogworks.rin2id`` and stored in the 'encrypted_rin' field.\n::\n\n >>> getSubjectInfo([\"Age\"])\n {'rin': u'123456789', 'first_name': u'Foo', 'last_name': u'Bar', 'age': u'18'}\n \n.. image:: http://ompldr.org/vZm5ldw\n\n\nLogging Functions\n=================\n\npycogworks.getDateTimeStamp\n---------------------------\nReturns the most accurate timestamp possible for the current OS.\n::\n\n >>> get_time()\n 1348684540.905437\n\npycogworks.getDateTimeStamp\n---------------------------\n\nGenerates a date/time stamp usefull in logs and for log filenames.\n::\n\n >>> getDateTimeStamp()\n '2012-9-26_13-33-6'\n\npycogworks.rin2id\n-----------------\n\nGenerates an encrypted id from a 9 digit RIN.\n::\n\n >>> rin2id(123456789)\n '300fe9abdca99d4a32cb2c43f2a69c5c'\n >>> rin2id('123456789')\n '300fe9abdca99d4a32cb2c43f2a69c5c'\n\npycogworks.writeHistoryFile\n---------------------------\n\nTakes a ``dict`` of subject information and writes a history file.\nThe subject information dict must contain a field called 'rin' with a value that contains a valid 9 digit RIN.\nIf the subject information dict does not already contain an 'encrypted_rin' field, the RIN will be enrypted and\nadded to the subject information dict under the field 'encrypted_rin'. The subject information dict is then encoded \nas a JSON string and written to a file.\n::\n\n >>> writeHistoryFile(\"test.history\",{\"foo\":\"bar\",\"rin\":\"123456789\"})\n\n::\n \n # cat test.history\n {\n \"cipher\": \"AES/CBC (RIJNDAEL) - 16Byte Key\", \n \"encrypted_rin\": \"300fe9abdca99d4a32cb2c43f2a69c5c\", \n \"foo\": \"bar\", \n \"rin\": \"123456789\"\n }", "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/CogWorks/PyCogWorks", "keywords": null, "license": "GPL-3", "maintainer": null, "maintainer_email": null, "name": "PyCogWorks", "package_url": "https://pypi.org/project/PyCogWorks/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/PyCogWorks/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/CogWorks/PyCogWorks" }, "release_url": "https://pypi.org/project/PyCogWorks/0.3.1/", "requires_dist": null, "requires_python": null, "summary": "Miscellaneous functions used in the CogWorks lab.", "version": "0.3.1" }, "last_serial": 785247, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "6538de637defc491f3d9b09f1b2069d5", "sha256": "4b96c0bf816d757fa1c2607e4b75a585b9d57f6f317df350186987aa4329c98d" }, "downloads": -1, "filename": "PyCogWorks-0.1.0-py2.7.egg", "has_sig": false, "md5_digest": "6538de637defc491f3d9b09f1b2069d5", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 22585, "upload_time": "2012-05-02T19:05:57", "url": "https://files.pythonhosted.org/packages/cb/35/39e039cd3ee0d8371eb44a6be75dffd89c582b7f0b9d97921a0a5ea77636/PyCogWorks-0.1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "3018fcb212d2aa35d64b5f9bc58e3971", "sha256": "d541adddddd572b4dcb90a81a1b5abdf6af04b8e6bc4ffd9f22b32fd415ae4d0" }, "downloads": -1, "filename": "PyCogWorks-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3018fcb212d2aa35d64b5f9bc58e3971", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8159, "upload_time": "2012-05-02T19:05:56", "url": "https://files.pythonhosted.org/packages/ad/cb/f8f3ef917a063e4429016710578b9cbab14838262f409fada7cf057af769/PyCogWorks-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "7194fe7d0eb7d01d6945e7268c87f02a", "sha256": "e425d8175cfd7efb9bea20d9bb57f88856e0e4a67db7f5c8ab7b45fbb5b5ea57" }, "downloads": -1, "filename": "PyCogWorks-0.2.0-py2.7.egg", "has_sig": false, "md5_digest": "7194fe7d0eb7d01d6945e7268c87f02a", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 28410, "upload_time": "2012-05-02T20:51:53", "url": "https://files.pythonhosted.org/packages/54/7d/73ec85c3664b1a379bdda0363776cfe91af35525b8829341a24580ae0693/PyCogWorks-0.2.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "f9706c7f26f6c6fe90d4dfb2d7e366d9", "sha256": "17b8fc372df1006ff382641f0c0e855dd908eac34b3c66046ecbf277983ece33" }, "downloads": -1, "filename": "PyCogWorks-0.2.0.tar.gz", "has_sig": false, "md5_digest": "f9706c7f26f6c6fe90d4dfb2d7e366d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10339, "upload_time": "2012-05-02T20:51:52", "url": "https://files.pythonhosted.org/packages/df/cb/e5cb88585f17bafdc0943280e08b5980da54c6f20e57577a42ec794eaedf/PyCogWorks-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "5c9fb2f3a979acfe0e007d6c0b7f45c8", "sha256": "2629e73ce84ce68fc540b4ef4cb051bea4292b82dcfc876ff8f8c42fc0ba7796" }, "downloads": -1, "filename": "PyCogWorks-0.3.0.tar.gz", "has_sig": false, "md5_digest": "5c9fb2f3a979acfe0e007d6c0b7f45c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11792, "upload_time": "2012-10-02T16:37:43", "url": "https://files.pythonhosted.org/packages/62/f5/64a451cf58f95d68b959c9c487c14afa36b230ec61939f06bd8ced24c2f7/PyCogWorks-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "ae06d57fd5924dc535a66589bf055b53", "sha256": "f679aae8bcd9b279f4aef02e15b14df4c8d46370c75a272619e322b857817f32" }, "downloads": -1, "filename": "PyCogWorks-0.3.1.tar.gz", "has_sig": false, "md5_digest": "ae06d57fd5924dc535a66589bf055b53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11742, "upload_time": "2012-10-11T03:23:20", "url": "https://files.pythonhosted.org/packages/6f/53/20e5b6104e090e2e471b7861fde3878f80c2f02e19815e95cc1fb1959ad4/PyCogWorks-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ae06d57fd5924dc535a66589bf055b53", "sha256": "f679aae8bcd9b279f4aef02e15b14df4c8d46370c75a272619e322b857817f32" }, "downloads": -1, "filename": "PyCogWorks-0.3.1.tar.gz", "has_sig": false, "md5_digest": "ae06d57fd5924dc535a66589bf055b53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11742, "upload_time": "2012-10-11T03:23:20", "url": "https://files.pythonhosted.org/packages/6f/53/20e5b6104e090e2e471b7861fde3878f80c2f02e19815e95cc1fb1959ad4/PyCogWorks-0.3.1.tar.gz" } ] }