{ "info": { "author": "Rahul Arora", "author_email": "coderahul94@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python" ], "description": "Automata\n========\n\nAutomata is a customized personal assistant module which can be integrated with your python scripts. You can easily plug your own modules with it and that's not even the best part :)\n\n\nInstallation\n------------\n\n```\npip install python-automata\n```\n\n\nUsage\n-----\n\n### Example\n\n```python\nfrom automata import automata\n\nob = automata.Automata()\nres = ob.execute('What is the meaning of life?')\n\nprint res\n```\n\n### Output\n\n```bash\nThe answer to the ultimate question of life, the universe and everything is 42.\n```\n\n\nIt has some pre defined modules like:\n\n1. Telling day, date and time\n2. Finding meaning of words\n3. Telling meaning of life for the lost souls\n\nTo develop your own module, follow the module development guide below.\n\n\nModule dev guide\n----------------\n\n\nBelow are some general guidelines for developing your own module:\n\n* The name of the python script should always start from ```mod_```. Example ```mod_time.py```\n* It should have a global list named **KEYWORDS** containing some keywords which will trigger this module. Example for the ```mod_time.py```, the list is something like this ```KEYWORDS = ['what', 'time']```\n* Every module should contain a method named ```run(query='')``` which will receive the input query. Example:\n```python\nfrom datetime import datetime\n\nKEYWORDS = ['what', 'date']\n\ndef run(query=''):\n\treturn datetime.now().strftime(\"%Y:%m:%d\")\n``` \n* The ```run(query='')``` should return the response generated by it which could be used for further processing.\n* Any processing of the input query should be done in the ```run(query='')``` method.\n* These modules should be places in a single folder and you need to give the path to that module while instantiating the **Automata class**. Example;\n```python\nfrom automata import automata\n\nob = automata.Automata('/Users/testuser/modules')\nres = ob.execute('What is the meaning of life?')\n\nprint res\n```\n\n\nNote: Contributions and suggestions are always invited", "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/rahulxxarora/Automata-pip", "keywords": "automata,personal assistant,ML", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "python-automata", "package_url": "https://pypi.org/project/python-automata/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-automata/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rahulxxarora/Automata-pip" }, "release_url": "https://pypi.org/project/python-automata/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "A personal assistant with pluggable modules", "version": "0.0.1" }, "last_serial": 2619735, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "23cb7c5d0e022448b1c33131d6275781", "sha256": "c3cc9c171d44f130e17bf04f48cbd6a2652154349b7f38778e86cc2e20390e37" }, "downloads": -1, "filename": "python-automata-0.0.1.tar.gz", "has_sig": false, "md5_digest": "23cb7c5d0e022448b1c33131d6275781", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3900, "upload_time": "2017-02-04T23:52:13", "url": "https://files.pythonhosted.org/packages/c8/18/7854ebf9dad96cb8b9e2f83277b0ed1e842abc2d2062e822cfdf404a72ae/python-automata-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "23cb7c5d0e022448b1c33131d6275781", "sha256": "c3cc9c171d44f130e17bf04f48cbd6a2652154349b7f38778e86cc2e20390e37" }, "downloads": -1, "filename": "python-automata-0.0.1.tar.gz", "has_sig": false, "md5_digest": "23cb7c5d0e022448b1c33131d6275781", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3900, "upload_time": "2017-02-04T23:52:13", "url": "https://files.pythonhosted.org/packages/c8/18/7854ebf9dad96cb8b9e2f83277b0ed1e842abc2d2062e822cfdf404a72ae/python-automata-0.0.1.tar.gz" } ] }