{ "info": { "author": "penicolas", "author_email": "png1981@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Topic :: Utilities" ], "description": "REVERPF\n=======\n\n|pypi-version| |License|\n\nReverse `Printf `__.\n\nI dont understand\n-----------------\n\nLook this code (python):\n\n.. code:: python\n\n >>> print(\"%2d%2d\" % (19, 81))\n 1981\n\nOh well, but what's happen if I need revert the number 1981 to original\n19 and 81?:\n\n.. code:: shell\n\n $ echo \"1981\" | reverpf \"%2d%2d\"\n |19|81\n\nOf course, only works in fixed print.\n\nSystem requirements\n-------------------\n\n- Python3\n\nCompatibility\n-------------\n\nI do not know if the printf of C is a standard, but it seems that the\npython works the same.\n\nInstallation\n~~~~~~~~~~~~\n\n.. code:: shell\n\n $ pip install reverpf\n\nHelp\n----\n\nUsage\n~~~~~\n\n::\n\n usage: reverpf [-h] -f FORMAT [-i FILE] [-s SEPARATOR] [-v]\n\n optional arguments:\n -h, --help show this help message and exit\n -f FORMAT, --format FORMAT\n Format from printf\n -i FILE, --input-file FILE\n File input\n -s SEPARATOR, --separator SEPARATOR\n Separator string\n -v, --version show program's version number and exit\n\nExamples\n~~~~~~~~\n\n.. code:: shell\n\n # From stdin\n $ echo \"1981\" | reverpf -f \"%2d%2d\"\n ;19;81;\n\n # From file\n $ reverpf -f \"%2d%2d\" -i file.txt -s \"|\"\n |19|81|\n\nLicense\n-------\n\nMIT\n\n.. |pypi-version| image:: https://img.shields.io/pypi/v/reverpf.svg?style=flat-square\n :target: https://pypi.python.org/pypi?:action=display&name=reverpf&version=0.5.0\n.. |License| image:: http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\n :target: LICENSE\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.com/penicolas/reverpf", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "reverpf", "package_url": "https://pypi.org/project/reverpf/", "platform": "", "project_url": "https://pypi.org/project/reverpf/", "project_urls": { "Homepage": "https://bitbucket.com/penicolas/reverpf" }, "release_url": "https://pypi.org/project/reverpf/0.6.1/", "requires_dist": null, "requires_python": "", "summary": "Reverse Printf", "version": "0.6.1" }, "last_serial": 3188351, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "85633a37455575009ca24d78819755b2", "sha256": "00c5c94542470aa2fba127ba9137553e019dca70485ffb8d4093758f9e612d67" }, "downloads": -1, "filename": "reverpf-0.5.0.tar.gz", "has_sig": false, "md5_digest": "85633a37455575009ca24d78819755b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4394, "upload_time": "2017-03-13T11:45:11", "url": "https://files.pythonhosted.org/packages/bf/3d/8cb6a2ed0b69cd37e14f7d2668e99732c1fd9c6b42090bfe3554bc0402bc/reverpf-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "0cdfb5e487a7a1ea6a954acc861916b2", "sha256": "0c8e045c5edec53df284015aa72c8db8e2fd763b8ad020a878167569d2c088ad" }, "downloads": -1, "filename": "reverpf-0.6.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0cdfb5e487a7a1ea6a954acc861916b2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5564, "upload_time": "2017-03-28T20:46:15", "url": "https://files.pythonhosted.org/packages/44/8f/25c5cfeec1624d25a9b8d85208a428aea5e79d437485e3a6fe1af20845aa/reverpf-0.6.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f28925d33bdca340d5bae1aaebda7b8f", "sha256": "a0015cdedf105a05e5ff054a5a00df2755c6637aae8ab81e884acbc01f1e33b9" }, "downloads": -1, "filename": "reverpf-0.6.0.tar.gz", "has_sig": false, "md5_digest": "f28925d33bdca340d5bae1aaebda7b8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4723, "upload_time": "2017-03-28T20:46:17", "url": "https://files.pythonhosted.org/packages/f3/a2/988b31c99414eb109a4d7873f6dd3fa6d8a62175dcb65e671965d60b41eb/reverpf-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "834b27592b0e4ec72b322cdbc824a4a3", "sha256": "fbcce258ab27324337a7bd9ca1fae1fcb5b1aeb18f89b9ec3f4890c78786bcf9" }, "downloads": -1, "filename": "reverpf-0.6.1-py3-none-any.whl", "has_sig": false, "md5_digest": "834b27592b0e4ec72b322cdbc824a4a3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6773, "upload_time": "2017-09-20T13:17:00", "url": "https://files.pythonhosted.org/packages/18/52/fb99eb47e6d64ce963504b39990fc8df747db061c0f288e2da34a30c2b1f/reverpf-0.6.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "20a027934016048f06fc274c1033ee47", "sha256": "2a400bc2ac5ddf92202f7376dafc5a21fe5fe5e64cba348cf14d9d5fbb1bcf7b" }, "downloads": -1, "filename": "reverpf-0.6.1.tar.gz", "has_sig": false, "md5_digest": "20a027934016048f06fc274c1033ee47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4940, "upload_time": "2017-09-20T13:17:01", "url": "https://files.pythonhosted.org/packages/8c/4c/3c3ec0eea62d1005a9918923179a51b4d86cd726eae2bd0841421857867f/reverpf-0.6.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "834b27592b0e4ec72b322cdbc824a4a3", "sha256": "fbcce258ab27324337a7bd9ca1fae1fcb5b1aeb18f89b9ec3f4890c78786bcf9" }, "downloads": -1, "filename": "reverpf-0.6.1-py3-none-any.whl", "has_sig": false, "md5_digest": "834b27592b0e4ec72b322cdbc824a4a3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6773, "upload_time": "2017-09-20T13:17:00", "url": "https://files.pythonhosted.org/packages/18/52/fb99eb47e6d64ce963504b39990fc8df747db061c0f288e2da34a30c2b1f/reverpf-0.6.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "20a027934016048f06fc274c1033ee47", "sha256": "2a400bc2ac5ddf92202f7376dafc5a21fe5fe5e64cba348cf14d9d5fbb1bcf7b" }, "downloads": -1, "filename": "reverpf-0.6.1.tar.gz", "has_sig": false, "md5_digest": "20a027934016048f06fc274c1033ee47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4940, "upload_time": "2017-09-20T13:17:01", "url": "https://files.pythonhosted.org/packages/8c/4c/3c3ec0eea62d1005a9918923179a51b4d86cd726eae2bd0841421857867f/reverpf-0.6.1.tar.gz" } ] }