{ "info": { "author": "Shinz Natkid", "author_email": "shinznatkid@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Environment :: Web Environment", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft", "Operating System :: POSIX", "Programming Language :: Python" ], "description": "Modernpy\r\n=================\r\n\r\nExtension methods for built-in type in Python.\r\n\r\nUsage\r\n--------\r\n\r\nInteger\r\n--------\r\n(123).instance_of(int)\r\n(123).to_s() == \"123\"\r\n(123).to_f() == 123.0 and (123).to_f().instance_of(float)\r\n\r\nfloat\r\n--------\r\n(123.45).instance_of(float)\r\n(123.45).to_s() == \"123.45\"\r\n(123.45).to_i() == 123\r\n\r\nstr\r\n--------\r\n\"hello\".instance_of(str)\r\n\"hello\".length == 5\r\n\"123\".to_i() == 123\r\n\"123.45\".to_f() == 123.45\r\n\"hello\".to_s() == \"hello\"\r\n\r\nUnicode\r\n--------\r\nu\"hello\".instance_of(unicode)\r\nu\"hello\".length == 5\r\nu\"123\".to_i() == 123\r\nu\"123.45\".to_f() == 123.45\r\nu\"hello\".to_s() == u\"hello\"\r\n\r\nlist\r\n--------\r\n[1, 2, 3, 4].instance_of(list)\r\n[1, 2, 3, 4].length == 4\r\n[1, 2, 3, 4].sum() == 10\r\n\r\ntuple\r\n--------\r\n(1, 2, 3, 4).instance_of(tuple)\r\n(1, 2, 3, 4).length == 4\r\n(1, 2, 3, 4).sum() == 10\r\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/shinznatkid/modernpy", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "modernpy", "package_url": "https://pypi.org/project/modernpy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/modernpy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/shinznatkid/modernpy" }, "release_url": "https://pypi.org/project/modernpy/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Extension methods for built-in type in Python.", "version": "0.1.0" }, "last_serial": 1490735, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1a1fa07e65a55a35383c16b5542dba6f", "sha256": "ea9126d422996e2962dab36d17f029cf11eef77cf2b4f68dad93be6f8fc70695" }, "downloads": -1, "filename": "modernpy-0.1.0.zip", "has_sig": false, "md5_digest": "1a1fa07e65a55a35383c16b5542dba6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5433, "upload_time": "2015-04-04T12:42:19", "url": "https://files.pythonhosted.org/packages/75/f0/2f6b6c1688afdf41afa84f8999f2c47ba065bd65cf242260b260380564d4/modernpy-0.1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1a1fa07e65a55a35383c16b5542dba6f", "sha256": "ea9126d422996e2962dab36d17f029cf11eef77cf2b4f68dad93be6f8fc70695" }, "downloads": -1, "filename": "modernpy-0.1.0.zip", "has_sig": false, "md5_digest": "1a1fa07e65a55a35383c16b5542dba6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5433, "upload_time": "2015-04-04T12:42:19", "url": "https://files.pythonhosted.org/packages/75/f0/2f6b6c1688afdf41afa84f8999f2c47ba065bd65cf242260b260380564d4/modernpy-0.1.0.zip" } ] }