{ "info": { "author": "Andrea Stagi", "author_email": "stagi.andrea@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "Nanpy\r\n=====\r\n\r\nUse your Arduino board with Python. http://pypi.python.org/pypi/nanpy\r\n\r\nOverview\r\n--------\r\n\r\nNanpy is a library that use your Arduino as a slave, controlled by a master device where you run your scripts, such as a PC, a Raspberry Pi etc.\r\n\r\nThe main purpose of Nanpy is making programmers' life easier, providing them a powerful library to create prototypes faster and make Arduino programming a game for kids.\r\n\r\n::\r\n\r\n from nanpy import ArduinoApi\r\n\r\n a = ArduinoApi()\r\n a.pinMode(13, a.OUTPUT)\r\n a.digitalWrite(13, a.HIGH)\r\n\r\nI know, there are a lot of projects able to do that, but hey, Nanpy can do more!\r\n\r\nNanpy is easily extensible and can theoretically use every library,\r\nallowing you to create how many objects you want. We support OneWire, Lcd, Stepper, Servo, DallasTemperature and many\r\nmore...\r\n \r\nLet's try to connect our 16x2 lcd screen on pins 7, 8, 9, 10, 11, 12 and show your first \"Hello world\"!\r\n\r\n::\r\n\r\n from nanpy import Lcd\r\n\r\n lcd = Lcd([7, 8, 9, 10, 11, 12], [16, 2])\r\n lcd.printString('Hello World!')\r\n\r\nreally straightforward now, isn't it? :)\r\n\r\nSerial communication\r\n~~~~~~~~~~~~~~~~~~~~\r\n\r\nNanpy autodetects the serial port for you, anyway you can manually\r\nspecify another serial port:\r\n\r\n::\r\n\r\n from nanpy import SerialManager\r\n connection = SerialManager(device='/dev/ttyACM1')\r\n\r\nand use it with your objects\r\n\r\n::\r\n\r\n from nanpy import ArduinoApi\r\n a = ArduinoApi(connection=connection)\r\n a.pinMode(13, a.OUTPUT)\r\n a.digitalWrite(13, a.HIGH)\r\n\r\nYou can specify how many SerialManager objects you want and control more\r\nthan one Arduino board within the same script.\r\n\r\nHow to build and install\r\n------------------------\r\n\r\nFirst of all, you need to build the firmware and upload it on your\r\nArduino, to do that clone the `nanpy-firmware repository on\r\nGithub `__ or `download it from\r\nPyPi `__.\r\n\r\n::\r\n\r\n git clone https://github.com/nanpy/nanpy-firmware.git\r\n cd nanpy-firmware\r\n ./configure.sh\r\n\r\n| You can now edit Nanpy/cfg.h generated file to configure your Nanpy\r\n firmware, selecting the features you want to include and the baud\r\n rate.\r\n| To build and install Nanpy firmware, copy Nanpy directory under your\r\n \"sketchbook\" directory, start your Arduino IDE, open Sketchbook ->\r\n Nanpy and click on \"Upload\".\r\n\r\nTo install Nanpy Python library on your master device just type:\r\n\r\n::\r\n\r\n pip install nanpy\r\n\r\nHow to contribute\r\n-----------------\r\n\r\nNanpy still needs a lot of work. You can contribute with patches\r\n(bugfixing, improvements, adding support for a new library not included\r\nin Nanpy yet, writing examples and so on), writing documentation,\r\nreporting bugs, creating packages or simply spreading Nanpy through the\r\nweb if you like it :) If you have any doubt or problem, please contact\r\nme at stagi.andrea@gmail.com\r\n\r\nDo you want to support us with a coffee? We need a lot of caffeine to\r\ncode all night long! if you like this project and you want to support\r\nus, `please donate using\r\nPaypal `__\r\n\r\nLicense\r\n-------\r\n\r\nThis software is released under MIT License. Copyright (c) 2012-2016\r\nAndrea Stagi stagi.andrea@gmail.com", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/nanpy/nanpy/tags", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nanpy/nanpy", "keywords": "arduino library prototype raspberry servo lcd temperature electronics diy", "license": "MIT License\r\n\r\nCopyright (c) 2012-2015 Andrea Stagi \r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in\r\nall copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\nTHE SOFTWARE.", "maintainer": "Andrea Stagi", "maintainer_email": "stagi.andrea@gmail.com", "name": "nanpy", "package_url": "https://pypi.org/project/nanpy/", "platform": "", "project_url": "https://pypi.org/project/nanpy/", "project_urls": { "Download": "https://github.com/nanpy/nanpy/tags", "Homepage": "https://github.com/nanpy/nanpy" }, "release_url": "https://pypi.org/project/nanpy/0.9.6/", "requires_dist": null, "requires_python": null, "summary": "Use your Arduino board with Python.", "version": "0.9.6" }, "last_serial": 1988986, "releases": { "0.4": [ { "comment_text": "", "digests": { "md5": "7cdee7534cf5ce62893739baabd1993b", "sha256": "e64c2aacc6e40befcf4646d0459119a5f5a681d809db15b5cd811c0395a13108" }, "downloads": -1, "filename": "nanpy-v0.4.tar.gz", "has_sig": false, "md5_digest": "7cdee7534cf5ce62893739baabd1993b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39296, "upload_time": "2012-10-03T14:51:34", "url": "https://files.pythonhosted.org/packages/32/c2/06361485ab4917504f5515a583837060bc959c3232a0c428d6eb0d6e4d3d/nanpy-v0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "f41983f9edae5bc61adbe9486c13665c", "sha256": "4fafaba00c0c341c630fbb54e0c207de2244e98dec1d9cdd9fe08b52ee2778f6" }, "downloads": -1, "filename": "nanpy-v0.5.tar.gz", "has_sig": false, "md5_digest": "f41983f9edae5bc61adbe9486c13665c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39910, "upload_time": "2012-11-01T15:55:39", "url": "https://files.pythonhosted.org/packages/1e/d5/56947fcc1c0f8217f090869fa26abbf8191af1184be04df91a7fec7160ae/nanpy-v0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "fb64af7882e7d35788bb1f96ae846456", "sha256": "47f5c5b0079f7a2d9d445e64b68ff25dd4552348596bbd1a671663902aa4a769" }, "downloads": -1, "filename": "nanpy-v0.6.tar.gz", "has_sig": false, "md5_digest": "fb64af7882e7d35788bb1f96ae846456", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 40554, "upload_time": "2012-11-14T14:49:05", "url": "https://files.pythonhosted.org/packages/1a/58/9ea28e47b9dc07833c3a5ddcc71b058ad97eb1a9f9b34e4a709fc14ae05e/nanpy-v0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "a908694dde3badcdec01e4971210e4d8", "sha256": "6705780d29c755540eda8b0ba82ba4b943a188f9dffc6ca29bbab87c726d34e5" }, "downloads": -1, "filename": "nanpy-v0.7.tar.gz", "has_sig": false, "md5_digest": "a908694dde3badcdec01e4971210e4d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44334, "upload_time": "2013-01-02T15:02:14", "url": "https://files.pythonhosted.org/packages/6b/c8/bd3d71194eb5053c7a734af75d3dc53af7d0bea810e00c1465a7b0ae2f28/nanpy-v0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "4cf41e5509533ea0a9616f1aeb069dc3", "sha256": "c10c823f04b39d84df75ef78eddc2d82770035a2f6f0e1a8250028eada741069" }, "downloads": -1, "filename": "nanpy-v0.8.tar.gz", "has_sig": false, "md5_digest": "4cf41e5509533ea0a9616f1aeb069dc3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44744, "upload_time": "2013-02-19T11:46:29", "url": "https://files.pythonhosted.org/packages/97/0b/c6528213139f1280ccb8ed77357ae68fd75ac4d21fbbbd4755508f0c3acc/nanpy-v0.8.tar.gz" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "0fe64c97118061b38d800f0d67df8b0c", "sha256": "e23efe5c2250f462b9b1b0c31750dbc14952116aea370ffd9f28550a4e5b1ece" }, "downloads": -1, "filename": "nanpy-firmware-v0.9.tar.gz", "has_sig": false, "md5_digest": "0fe64c97118061b38d800f0d67df8b0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43191, "upload_time": "2014-04-22T18:14:28", "url": "https://files.pythonhosted.org/packages/69/f3/9be034ebc529d3676c6559a96de895c95b81f0f93e9bb8b9a64490026a28/nanpy-firmware-v0.9.tar.gz" }, { "comment_text": "", "digests": { "md5": "0a91f67f2258e659b2f97983aba6b685", "sha256": "47e72a4a4069120b2970e586fc8e4c343d5717dfcb94a72584f40a5b433dec06" }, "downloads": -1, "filename": "nanpy-v0.9.tar.gz", "has_sig": false, "md5_digest": "0a91f67f2258e659b2f97983aba6b685", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27516, "upload_time": "2014-04-22T18:14:12", "url": "https://files.pythonhosted.org/packages/40/94/4bb2128e6ada40dbbcc4a5132b7117905979a9a329b5488de0ed44aebb04/nanpy-v0.9.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "bf309018fcec3fa9a8e79622fb72a603", "sha256": "cf4a4dd905961e8012c54ffa07f92ee359534ec7c7d3c095122c5f2eb3895d0d" }, "downloads": -1, "filename": "nanpy-firmware-v0.9.1.tar.gz", "has_sig": false, "md5_digest": "bf309018fcec3fa9a8e79622fb72a603", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43970, "upload_time": "2014-08-10T12:25:26", "url": "https://files.pythonhosted.org/packages/7f/eb/19f89aaadf1a8e2ff24665729c496c58a9bdcd2976c4426f94698f073b10/nanpy-firmware-v0.9.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "eb07691a77575375a527a8614544fe61", "sha256": "1c670034c0a477db4242ebf99eb55ba06cb125eec0c87d4ad97eb143137a7a6a" }, "downloads": -1, "filename": "nanpy-v0.9.1.tar.gz", "has_sig": false, "md5_digest": "eb07691a77575375a527a8614544fe61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27626, "upload_time": "2014-08-10T12:25:05", "url": "https://files.pythonhosted.org/packages/59/af/db0f06d05558b6c087c9323bb6e9070677fa54d6d06e5b8844f8a6866920/nanpy-v0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "314ac032a3bedf92c32a1ac5c414a854", "sha256": "c2c80782792b06daf7226fb661580597b00ad1a3a98497a834e60888d6ec0e45" }, "downloads": -1, "filename": "nanpy-firmware-v0.9.2.tar.gz", "has_sig": false, "md5_digest": "314ac032a3bedf92c32a1ac5c414a854", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44185, "upload_time": "2014-10-02T08:16:16", "url": "https://files.pythonhosted.org/packages/fc/dc/917a51c8fadc8cc5b14548ea502cae21d76d06ffd8f9ff40ef26b59825fa/nanpy-firmware-v0.9.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "f8be2d66d4b73d93b067fedcb132bc8b", "sha256": "69ffc756fb14544877ee9a2811244c236dbb3e98c8499beffe2704a84654127c" }, "downloads": -1, "filename": "nanpy-v0.9.2.tar.gz", "has_sig": false, "md5_digest": "f8be2d66d4b73d93b067fedcb132bc8b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31328, "upload_time": "2014-10-02T08:15:58", "url": "https://files.pythonhosted.org/packages/79/91/9f76516b7c1b150f4ea9b2192e83d16cfc9b241b3bdf7436acd6bb4f92ed/nanpy-v0.9.2.tar.gz" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "60c14dcc34407c53fe92cba420266a86", "sha256": "8c5e8a2af216ba4caeed886e1339b522eb31174aa1b8827f1d766df42d4b4387" }, "downloads": -1, "filename": "nanpy-0.9.3.tar.gz", "has_sig": false, "md5_digest": "60c14dcc34407c53fe92cba420266a86", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33041, "upload_time": "2015-02-21T13:53:09", "url": "https://files.pythonhosted.org/packages/2c/32/4dd0f07c726d7c86f66355af8ce95b278b6259aca4722cd9be86c06d2387/nanpy-0.9.3.tar.gz" }, { "comment_text": "", "digests": { "md5": "1434bcb8fbec856c55b3964880475ccd", "sha256": "f59b5e0f0c851137abd480e6b41ce1728b1d166c005c6f0c0cb51858daa11713" }, "downloads": -1, "filename": "nanpy-firmware-0.9.3.tar.gz", "has_sig": false, "md5_digest": "1434bcb8fbec856c55b3964880475ccd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43216, "upload_time": "2015-02-21T13:54:27", "url": "https://files.pythonhosted.org/packages/ac/55/688dcfec9d7bd0f6a328d02a91e4e052925f90ea4690a4f3075a5e46fc40/nanpy-firmware-0.9.3.tar.gz" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "4ff2c0db3b8751613818c2d67e9cbbe5", "sha256": "206f7ce99673eaabd78372d60a5481beb107ab8328cadfeb831a39fc739791ee" }, "downloads": -1, "filename": "nanpy-0.9.4.tar.gz", "has_sig": false, "md5_digest": "4ff2c0db3b8751613818c2d67e9cbbe5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33118, "upload_time": "2015-05-02T11:10:10", "url": "https://files.pythonhosted.org/packages/09/e9/985baab18e16c4194591099738fcfddde424bdacc727fd6abf906dfe989f/nanpy-0.9.4.tar.gz" }, { "comment_text": "", "digests": { "md5": "2fbaded958c09cee97d3fdbd7eac3ee9", "sha256": "bb4d8b163c98337fa439c73eb4012e9004c4ded104bf2b32b7b339a13053dca1" }, "downloads": -1, "filename": "nanpy-firmware-0.9.4.tar.gz", "has_sig": false, "md5_digest": "2fbaded958c09cee97d3fdbd7eac3ee9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45810, "upload_time": "2015-05-02T11:14:13", "url": "https://files.pythonhosted.org/packages/69/9a/a744b7597118f8fa08e15d3d6f7708d5be8640a08e944c383776d89719ba/nanpy-firmware-0.9.4.tar.gz" } ], "0.9.5": [ { "comment_text": "", "digests": { "md5": "93f89ebde7dc4317a95e9ec768dec8c3", "sha256": "b561fe092eac95349dc8d4696c6fa5bbb94589fa7ecf0227fbd4d03d48cc3700" }, "downloads": -1, "filename": "nanpy-0.9.5.tar.gz", "has_sig": false, "md5_digest": "93f89ebde7dc4317a95e9ec768dec8c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33230, "upload_time": "2015-09-06T09:30:20", "url": "https://files.pythonhosted.org/packages/31/1e/c6fca95d6a10c76fad5be331626d203947776d09fedf4f7e7d15492cba9f/nanpy-0.9.5.tar.gz" }, { "comment_text": "", "digests": { "md5": "e01f6d5554b9093b8f582535af2b9235", "sha256": "7449467422ecb6d4d4fe308d5bf8ff1bd581fa4a6aad0c5ded5167cb7cd62672" }, "downloads": -1, "filename": "nanpy-firmware-0.9.5.1.tar.gz", "has_sig": false, "md5_digest": "e01f6d5554b9093b8f582535af2b9235", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44241, "upload_time": "2015-09-14T06:18:45", "url": "https://files.pythonhosted.org/packages/7f/1c/6c9a104bca8c4042dc8bca463d0f42b4b3183d92c48c5dd68f472854839f/nanpy-firmware-0.9.5.1.tar.gz" } ], "0.9.6": [ { "comment_text": "", "digests": { "md5": "e6dba78110388aa06739217f9d836df5", "sha256": "8b57525ece2fbbc7f2e456ad4ae70cc98fc81b996009469c26ce42ee055a1884" }, "downloads": -1, "filename": "nanpy-0.9.6.tar.gz", "has_sig": false, "md5_digest": "e6dba78110388aa06739217f9d836df5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33769, "upload_time": "2016-03-04T07:33:57", "url": "https://files.pythonhosted.org/packages/ad/c4/9d81917ac0165e9541cd82490bda749599f5dd97a215b892e1b0267650c3/nanpy-0.9.6.tar.gz" }, { "comment_text": "", "digests": { "md5": "41deb0bc07dd7f14ba7c44ea90d40237", "sha256": "a2acd2931d0fa2f5469720f5b45d213da6277e101190743208e4d7beeefeee77" }, "downloads": -1, "filename": "nanpy-firmware-0.9.6.tar.gz", "has_sig": false, "md5_digest": "41deb0bc07dd7f14ba7c44ea90d40237", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44470, "upload_time": "2016-03-04T07:33:43", "url": "https://files.pythonhosted.org/packages/fd/9a/d088fe79d0a6857c19517ccf46621fcb7741d76c3b16900b306f2ad324f4/nanpy-firmware-0.9.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e6dba78110388aa06739217f9d836df5", "sha256": "8b57525ece2fbbc7f2e456ad4ae70cc98fc81b996009469c26ce42ee055a1884" }, "downloads": -1, "filename": "nanpy-0.9.6.tar.gz", "has_sig": false, "md5_digest": "e6dba78110388aa06739217f9d836df5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33769, "upload_time": "2016-03-04T07:33:57", "url": "https://files.pythonhosted.org/packages/ad/c4/9d81917ac0165e9541cd82490bda749599f5dd97a215b892e1b0267650c3/nanpy-0.9.6.tar.gz" }, { "comment_text": "", "digests": { "md5": "41deb0bc07dd7f14ba7c44ea90d40237", "sha256": "a2acd2931d0fa2f5469720f5b45d213da6277e101190743208e4d7beeefeee77" }, "downloads": -1, "filename": "nanpy-firmware-0.9.6.tar.gz", "has_sig": false, "md5_digest": "41deb0bc07dd7f14ba7c44ea90d40237", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44470, "upload_time": "2016-03-04T07:33:43", "url": "https://files.pythonhosted.org/packages/fd/9a/d088fe79d0a6857c19517ccf46621fcb7741d76c3b16900b306f2ad324f4/nanpy-firmware-0.9.6.tar.gz" } ] }