{ "info": { "author": "James Cagalawan", "author_email": "james.cagalawan@gmail.com", "bugtrack_url": null, "classifiers": [ "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# leftpad\nLeft pad a string in Python. \nCreated to try out making a `pip` package and uploading it to the [Python Package Index (PyPI)](https://pypi.org/).\nInspired by the [`left-pad` package on npm](https://www.npmjs.com/package/left-pad) which [broke parts of the internet](https://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/).\n\n# Install\n`pip install leftpad`\n\n# Usage\n```python\nfrom leftpad import left_pad\n\nleft_pad(\"foo\", 5)\n// => \" foo\"\n\nleft_pad(\"foobar\", 6)\n// => \"foobar\"\n\nleft_pad(1, 2, '0')\n// => \"01\"\n\nleft_pad(17, 5, 0)\n// => \"00017\"\n```\n\n## Testing\nRun `python -m doctest leftpad.py`.\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cglwn/leftpad-pypi", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "leftpad", "package_url": "https://pypi.org/project/leftpad/", "platform": "", "project_url": "https://pypi.org/project/leftpad/", "project_urls": { "Homepage": "https://github.com/cglwn/leftpad-pypi" }, "release_url": "https://pypi.org/project/leftpad/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "A port of the infamous left-pad npm package", "version": "0.1.2" }, "last_serial": 4089618, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5ba9683eeff4be6b05a05f346bc3b09c", "sha256": "a4b9bf80d42425273c2494144b77d6275be7a1e74a782c8ac47659f11c5b0dbf" }, "downloads": -1, "filename": "leftpad-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "5ba9683eeff4be6b05a05f346bc3b09c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 1733, "upload_time": "2018-07-22T02:31:45", "url": "https://files.pythonhosted.org/packages/8e/f5/17fcd6883f0c6687cf765a1d30542f18a63bd1052cfc67ed45833a7fca06/leftpad-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9997d53d72ada069ecf05e8e17ef4c40", "sha256": "ab25717213266f4232aed9fa0baa0fba440e85093c6f269e26eaf1a4d893b4ca" }, "downloads": -1, "filename": "leftpad-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9997d53d72ada069ecf05e8e17ef4c40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1415, "upload_time": "2018-07-22T02:31:46", "url": "https://files.pythonhosted.org/packages/5b/98/caac888665c5391ca649baaf8694e64b508a99cd72ec5c1bd2e35fd45dc1/leftpad-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "025c02c784a4f69562df2f281a618537", "sha256": "f87cf4b24b3f2cd1e4bc7cd814eba3e9cdc039c3e6ce6a5613c3de0e4f2ff25e" }, "downloads": -1, "filename": "leftpad-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "025c02c784a4f69562df2f281a618537", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 1821, "upload_time": "2018-07-22T02:42:25", "url": "https://files.pythonhosted.org/packages/9f/6b/2809b0d0d79e068f9668b244c8811cb455d655250078b73ee5bd4ec6928f/leftpad-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7925aacd1591a981ea373e416ef74b82", "sha256": "7cd9c90d9781c23d21ff894d2fb424f299e9459876f5e16bd34727d8579cc5a5" }, "downloads": -1, "filename": "leftpad-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7925aacd1591a981ea373e416ef74b82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1518, "upload_time": "2018-07-22T02:42:26", "url": "https://files.pythonhosted.org/packages/00/51/6c4afcf7c19871798a3713cbb3ca1f6b117626ae2eb69d5ed7cee6399a69/leftpad-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "e8111e485d0cb7acf625ea551fec58a3", "sha256": "8ff2df0f8dbe6537d7f5f7cfb579b628ee81d02556971f2bb5992f6dffacc60e" }, "downloads": -1, "filename": "leftpad-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "e8111e485d0cb7acf625ea551fec58a3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 1821, "upload_time": "2018-07-22T02:43:54", "url": "https://files.pythonhosted.org/packages/c2/92/b15f48c2fb7c18ff0a21d77c6c1e0f3ae743b8d5b0516841cd290ec5e283/leftpad-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "79ca60f6055970eb689daa628e99eb83", "sha256": "e38a2ebc18e0ce3adb4116708c9d8b0ec1d15414eafa4d236be7db893e8dc911" }, "downloads": -1, "filename": "leftpad-0.1.2.tar.gz", "has_sig": false, "md5_digest": "79ca60f6055970eb689daa628e99eb83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1513, "upload_time": "2018-07-22T02:43:55", "url": "https://files.pythonhosted.org/packages/8c/a4/174ed26c7165bdcdc3e612c1bba756b4c2f405bef6fcee4063481a981d0d/leftpad-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e8111e485d0cb7acf625ea551fec58a3", "sha256": "8ff2df0f8dbe6537d7f5f7cfb579b628ee81d02556971f2bb5992f6dffacc60e" }, "downloads": -1, "filename": "leftpad-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "e8111e485d0cb7acf625ea551fec58a3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 1821, "upload_time": "2018-07-22T02:43:54", "url": "https://files.pythonhosted.org/packages/c2/92/b15f48c2fb7c18ff0a21d77c6c1e0f3ae743b8d5b0516841cd290ec5e283/leftpad-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "79ca60f6055970eb689daa628e99eb83", "sha256": "e38a2ebc18e0ce3adb4116708c9d8b0ec1d15414eafa4d236be7db893e8dc911" }, "downloads": -1, "filename": "leftpad-0.1.2.tar.gz", "has_sig": false, "md5_digest": "79ca60f6055970eb689daa628e99eb83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1513, "upload_time": "2018-07-22T02:43:55", "url": "https://files.pythonhosted.org/packages/8c/a4/174ed26c7165bdcdc3e612c1bba756b4c2f405bef6fcee4063481a981d0d/leftpad-0.1.2.tar.gz" } ] }