Introduction
============
.. image:: https://readthedocs.org/projects/jepler-udecimal/badge/?version=latest
:target: https://jepler-udecimal.readthedocs.io/en/latest/
:alt: Documentation Status
.. image:: https://img.shields.io/discord/327254708534116352.svg
:target: https://adafru.it/discord
:alt: Discord
.. image:: https://github.com/jepler/Jepler_CircuitPython_udecimal/workflows/Build%20CI/badge.svg
:target: https://github.com/jepler/Jepler_CircuitPython_udecimal/actions
:alt: Build Status
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Code Style: Black
.. image:: https://results.pre-commit.ci/badge/github/jepler/Jepler_CircuitPython_udecimal/main.svg
:target: https://results.pre-commit.ci/latest/github/jepler/Jepler_CircuitPython_udecimal/main
:alt: pre-commit.ci status
Reduced version of the decimal library for CircuitPython
Dependencies
=============
This library depends on:
* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
The library also runs on desktop Python3, and should give numerically identical
results across all platorms.
Installing from PyPI
=====================
To install for current user:
.. code-block:: shell
python3 -mpip install --user jepler-circuitpython-udecimal
To install system-wide (this may be required in some cases):
.. code-block:: shell
sudo python3 -mpip install jepler-circuitpython-udecimal
To install in a virtual environment in your current project:
.. code-block:: shell
mkdir project-name && cd project-name
python3 -m venv .env
source .env/bin/activate
pip3 install jepler-circuitpython-udecimal
Usage Example
=============
.. code-block:: python
>>> from jepler_udecimal import Decimal
>>> Decimal(2)/3
Decimal('0.6666666666666666666666666667')
>>> Decimal('.1') + Decimal('.2') == Decimal('.3')
True
Contributing
============
Contributions are welcome! Please read our `Code of Conduct
<https://github.com/jepler/Jepler_CircuitPython_udecimal/blob/master/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.
Documentation
=============
For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.
Raw data
{
"_id": null,
"home_page": null,
"name": "circuitpython-jepler-udecimal",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "adafruit, blinka, circuitpython, micropython, udecimal, numeric, helper, arbitraryprecision, math",
"author": null,
"author_email": "Jeff Epler <jepler@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/93/e0/1e3a38de9f916e75792d2967d732007f06f168b273ffc287d1d05bbe9611/circuitpython-jepler-udecimal-1.0.10.tar.gz",
"platform": null,
"description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/jepler-udecimal/badge/?version=latest\n :target: https://jepler-udecimal.readthedocs.io/en/latest/\n :alt: Documentation Status\n\n.. image:: https://img.shields.io/discord/327254708534116352.svg\n :target: https://adafru.it/discord\n :alt: Discord\n\n.. image:: https://github.com/jepler/Jepler_CircuitPython_udecimal/workflows/Build%20CI/badge.svg\n :target: https://github.com/jepler/Jepler_CircuitPython_udecimal/actions\n :alt: Build Status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :target: https://github.com/psf/black\n :alt: Code Style: Black\n\n.. image:: https://results.pre-commit.ci/badge/github/jepler/Jepler_CircuitPython_udecimal/main.svg\n :target: https://results.pre-commit.ci/latest/github/jepler/Jepler_CircuitPython_udecimal/main\n :alt: pre-commit.ci status\n\nReduced version of the decimal library for CircuitPython\n\n\nDependencies\n=============\nThis library depends on:\n\n* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_\n\nThe library also runs on desktop Python3, and should give numerically identical\nresults across all platorms.\n\nInstalling from PyPI\n=====================\n\nTo install for current user:\n\n.. code-block:: shell\n\n python3 -mpip install --user jepler-circuitpython-udecimal\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo python3 -mpip install jepler-circuitpython-udecimal\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 jepler-circuitpython-udecimal\n\nUsage Example\n=============\n\n.. code-block:: python\n\n >>> from jepler_udecimal import Decimal\n >>> Decimal(2)/3\n Decimal('0.6666666666666666666666666667')\n >>> Decimal('.1') + Decimal('.2') == Decimal('.3')\n True\n\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/jepler/Jepler_CircuitPython_udecimal/blob/master/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n\nDocumentation\n=============\n\nFor information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Reduced version of the decimal library for CircuitPython",
"version": "1.0.10",
"project_urls": {
"Documentation": "https://jepler-udecimal.readthedocs.io/en/latest/api/jepler_udecimal/index.html",
"Source": "https://github.com/jepler/Jepler_CircuitPython_udecimal",
"Tracker": "https://github.com/jepler/Jepler_CircuitPython_udecimal/issues"
},
"split_keywords": [
"adafruit",
" blinka",
" circuitpython",
" micropython",
" udecimal",
" numeric",
" helper",
" arbitraryprecision",
" math"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a9635c5037dff0dd2a3d751f62f1dccb7c7c55bd2ec33aa99ddb9cb56c62da3d",
"md5": "386a621d6aacd6efe51057365a252314",
"sha256": "1cfd17cdd1f62aa956a826ad824109965a5be1d2079160c4400fb4d100719a6f"
},
"downloads": -1,
"filename": "circuitpython_jepler_udecimal-1.0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "386a621d6aacd6efe51057365a252314",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 47640,
"upload_time": "2024-04-09T19:05:30",
"upload_time_iso_8601": "2024-04-09T19:05:30.593396Z",
"url": "https://files.pythonhosted.org/packages/a9/63/5c5037dff0dd2a3d751f62f1dccb7c7c55bd2ec33aa99ddb9cb56c62da3d/circuitpython_jepler_udecimal-1.0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "93e01e3a38de9f916e75792d2967d732007f06f168b273ffc287d1d05bbe9611",
"md5": "a16c4f8f0ee6ef39515434747452f9ab",
"sha256": "01ac9289bf3a59e7bbceaa762550cad0f8b1fc3fa3ba003e6db08170705a2475"
},
"downloads": -1,
"filename": "circuitpython-jepler-udecimal-1.0.10.tar.gz",
"has_sig": false,
"md5_digest": "a16c4f8f0ee6ef39515434747452f9ab",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 76601,
"upload_time": "2024-04-09T19:05:32",
"upload_time_iso_8601": "2024-04-09T19:05:32.256376Z",
"url": "https://files.pythonhosted.org/packages/93/e0/1e3a38de9f916e75792d2967d732007f06f168b273ffc287d1d05bbe9611/circuitpython-jepler-udecimal-1.0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-09 19:05:32",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jepler",
"github_project": "Jepler_CircuitPython_udecimal",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "circuitpython-jepler-udecimal"
}