{ "info": { "author": "Adafruit Industries", "author_email": "circuitpython@adafruit.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: System :: Hardware" ], "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-dymoscale/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/dymoscale/en/latest/\n :alt: Documentation Status\n\n.. image:: https://img.shields.io/discord/327254708534116352.svg\n :target: https://discord.gg/nBQh6qu\n :alt: Discord\n\n.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_DymoScale.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_DymoScale\n :alt: Build Status\n\nCircuitPython interface for `DYMO `_ postage scales.\n\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle `_.\n\nInstalling from PyPI\n--------------------\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI `_. To install for current user:\n\n.. code-block:: shell\n\n pip3 install adafruit-circuitpython-dymoscale\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-dymoscale\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n mkdir project-name && cd project-name\n python3 -m venv .env\n source .env/bin/activate\n pip3 install adafruit-circuitpython-dymoscale\n\nUsage Example\n=============\n\nInitialize the scale by passing it a data pin and a pin to toggle the units button:\n\n.. code-block:: python\n\n # initialize the dymo scale\n units_pin = digitalio.DigitalInOut(board.D3)\n units_pin.switch_to_output()\n dymo = adafruit_dymoscale.DYMOScale(board.D4, units_pin)\n\nGet the item's weight from the scale:\n\n.. code-block:: python\n\n reading = dymo.weight\n print(reading.weight)\n\nGet the item's units from the scale:\n\n.. code-block:: python\n\n print(reading.units)\n\nTo toggle between units (simulate a button press):\n\n.. code-block:: python\n\n dymo.toggle_unit_button(switch_unit=True)\n\nTo toggle the unit button, but preserve the unit displayed:\n\n.. code-block:: python\n\n dymo.toggle_unit_button()\n\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n`_\nbefore contributing to help this project stay welcoming.\n\nBuilding locally\n================\n\nZip release files\n-----------------\n\nTo build this library locally you'll need to install the\n`circuitpython-build-tools `_ package.\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install circuitpython-build-tools\n\nOnce installed, make sure you are in the virtual environment:\n\n.. code-block:: shell\n\n source .env/bin/activate\n\nThen run the build:\n\n.. code-block:: shell\n\n circuitpython-build-bundles --filename_prefix adafruit-circuitpython-dymoscale --library_location .\n\nSphinx documentation\n-----------------------\n\nSphinx is used to build the documentation based on rST files and comments in the code. First,\ninstall dependencies (feel free to reuse the virtual environment from above):\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install Sphinx sphinx-rtd-theme\n\nNow, once you have the virtual environment activated:\n\n.. code-block:: shell\n\n cd docs\n sphinx-build -E -W -b html . _build/html\n\nThis will output the documentation to ``docs/_build/html``. Open the index.html in your browser to\nview them. It will also (due to -W) error out on any warning like Travis will. This is a good way to\nlocally verify it will pass.", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adafruit/Adafruit_CircuitPython_DymoScale", "keywords": "adafruit blinka circuitpython micropython dymoscale dymo scale", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-dymoscale", "package_url": "https://pypi.org/project/adafruit-circuitpython-dymoscale/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-dymoscale/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_DymoScale" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-dymoscale/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython interface for DYMO scales.", "version": "1.0.1" }, "last_serial": 5776973, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b2444c9a3047be940d1da7581a0de728", "sha256": "0bd55465baafae303902111ae424a5c4c5caa92c4b15fa1c620c7ab77ed137a2" }, "downloads": -1, "filename": "adafruit-circuitpython-dymoscale-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b2444c9a3047be940d1da7581a0de728", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20784, "upload_time": "2019-04-01T16:04:52", "url": "https://files.pythonhosted.org/packages/dd/ef/e417feda112ba27d8084a619f9d9107546464650313a441dc5a9ceab97ab/adafruit-circuitpython-dymoscale-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "c3e9de295b0f3f66096330c97a606852", "sha256": "455c87465a9fee684522862e0da59b47e3cebee61c59728c397187f6c55d5b3d" }, "downloads": -1, "filename": "adafruit-circuitpython-dymoscale-1.0.1.tar.gz", "has_sig": false, "md5_digest": "c3e9de295b0f3f66096330c97a606852", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20775, "upload_time": "2019-09-03T16:35:42", "url": "https://files.pythonhosted.org/packages/61/c3/4031a7f4a25fb480540ec1248919085ce52ba0ffe2c3c7c94b8178bcb9f9/adafruit-circuitpython-dymoscale-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c3e9de295b0f3f66096330c97a606852", "sha256": "455c87465a9fee684522862e0da59b47e3cebee61c59728c397187f6c55d5b3d" }, "downloads": -1, "filename": "adafruit-circuitpython-dymoscale-1.0.1.tar.gz", "has_sig": false, "md5_digest": "c3e9de295b0f3f66096330c97a606852", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20775, "upload_time": "2019-09-03T16:35:42", "url": "https://files.pythonhosted.org/packages/61/c3/4031a7f4a25fb480540ec1248919085ce52ba0ffe2c3c7c94b8178bcb9f9/adafruit-circuitpython-dymoscale-1.0.1.tar.gz" } ] }