{"__v":13,"_id":"554bf30d1f5dd20d008a7a8d","category":{"__v":1,"_id":"54eed2275bf74a0d00ef4076","pages":["54eed23531a4242100759985"],"project":"5476bf0f817e8d080031f988","version":"5476bf10817e8d080031f98b","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-02-26T07:58:31.812Z","from_sync":false,"order":11,"slug":"other-developer-tools","title":"Other Developer Tools"},"parentDoc":null,"project":"5476bf0f817e8d080031f988","user":"54c096f492501c0d000b38a7","version":{"__v":17,"_id":"5476bf10817e8d080031f98b","project":"5476bf0f817e8d080031f988","createdAt":"2014-11-27T06:05:04.263Z","releaseDate":"2014-11-27T06:05:04.263Z","categories":["5476bf10817e8d080031f98c","5477c46cf3736008009e9eb5","5477c474f3736008009e9eb6","5477c47ef3736008009e9eb7","5477c48ff3736008009e9eb8","5477c4948deb230800808bf0","54e68328154f8e0d0007b55c","54e90194c8e0c00d007ac061","54eed2275bf74a0d00ef4076","54f7a7be0a3cbb0d00d666fb","559b0ebf7ae7f80d0096d871","55d697f9ae529e0d00d34f03","562d4dcc8c6e5a0d00d6ed1d","562e591c4376430d006f17e0","568f0e73bdb9260d00149d8c","5719542aac1e2e0e001834c6","57a14a8ed778850e0047e230"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-05-07T23:19:41.638Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"To make writing Autoprotocol easier, there is a Python language library that allows you to build protocols using Python.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Setup\"\n}\n[/block]\nSince the Autoprotocol Python library is updated frequently, it is recommended that you clone the repository from Github and pull changes every so often.  Installing the [autoprotocol-python](https://github.com/autoprotocol/autoprotocol-python) library requires you make a [Github](https://github.com) account.\n\nOnce you have one, clone the [autoprotocol-python](https://github.com/autoprotocol/autoprotocol-python) repo into your desired directory:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"git clone https://github.com/autoprotocol/autoprotocol-python.git\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nfrom there, navigate to the folder just created and run setup.py to install\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ cd autoprotocol-python\\n$ python setup.py install \",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nyou may need to use `sudo` before the install command depending on your system\n\nAnother way to install the Python library is using `pip install autoprotocol`.  This assumes that you have [Python](https://www.python.org/downloads/release/python-2710/) and therefore [pip](https://pip.pypa.io/en/stable/installing.html) installed.","excerpt":"","slug":"installing-autoprotocol-python","type":"basic","title":"Autoprotocol Python Language Library"}

Autoprotocol Python Language Library


To make writing Autoprotocol easier, there is a Python language library that allows you to build protocols using Python. [block:api-header] { "type": "basic", "title": "Setup" } [/block] Since the Autoprotocol Python library is updated frequently, it is recommended that you clone the repository from Github and pull changes every so often. Installing the [autoprotocol-python](https://github.com/autoprotocol/autoprotocol-python) library requires you make a [Github](https://github.com) account. Once you have one, clone the [autoprotocol-python](https://github.com/autoprotocol/autoprotocol-python) repo into your desired directory: [block:code] { "codes": [ { "code": "git clone https://github.com/autoprotocol/autoprotocol-python.git", "language": "shell" } ] } [/block] from there, navigate to the folder just created and run setup.py to install [block:code] { "codes": [ { "code": "$ cd autoprotocol-python\n$ python setup.py install ", "language": "shell" } ] } [/block] you may need to use `sudo` before the install command depending on your system Another way to install the Python library is using `pip install autoprotocol`. This assumes that you have [Python](https://www.python.org/downloads/release/python-2710/) and therefore [pip](https://pip.pypa.io/en/stable/installing.html) installed.