{ "info": { "author": "Heungsub Lee", "author_email": "sub@subl.ee", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: Jython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Testing" ], "description": "Almost\n~~~~~~\n\nA helper for approximate comparison.\n\n::\n\n from almost import almost\n \n def test_repeating_decimal():\n assert almost(1 / 3.) == 0.333\n assert almost(1 / 6.) == 0.167\n assert almost(3227 / 555., precision=6) == 5.814414\n\n def test_irrational_number():\n import math\n assert almost(math.pi) == 3.142\n assert almost(math.sqrt(2)) == 1.414\n\n def test_random_text():\n import random\n def gen_text_with_prefix(prefix):\n return prefix + str(random.random())[:-5]\n assert almost(gen_text_with_prefix('@')) == '@...'\n\nLinks\n`````\n\n* `GitHub repository `_\n* `development version\n `_", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/sublee/almost", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "almost", "package_url": "https://pypi.org/project/almost/", "platform": "any", "project_url": "https://pypi.org/project/almost/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/sublee/almost" }, "release_url": "https://pypi.org/project/almost/0.1.5/", "requires_dist": null, "requires_python": null, "summary": "A helper to compare two numbers generously", "version": "0.1.5" }, "last_serial": 802758, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b7a08b4589d324e7760f9e9abe09a9d8", "sha256": "431a4a74922ec43adc94396485748c9e4170a56b6da5ae238966b9f5fca1ba0a" }, "downloads": -1, "filename": "almost-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b7a08b4589d324e7760f9e9abe09a9d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2382, "upload_time": "2013-01-08T10:53:01", "url": "https://files.pythonhosted.org/packages/d5/79/938e3d6bb0cd8b3ef672b7ebb54051a8da3dc5ffcce453c150dd79b7f5ba/almost-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "1abf00b7a2335c40fb442ca98bcb01aa", "sha256": "acbed1c92af1d4f43edca43f404c0a0a9dab9a73ccfc954fef053a00ae97d123" }, "downloads": -1, "filename": "almost-0.1.1.tar.gz", "has_sig": false, "md5_digest": "1abf00b7a2335c40fb442ca98bcb01aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2875, "upload_time": "2013-01-09T10:17:49", "url": "https://files.pythonhosted.org/packages/1c/e1/9ca2561d0a277310608c47c1ef9772e538f9a81b096d6988d18898969d56/almost-0.1.1.tar.gz" } ], "0.1.2": [], "0.1.3": [ { "comment_text": "", "digests": { "md5": "a142363320c52d0f62e812989394b4f7", "sha256": "5362af1b84c823c43d66fcbddef7de8b2354fe9a0d00cf777e205fe74ef64550" }, "downloads": -1, "filename": "almost-0.1.3.tar.gz", "has_sig": false, "md5_digest": "a142363320c52d0f62e812989394b4f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3091, "upload_time": "2013-02-28T13:33:06", "url": "https://files.pythonhosted.org/packages/4a/68/1924b3a84a115c33048d8918fb450788744b02d215cd73b40309c2f64fca/almost-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "2bbdb1aba1945a80fe93189ecde7b525", "sha256": "50f92f0fc5a6f5a8669a695459b78f505e9cc07dfa941462f87a23ff89bf0155" }, "downloads": -1, "filename": "almost-0.1.4.tar.gz", "has_sig": false, "md5_digest": "2bbdb1aba1945a80fe93189ecde7b525", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3130, "upload_time": "2013-02-28T14:11:24", "url": "https://files.pythonhosted.org/packages/ee/ea/26925a42e9b236d38e57a36e629faca28075922c63b3f786a36467883c82/almost-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "2b0c0f576341622d7dd18d32a6c1d402", "sha256": "e192af9fb078b0276d001bfb52958511aef703a716e5b63678535a59ad560f5b" }, "downloads": -1, "filename": "almost-0.1.5.tar.gz", "has_sig": false, "md5_digest": "2b0c0f576341622d7dd18d32a6c1d402", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3233, "upload_time": "2013-03-06T10:20:12", "url": "https://files.pythonhosted.org/packages/3f/8d/c7ea8c685703a2f9c1ea4e7bae2826546322f1dfb0a798963e1672702dfb/almost-0.1.5.tar.gz" } ], "0.1.dev": [ { "comment_text": "", "digests": { "md5": "0856f5bf775d9c720a0d15d7db3d6f82", "sha256": "b27e802c6fcb038f6fa73df59c3ea9235100dc087e5ccabc62f56b730e606103" }, "downloads": -1, "filename": "almost-0.1.dev.tar.gz", "has_sig": false, "md5_digest": "0856f5bf775d9c720a0d15d7db3d6f82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2216, "upload_time": "2013-01-08T10:01:24", "url": "https://files.pythonhosted.org/packages/09/95/677f9011c3909ca4da30206b7974f788fd595aee07f7317523632e23b023/almost-0.1.dev.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2b0c0f576341622d7dd18d32a6c1d402", "sha256": "e192af9fb078b0276d001bfb52958511aef703a716e5b63678535a59ad560f5b" }, "downloads": -1, "filename": "almost-0.1.5.tar.gz", "has_sig": false, "md5_digest": "2b0c0f576341622d7dd18d32a6c1d402", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3233, "upload_time": "2013-03-06T10:20:12", "url": "https://files.pythonhosted.org/packages/3f/8d/c7ea8c685703a2f9c1ea4e7bae2826546322f1dfb0a798963e1672702dfb/almost-0.1.5.tar.gz" } ] }