{ "info": { "author": "Rhys Ulerich", "author_email": "rhys.ulerich@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Operating System :: OS Independent", "Programming Language :: Python :: 3 :: Only", "Topic :: Text Processing :: General", "Topic :: Utilities" ], "description": "Sourpuss: Like feeding pickles to a cat(1)\n==========================================\n\nSourpuss displays the contents of one or more Python pickle files on standard\noutput. Currently, this small utility targets pickled Pandas DataFrames\nand supports transforming them in simple ways. Other pickled objects\n(e.g. dicts, NumPy arrays, etc.) are coerced into DataFrames. By making\nit easy to answer simple questions via Unix pipelines, sourpuss lets you\navoid constantly context switching between $SHELL and Jupyter/IPython.\n\nHelp::\n\n Usage: sourpuss [OPTIONS] [FILE]...\n\n Cat Python pickle file(s) onto standard output, especially DataFrames.\n\n Options:\n -a, --append-index TEXT Append named column to the index.\n -c, --csv Emit CSV instead of formatted table.\n -l, --location Prefix each row with the location of the file\n -m, --multi-sparse Sparsify any MultiIndex display.\n -n, --no-index Do not display the index.\n -p, --precision DIGITS Change precision for floating point. [default: 17]\n -q, --query QUERY Show only rows satisfying a query.\n -r, --reset-index TEXT Remove named column from the index.\n -s, --sort-index Sort according to the index.\n -t, --types Show the type, not the value, of each datum.\n --help Show this message and exit.\n\n\nExamples::\n\n $ sourpuss data_frame.pkl\n name city phone-number date\n Katherine Rivera Pavo 540-489-5084 1973-01-18\n Katie Estrada Antler 992-454-3547 2003-07-07\n Scott Harris Colesville 665-552-3378 1989-01-01\n Anthony Flores Round Oak 437-057-2113 1975-01-27\n Deborah Clark Balcones Heights 871-803-9642 1978-02-07\n Andrea Owens Lucile 308-267-6029 2018-01-05\n Kimberly Myers Holly Ridge 906-150-0581 2002-02-26\n Katherine Garner Dalton City 687-950-3807 1984-06-16\n Brianna Preston Bernice 489-937-8732 1970-11-28\n Justin Herman Milleville Beach 847-845-5160 1984-11-10\n\n\n $ sourpuss data_frame.pkl -q 'city == \"Pavo\"'\n name city phone-number date\n Katherine Rivera Pavo 540-489-5084 1973-01-18\n\n\n $ sourpuss data_frame.pkl -a city -a name -s | head -5\n phone-number date\n city name\n Antler Katie Estrada 992-454-3547 2003-07-07\n Balcones Heights Deborah Clark 871-803-9642 1978-02-07\n Bernice Brianna Preston 489-937-8732 1970-11-28\n\n $ sourpuss numpy_array.pkl -a 1 -s -p 6\n 0 2 3 4\n 1\n -0.686618 -0.309380 -0.787130 0.794882 -2.045493\n -0.579552 0.338158 -0.269337 1.290424 -0.872747\n -0.014240 0.333677 0.235846 -0.614426 0.222267\n 0.317477 0.407887 -0.289088 -0.231201 0.046131\n 1.307109 -0.383681 0.009120 -0.978323 0.446737\n\n\nNews\n====\n0.3\n---\n\n*Release date: 1-Oct-2018*\n\n* More uniform output on empty dataframes\n* Coerce columns to strings to allow append/reset of numeric\n* Removed lingering TODOs\n\n0.2\n---\n\n*Release date: 29-Sep-2018*\n\n* Support for a broader collection of types, including testing.\n* Suppress uninteresting RangeIndex by default in output.\n\n0.1\n---\n\n*Release date: 28-Sep-2018*\n\n* Initial release\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/RhysU/sourpuss", "keywords": "pandas cat pickle", "license": "Mozilla Public License 2.0", "maintainer": "", "maintainer_email": "", "name": "sourpuss", "package_url": "https://pypi.org/project/sourpuss/", "platform": "", "project_url": "https://pypi.org/project/sourpuss/", "project_urls": { "Homepage": "https://github.com/RhysU/sourpuss" }, "release_url": "https://pypi.org/project/sourpuss/0.3/", "requires_dist": null, "requires_python": "", "summary": "Like feeding pickles to a cat(1)", "version": "0.3" }, "last_serial": 4330994, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "050aa79b1776efce63722897d6fa7fb2", "sha256": "7cc5e14c7f19186eb4ae4d6f0fb0b8cb8c5551cf30df585b502c8bbe56ae753e" }, "downloads": -1, "filename": "sourpuss-0.1.tar.gz", "has_sig": false, "md5_digest": "050aa79b1776efce63722897d6fa7fb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4674, "upload_time": "2018-09-29T05:39:57", "url": "https://files.pythonhosted.org/packages/bd/b5/4685c02b2374aafb0ad3dadb535c4571bb6c406ea6f7748856506b574a10/sourpuss-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "c9e4912292f4d41fdcec94a6035bb9e2", "sha256": "8e7e3aa23c506c376d1f4004655a76cf15a7f92e3aa050da54eb3e08ca09b9cc" }, "downloads": -1, "filename": "sourpuss-0.2.tar.gz", "has_sig": false, "md5_digest": "c9e4912292f4d41fdcec94a6035bb9e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5318, "upload_time": "2018-09-29T20:44:18", "url": "https://files.pythonhosted.org/packages/09/aa/e24c5f610cf31fd07dd181e8a06bc12bc3a48910e33dc547fe4ac7f892f4/sourpuss-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "bfdff246d95fd5ef879c324a2bb59e04", "sha256": "f0b46ad31bafb5b00be1ba88d364cab829a695ad830f5bbe130b8b485f8cd0c4" }, "downloads": -1, "filename": "sourpuss-0.3.tar.gz", "has_sig": false, "md5_digest": "bfdff246d95fd5ef879c324a2bb59e04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5744, "upload_time": "2018-10-02T02:26:00", "url": "https://files.pythonhosted.org/packages/13/e6/b587e7dfe8f2d1ca9f393d9d8823ea245c3d724edec08794543af3767d96/sourpuss-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bfdff246d95fd5ef879c324a2bb59e04", "sha256": "f0b46ad31bafb5b00be1ba88d364cab829a695ad830f5bbe130b8b485f8cd0c4" }, "downloads": -1, "filename": "sourpuss-0.3.tar.gz", "has_sig": false, "md5_digest": "bfdff246d95fd5ef879c324a2bb59e04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5744, "upload_time": "2018-10-02T02:26:00", "url": "https://files.pythonhosted.org/packages/13/e6/b587e7dfe8f2d1ca9f393d9d8823ea245c3d724edec08794543af3767d96/sourpuss-0.3.tar.gz" } ] }