{ "info": { "author": "Bjoern I. Dahlgren", "author_email": "bjodah@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "pydollar\n========\n\n.. image:: https://travis-ci.org/bjodah/pydollar.png?branch=master\n :target: https://travis-ci.org/bjodah/pydollar\n.. image:: http://hera.physchem.kth.se:9090/api/badges/bjodah/pydollar/status.svg\n :target: http://hera.physchem.kth.se:9090/bjodah/pydollar\n :alt: Build status\n.. image:: https://img.shields.io/pypi/v/pydollar.svg\n :target: https://pypi.python.org/pypi/pydollar\n :alt: PyPI version\n.. image:: https://img.shields.io/badge/python-3.5,3.6-blue.svg\n :target: https://www.python.org/\n :alt: Python version\n.. image:: https://img.shields.io/pypi/l/pydollar.svg\n :target: https://github.com/bjodah/pydollar/blob/master/LICENSE\n :alt: License\n\n\n.. contents::\n\n\nAbout pydollar\n--------------\n`pydollar `_ is a `Python `_ module\nwhich enables a non-native syntax for the dollar sign ``$`` in Python code. It allows you to\nfollow the DRY-principle (don't repeat yourself) more stricly when writing python code:\n\nTake for example a file called ``mymodule.py``:\n\n.. code:: python\n\n from sympy import Symbol\n\n def my_func():\n alpha, beta, gamma, delta, epsilon = symbs = map(Symbol, $)\n return symbs\n\nwe could then import from it by first intalling an import hook:\n\n.. code:: python\n\n >>> import pydollar\n >>> pydollar.install_import_hook()\n >>> from mymodule import my_func\n >>> from sympy import init_printing\n >>> init_printing()\n >>> my_func()\n (\u03b1, \u03b2, \u03b3, \u03b4, \u03b5)\n\n \nMotivation\n----------\nf-strings were a great additon to Python 3.6, the ``$`` syntax follows it in spirit,\nit simply allows you to write succinct code.\n\nIf ``$`` syntax (or more importantly, the functionality it provides) becomes official syntax\nthere would be a real-world benefit to widely used codebases, e.g. SymPy:\n\nhttps://github.com/sympy/sympy/blob/sympy-1.0/sympy/core/symbol.py#L587\n\n\nInstallation\n------------\nSimplest way to install pydollar is to use ``pip``::\n \n $ python3 -m pip install --user pydollar\n\nyou can skip the ``--user`` flag if you have got root permissions.\n\n\nExamples\n--------\nSee the test files under `tests/ `_.\n\n\nLicense\n-------\nThe source code is Open Source and is released under the very permissive\n`\"simplified (2-clause) BSD license\" `_.\nSee `LICENSE `_ for further details.\n\n\nContributing\n------------\nContributors are welcome to suggest improvements at https://github.com/bjodah/pydollar\n\n\nAuthor\n------\nBj\u00f6rn I. Dahlgren, contact:\n - gmail address: bjodah\n - kth.se address: bda", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bjodah/pydollar", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "pydollar", "package_url": "https://pypi.org/project/pydollar/", "platform": "", "project_url": "https://pypi.org/project/pydollar/", "project_urls": { "Homepage": "https://github.com/bjodah/pydollar" }, "release_url": "https://pypi.org/project/pydollar/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "pydollar provides an installable import hook to support the dollar sign ($) as valid python syntax.", "version": "0.1.3" }, "last_serial": 2703955, "releases": { "0.1": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e7ed05f45a56e5e87a2b3e70e0ac4cee", "sha256": "a9c763f397c7c594acbe3911ca097269ced1e7113fdaf3d87b033c4f64c06f21" }, "downloads": -1, "filename": "pydollar-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e7ed05f45a56e5e87a2b3e70e0ac4cee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4171, "upload_time": "2017-03-14T01:12:50", "url": "https://files.pythonhosted.org/packages/db/14/8169158e82136b686bfcda63a813ac8af0db1abf820d4c2d61842b20b016/pydollar-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "ae8498021f766ea36d1983baa417e8d3", "sha256": "72a1addab707c7bda698fe703629e0bc26f3e0545b1770acb44285f943f8881f" }, "downloads": -1, "filename": "pydollar-0.1.2.tar.gz", "has_sig": false, "md5_digest": "ae8498021f766ea36d1983baa417e8d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4853, "upload_time": "2017-03-14T01:26:36", "url": "https://files.pythonhosted.org/packages/67/e9/2e75ad272cc02f61a474d5dfa4d8482d564fca4a6a8e69cf5305ba4492d6/pydollar-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "27590b873fa47d9a8ed0520abaa8c20c", "sha256": "61c564bcb841cf2b24019901c93f411eaaea7ed688ff0e35c79fed9d9a5aa7bb" }, "downloads": -1, "filename": "pydollar-0.1.3.tar.gz", "has_sig": false, "md5_digest": "27590b873fa47d9a8ed0520abaa8c20c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4939, "upload_time": "2017-03-14T01:42:08", "url": "https://files.pythonhosted.org/packages/9d/40/9982679792ec220b21ba3bb1ac41421b3a62e41e4ef6b9d4ace447ab76b5/pydollar-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "27590b873fa47d9a8ed0520abaa8c20c", "sha256": "61c564bcb841cf2b24019901c93f411eaaea7ed688ff0e35c79fed9d9a5aa7bb" }, "downloads": -1, "filename": "pydollar-0.1.3.tar.gz", "has_sig": false, "md5_digest": "27590b873fa47d9a8ed0520abaa8c20c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4939, "upload_time": "2017-03-14T01:42:08", "url": "https://files.pythonhosted.org/packages/9d/40/9982679792ec220b21ba3bb1ac41421b3a62e41e4ef6b9d4ace447ab76b5/pydollar-0.1.3.tar.gz" } ] }