{ "info": { "author": "Thomas Gl\u00e4\u00dfle", "author_email": "thomas@coldfix.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development", "Topic :: Utilities" ], "description": "pyval\n=====\n\nShow the value of a python object via command line.\n\nExamples:\n\n.. code-block:: bash\n\n $ pyval sys.platform\n linux\n\nThis is meant to provide a more convenient alternative to:\n\n.. code-block:: bash\n\n python -c \"import sys; print(sys.platform)\"\n\nMore complex expressions are possible too:\n\n.. code-block:: bash\n\n $ pyval math.pi**2\n 9.869604401089358\n\n $ pyval 'math.sin(math.pi/4)'\n 0.7071067811865475\n\nThe output can be influenced using one of the following command line\narguments:\n\n=========================== ================================================\n``-r, --repr`` Print ``repr(obj)``\n``-j, --json`` Print ``json.dumps(obj)``\n``-p, --pprint`` Print ``pprint(obj)``\n``-f SPEC, --format SPEC`` Print ``format(obj, SPEC)``\n=========================== ================================================\n\n\nInstallation\n------------\n\nThe utility can be installed as follows::\n\n pip install --user eval\n\nIt is also possible to simply download ``val.py`` and symlink or move under\nthe name of your choice into your PATH, e.g.:\n\n.. code-block:: bash\n\n wget https://raw.githubusercontent.com/coldfix/pyval/master/val.py \\\n -O ~/.local/bin/pyval\n\nOnce either of these is done, it can be used within any python enviroment on\nyour system, as long as it is accessible in PATH.\n\nBy default it uses the currently activated environment. In order to use it\nwith unactivated python interpreter, you currently have to call the\ninterpreter manually as follows::\n\n /path/to/python ~/.local/bin/pyval 'math.sin(math.sin/3)'\n\nThis module is kept deliberately simple and avoids any dependencies not in the\nstandard library. This allows running the script in any python environment\nonce it is installed on the system, without having to install it in each\nenvironment individually.\n\nChangelog\n---------\n\n0.0.5\n~~~~~\nDate: 06.07.2019\n\n- fix SyntaxError due to unicode symbol on py2\n\n\n0.0.4\n~~~~~\nDate: 13.06.2019\n\n- learn ``--format SPEC`` argument\n- learn ``--json`` argument\n\n\n0.0.3\n~~~~~\nDate: 13.06.2019\n\n- shorter stack traces in case of error\n\n\n0.0.2\n~~~~~\nDate: 12.06.2019\n\n- add ``--pprint`` argument to pretty-print\n\n\n0.0.1\n~~~~~\nDate: 12.06.2019\n\nInitial release\n\n- simple script to print a python object from command line\n- automatically resolves imports as necessary\n- supports ``--repr`` option to show repr instead\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/coldfix/pyval", "keywords": "", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "eval", "package_url": "https://pypi.org/project/eval/", "platform": "", "project_url": "https://pypi.org/project/eval/", "project_urls": { "Homepage": "https://github.com/coldfix/pyval" }, "release_url": "https://pypi.org/project/eval/0.0.5/", "requires_dist": null, "requires_python": ">=2.7", "summary": "Show value of an importable object", "version": "0.0.5", "yanked": false, "yanked_reason": null }, "last_serial": 6055469, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "2a53daaef3205ca1e1af7fdb95db2046", "sha256": "6137eb4e5c503fe83d4813ff13f8a00e08645bb35a42a0f536d4e8f4fb1c4d89" }, "downloads": -1, "filename": "eval-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "2a53daaef3205ca1e1af7fdb95db2046", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7", "size": 3459, "upload_time": "2019-06-12T03:48:19", "upload_time_iso_8601": "2019-06-12T03:48:19.850788Z", "url": "https://files.pythonhosted.org/packages/82/8f/5d3d246434bdce409ac9815b0c867e7512ae30befdc53c2ab1af3be9de58/eval-0.0.1-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "bcabcbcf608b3c68eec7cd0ca0a4fc2a", "sha256": "0110888e02f4abadde7f6fead9d98b219fefc5eab955fdd54b46b6f1f7a9e187" }, "downloads": -1, "filename": "eval-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bcabcbcf608b3c68eec7cd0ca0a4fc2a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 3517, "upload_time": "2019-06-12T04:15:32", "upload_time_iso_8601": "2019-06-12T04:15:32.579755Z", "url": "https://files.pythonhosted.org/packages/61/09/466d58f8a6f429150a3c5fddd9970a7a1cb33f85bb020cb5a0647cfc1c39/eval-0.0.2-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "bd4b92e443b3dcdf3304ca3910a0eca0", "sha256": "117c9f34df5ad8774404b51f6a9f28799bb1b88b0d849fe07687dd81a6d139ac" }, "downloads": -1, "filename": "eval-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "bd4b92e443b3dcdf3304ca3910a0eca0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7", "size": 3512, "upload_time": "2019-06-12T04:14:42", "upload_time_iso_8601": "2019-06-12T04:14:42.938490Z", "url": "https://files.pythonhosted.org/packages/3b/1d/b1e550d67cf83732460592e0b7535a392fceac1f021d94ec31916b27bb89/eval-0.0.2-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "d79b3f8f33781f34ae1d8567332b1c8d", "sha256": "b5f7ef6f8235d5812c09c8826864fc271ce5a77f73a01ca0496ed650a57485d9" }, "downloads": -1, "filename": "eval-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d79b3f8f33781f34ae1d8567332b1c8d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 3464, "upload_time": "2019-06-12T22:22:49", "upload_time_iso_8601": "2019-06-12T22:22:49.513726Z", "url": "https://files.pythonhosted.org/packages/cd/37/6b2c0a440154cfce14427c533bcb819b8d273c51455d865472eb5a43b38e/eval-0.0.3-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "27cfe2e76546e83b59cc04b4cd4cebec", "sha256": "ec61dbe8b3dda57d1a2e272771c6327b56dafdb4b8cbd7a5a927404068fb6364" }, "downloads": -1, "filename": "eval-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "27cfe2e76546e83b59cc04b4cd4cebec", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 3779, "upload_time": "2019-06-12T23:45:43", "upload_time_iso_8601": "2019-06-12T23:45:43.174703Z", "url": "https://files.pythonhosted.org/packages/ea/5b/65b58f40502961093cc421521f8c6fc1c03d2306e4075c85b6a4429f60fb/eval-0.0.4-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "10ddd4e31cc481792c47e82c11bfe05e", "sha256": "f8e6d7b89f073989b120b75c82b9f4735e4e563f9e33b3598b87035952f6a79c" }, "downloads": -1, "filename": "eval-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "10ddd4e31cc481792c47e82c11bfe05e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 3830, "upload_time": "2019-07-06T00:17:56", "upload_time_iso_8601": "2019-07-06T00:17:56.066216Z", "url": "https://files.pythonhosted.org/packages/35/92/85bd70702398dd0491ae0b365d86be0c4f66787689c6c2c04fee6677a81d/eval-0.0.5-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "4b19c73333846fab16ff8bbf6b93250d", "sha256": "e13bf4181cdf06cadb9d507bcb40aef426849b2949f82e92dfc9926c8600b78e" }, "downloads": -1, "filename": "eval-0.0.5.tar.gz", "has_sig": false, "md5_digest": "4b19c73333846fab16ff8bbf6b93250d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 3588, "upload_time": "2019-10-31T00:30:49", "upload_time_iso_8601": "2019-10-31T00:30:49.980561Z", "url": "https://files.pythonhosted.org/packages/33/0c/03fd95212dbc0446a2aea1a1f245b61d2d3390f2417ea0969c157a31be03/eval-0.0.5.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "10ddd4e31cc481792c47e82c11bfe05e", "sha256": "f8e6d7b89f073989b120b75c82b9f4735e4e563f9e33b3598b87035952f6a79c" }, "downloads": -1, "filename": "eval-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "10ddd4e31cc481792c47e82c11bfe05e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 3830, "upload_time": "2019-07-06T00:17:56", "upload_time_iso_8601": "2019-07-06T00:17:56.066216Z", "url": "https://files.pythonhosted.org/packages/35/92/85bd70702398dd0491ae0b365d86be0c4f66787689c6c2c04fee6677a81d/eval-0.0.5-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "4b19c73333846fab16ff8bbf6b93250d", "sha256": "e13bf4181cdf06cadb9d507bcb40aef426849b2949f82e92dfc9926c8600b78e" }, "downloads": -1, "filename": "eval-0.0.5.tar.gz", "has_sig": false, "md5_digest": "4b19c73333846fab16ff8bbf6b93250d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 3588, "upload_time": "2019-10-31T00:30:49", "upload_time_iso_8601": "2019-10-31T00:30:49.980561Z", "url": "https://files.pythonhosted.org/packages/33/0c/03fd95212dbc0446a2aea1a1f245b61d2d3390f2417ea0969c157a31be03/eval-0.0.5.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }