{ "info": { "author": "Alexander A. Strelets", "author_email": "StreletsAA@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "``intf`` provides a simple base class for integers with specified\ndefault formatting. Define your own subclasses derived from `BaseIntF`\nand specify desired formatting right with the class name. Decimal,\nbinary, octal and hexadecimal formats are supported. See `BaseIntF` for\nmore details.\n\nExample::\n\n from intf import BaseIntF\n\n class int_04X(BaseIntF):\n pass\n\n x = int_04X(123)\n print '{}'.format(x) # prints 0x007B\n\n class int_06o(BaseIntF):\n pass\n\n y = int_06o(123)\n print '{}'.format(y) # prints 0o000173\n\n class int_08b(BaseIntF):\n pass\n\n z = int_08b(123)\n print '{}'.format(z) # prints 0b01111011\n\n print '{:02x}'.format(z) # still prints 7b", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/xoiss/python-intf", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/xoiss/python-intf", "keywords": "", "license": "Public Domain", "maintainer": "", "maintainer_email": "", "name": "intf", "package_url": "https://pypi.org/project/intf/", "platform": "Linux", "project_url": "https://pypi.org/project/intf/", "project_urls": { "Download": "https://github.com/xoiss/python-intf", "Homepage": "https://github.com/xoiss/python-intf" }, "release_url": "https://pypi.org/project/intf/1.0/", "requires_dist": null, "requires_python": "", "summary": "Base class for integers with specified default formatting", "version": "1.0" }, "last_serial": 3819021, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "6bb41156bbdf7d9e25ebd9a873ee4ae0", "sha256": "8607b85b1915a2dff83aa4e70450d3f9c1e4ba110e7a16497e65eee830a43666" }, "downloads": -1, "filename": "intf-1.0.tar.gz", "has_sig": false, "md5_digest": "6bb41156bbdf7d9e25ebd9a873ee4ae0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3296, "upload_time": "2018-04-29T16:56:37", "url": "https://files.pythonhosted.org/packages/df/28/df843f92d6884796143808163b403fd1f4f7d45461463e5f9ac50c3e9c25/intf-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6bb41156bbdf7d9e25ebd9a873ee4ae0", "sha256": "8607b85b1915a2dff83aa4e70450d3f9c1e4ba110e7a16497e65eee830a43666" }, "downloads": -1, "filename": "intf-1.0.tar.gz", "has_sig": false, "md5_digest": "6bb41156bbdf7d9e25ebd9a873ee4ae0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3296, "upload_time": "2018-04-29T16:56:37", "url": "https://files.pythonhosted.org/packages/df/28/df843f92d6884796143808163b403fd1f4f7d45461463e5f9ac50c3e9c25/intf-1.0.tar.gz" } ] }