{ "info": { "author": "Laurent Van Acker", "author_email": "laurent@pozyx.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Pozyx-Python-library\n====================\nA Python library to work with the pozyx indoor positioning system over USB.\n\nThis library works with both Python 2 and 3.\n\nNOTE: Temporary version with I2C support, needs testing.\n\nPrerequisites\n-------------\n* Download and install Python. On Windows, make your life easier and make sure Python is in your PATH. A recommended install is therefore the `Anaconda Suite `_ by Continuum. If you're going to follow the tutorials, you'll need to install Python 3 for the python-osc support.\n* Install the PySerial package. If you have pip installed, you can do this by writing ``pip install pyserial`` in your command line interface (cmd on Windows).\n* **Windows only** install `ST's virtual COM driver `_. After running this installer, please run the correct driver package for your system, located in \"C:\\\\Program Files (x86)\\\\STMicroelectronics\\\\Software\\\\Virtual comport driver\". Choose Win7 if you run Windows 7 or older. Choose Win8 for Windows 8 or newer. Run \"dpinst_amd64.exe\" on a 64-bit system, \"dpinst_x86.exe\"on a 32-bit system.\n\nInstalling this package\n-----------------------\nJust run ``pip install pypozyx``\n\nPyPozyx is now installed. To check whether it is: if you followed all the steps correctly, and know which port your Pozyx is on, the following code should work:\n\n.. code:: python\n\n from pypozyx import PozyxSerial\n port = 'COMX' # on UNIX systems this will be '/dev/ttyACMX'\n p = PozyxSerial(port)\n\n\nIf your port is correct and the serial connection to the Pozyx isn't used by other software, this will run without any errors.\n\nBut! How do I know what port my Pozyx is on?\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n* You can see the COM ports on your system easily using Python with: ``python -c \"from pypozyx import *;list_serial_ports()\"``\n\n* **NEW** You can quickly find whether there's a recognized Pozyx device using: ``python -c \"from pypozyx import *;print(get_first_pozyx_serial_port())\"``\n\n\nDocumentation and examples\n--------------------------\nYou can find the Python tutorials on our site. You probably got here from `the getting started page `_\n\nDocumentation can be found `here `_.\n\n* This was originally a port of the Pozyx's Arduino library, so most of the `Arduino Library Documentation `_ is transformable to this. The major difference is that you don't ever again need to pass along the length of the data you're reading/writing. This is taken care of by the library through the Data and SingleRegister classes like so:\n\n.. code:: python\n\n whoami = SingleRegister()\n pozyx.regRead(POZYX_WHO_AM_I, whoami) # which is pozyx.getWhoAmI(whoami)\n\n* `SingleRegister(value=0, size=1, signed=1)` is basically an instance `Data([0], 'B')`, which functions as a single uint8_t. If you want to make your custom data, for a single register you can adapt the size and signed parameters, and for larger data structures you can use your own data formats. `Data([0]*3, 'BHI')`, for example, creates a structure of 1 uint8_t, uint16_t and uint32_t. Writing and reading data using this example as a parameter will automatically read/write 7 bytes worth of data. To specify your own data formats, check the `struct package documentation for Python 3 `_ or `Python 2 `_.\n\n* A more pythonic library would be nice, but isn't in the works.\n\n\nMore usage examples can be found in the `useful `_ and `tutorials `_ folders of the repository.", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/pozyxLabs/Pozyx-Python-library/archive/v1.3.9.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/frantp/Pozyx-Python-library", "keywords": "pozyx,serial,positioning,localisation", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "pypozyx-i2c", "package_url": "https://pypi.org/project/pypozyx-i2c/", "platform": "", "project_url": "https://pypi.org/project/pypozyx-i2c/", "project_urls": { "Download": "https://github.com/pozyxLabs/Pozyx-Python-library/archive/v1.3.9.tar.gz", "Homepage": "https://github.com/frantp/Pozyx-Python-library" }, "release_url": "https://pypi.org/project/pypozyx-i2c/1.3.9/", "requires_dist": null, "requires_python": "", "summary": "Python library for Pozyx devices", "version": "1.3.9" }, "last_serial": 5911842, "releases": { "1.3.9": [ { "comment_text": "", "digests": { "md5": "83009245371188b0cac24af77dfb4474", "sha256": "acd596af37a20a3c4a2e91e2091061010f37591e9c4d7b5e158133fc0a228243" }, "downloads": -1, "filename": "pypozyx-i2c-1.3.9.tar.gz", "has_sig": false, "md5_digest": "83009245371188b0cac24af77dfb4474", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46411, "upload_time": "2019-10-01T09:37:06", "url": "https://files.pythonhosted.org/packages/42/fc/38fa34b20256fa6b65bdf4c544881dc3c30b44bdb38e8388194be5e9fbdb/pypozyx-i2c-1.3.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "83009245371188b0cac24af77dfb4474", "sha256": "acd596af37a20a3c4a2e91e2091061010f37591e9c4d7b5e158133fc0a228243" }, "downloads": -1, "filename": "pypozyx-i2c-1.3.9.tar.gz", "has_sig": false, "md5_digest": "83009245371188b0cac24af77dfb4474", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46411, "upload_time": "2019-10-01T09:37:06", "url": "https://files.pythonhosted.org/packages/42/fc/38fa34b20256fa6b65bdf4c544881dc3c30b44bdb38e8388194be5e9fbdb/pypozyx-i2c-1.3.9.tar.gz" } ] }