{ "info": { "author": "Mathias Lohne", "author_email": "mathialo@ifi.uio.no", "bugtrack_url": null, "classifiers": [], "description": "# Bython\nPython with braces. Because Python is awesome, but whitespace is awful.\n\nBython is a Python preprosessor which translates curly brackets into indentation.\n\n\n## Content of README:\n * [Key features](#key-features)\n * [Code example](#code-example)\n * [Installation](#installation)\n * [Quick intro](#quick-intro)\n * [Structure of the repository](#structure-of-the-repository)\n\n\n## Key features\n\n * \"Forget\" about indentaition. You should still write beautiful code, but if you mess up with tabs/spaces, or copy one piece of code to another that uses a different indentation style, it won't break.\n\n * Uses Python for interpretation, that means that all of your existing modules, like NumPy and Matplotlib still works.\n\n\n## Code example\n\n```python\ndef print_message(num_of_times) {\n for i in range(num_of_times) {\n print(\"Bython is awesome!\");\n }\n}\n\nif __name__ == \"__main__\" {\n print_message(10);\n}\n```\n\n\n## Installation\n\nYou can install Bython directly from PyPI using pip (with or without `sudo -H`, depending on your Python installation):\n\n```\n$ sudo -H pip3 install bython\n```\n\nIf you for some reason want to install it from the git repository you can use `git clone` and do a local install instead:\n\n```\n$ git clone https://github.com/mathialo/bython.git\n$ cd bython\n$ sudo -H pip3 install .\n```\n\nThe git version is sometimes a tiny bit ahead of the PyPI version, but not significantly.\n\nTo uninstall, simply run \n\n```\n$ sudo pip3 uninstall bython\n```\n\nwhich will undo all the changes.\n\n\n\n## Quick intro\n\nBython works by first translating Bython-files (suggested file ending: .by) into Python-files, and then using Python to run them. You therefore need a working installation of Python for Bython to work.\n\n\nTo run a Bython program, simply type\n\n```\n$ bython source.by arg1 arg2 ...\n```\n\nto run `source.by` with arg1, arg2, ... as command line arguments. If you want more details on how to run Bython files (flags, etc), type\n\n```\n$ bython -h\n```\n\nto print the built-in help page. You can also consult the man page by typing\n\n```\n$ man bython\n```\n\nBython also includes a translator from Python to Bython. This is found via the `py2by` command:\n\n```\n$ py2by test.py\n```\n\nThis will create a Bython file called `test.by`. A full explanation of `py2by`, is found by typing\n\n```\n$ py2by -h\n```\n\nor by consulting the man page:\n\n```\n$ man py2by\n```\n\nFor a more in-depth intro, consult the [bython introduction](INTRODUCTION.md)\n\n\n## Structure of the repository\n\nAt the moment, Bython is written in Python. The git repository is structured into 4 directories:\n\n * `bython` contains a Python package containing the parser and other utilities used by the main script\n * `etc` contains manual pages and other auxillary files\n * `scripts` contains the runnable Python scripts, ie the ones run from the shell\n * `testcases` contains a couple of sample \\*.by and \\*.py files intended for testing the implementation\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mathialo/bython", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Bython", "package_url": "https://pypi.org/project/Bython/", "platform": "", "project_url": "https://pypi.org/project/Bython/", "project_urls": { "Homepage": "https://github.com/mathialo/bython" }, "release_url": "https://pypi.org/project/Bython/0.8/", "requires_dist": null, "requires_python": "", "summary": "Python with braces", "version": "0.8" }, "last_serial": 4542497, "releases": { "0.6": [ { "comment_text": "", "digests": { "md5": "c89cb016afba09bdfe3a54342c9a4412", "sha256": "82abbf7c01ed91308e1766dde1a2f12b84cc9ac112eec698d13d5fd551a37eba" }, "downloads": -1, "filename": "bython-0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "c89cb016afba09bdfe3a54342c9a4412", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10560, "upload_time": "2018-05-24T08:20:20", "url": "https://files.pythonhosted.org/packages/ba/2a/848e2bed2d73bb3f8f54b8c3c3880c7e32716c6dc12d5feefdbdcab740eb/bython-0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "90bb79bc05508eab2fbcfee51b0bfbbf", "sha256": "53d0fa0d17b4bf0287df493b737d298c610c8c9a70ad8964448e6882853e282b" }, "downloads": -1, "filename": "bython-0.6.tar.gz", "has_sig": false, "md5_digest": "90bb79bc05508eab2fbcfee51b0bfbbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7656, "upload_time": "2018-05-24T08:20:22", "url": "https://files.pythonhosted.org/packages/ab/09/144d6806e8e3fc9f410f903989755b194fd24d0ab45d924ea360a6bbf246/bython-0.6.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "cd2290fd18791aa500f906c8443eb974", "sha256": "e63aaf0d7c1ccb6fc275785765ce0c8e923ced13e2286e07dc6913a6b11727c1" }, "downloads": -1, "filename": "bython-0.6.1-py3-none-any.whl", "has_sig": false, "md5_digest": "cd2290fd18791aa500f906c8443eb974", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10704, "upload_time": "2018-05-24T08:40:00", "url": "https://files.pythonhosted.org/packages/c4/43/3f3281af2ae770ce0455e21a198782d2a41eb59b7b4157cb3f598e677d97/bython-0.6.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "adee3f670786907dcbddf45a4d251dd5", "sha256": "4cc6a0c25db54024199b6e67ebf8d4a0253c970e038bc0a69d85431f0497de35" }, "downloads": -1, "filename": "bython-0.6.1.tar.gz", "has_sig": false, "md5_digest": "adee3f670786907dcbddf45a4d251dd5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8176, "upload_time": "2018-05-24T08:40:01", "url": "https://files.pythonhosted.org/packages/56/21/edbca02757b4fabfb1e7b7aac722d56e526d8f6471121b1334aa09721d34/bython-0.6.1.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "ae07b9da4655f230c819743a8676d500", "sha256": "0ba8d1ff5cdcf9f54a58e634441fa720c321c43eee28341d7ef6a99f8a0a3144" }, "downloads": -1, "filename": "bython-0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "ae07b9da4655f230c819743a8676d500", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13169, "upload_time": "2018-06-07T08:46:26", "url": "https://files.pythonhosted.org/packages/d7/97/3ebc6cc855bf895f63d39b6abdfb1bfebe75205f8225e7801f281dc67ca4/bython-0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a1eefaa44798b4aa3c580938df07b57b", "sha256": "3a2242c7fe40af00b3fd361f1ec67a5663f592adacea46751fc58babb356819b" }, "downloads": -1, "filename": "bython-0.7.tar.gz", "has_sig": false, "md5_digest": "a1eefaa44798b4aa3c580938df07b57b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10048, "upload_time": "2018-06-07T08:46:26", "url": "https://files.pythonhosted.org/packages/ef/1d/3b6c4ab58a475a36211bf7355da5e3cab72f1f30b3af3bbe93325685c80e/bython-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "54afed93af6a4ff7158f2efd56a27fd3", "sha256": "94c4a13724578a0bed40c2679a1d89de06dcb84e77f17cb2b8668312493cc3a4" }, "downloads": -1, "filename": "bython-0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "54afed93af6a4ff7158f2efd56a27fd3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14011, "upload_time": "2018-11-29T10:57:47", "url": "https://files.pythonhosted.org/packages/13/be/b45cae6a63c9c131b83664516fc3460a3b9644d68f5252bbd29288022764/bython-0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8eff6df48a9166c862e6a325c21c0cca", "sha256": "49c73aa53f17e0180f6789cc434227f24ea5c1590cc67ce0ac8d799f506f3972" }, "downloads": -1, "filename": "bython-0.8.tar.gz", "has_sig": false, "md5_digest": "8eff6df48a9166c862e6a325c21c0cca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10864, "upload_time": "2018-11-29T10:57:49", "url": "https://files.pythonhosted.org/packages/9f/b1/b0af10aac41ddb0a0911f47d282f45633cc1fa72e7b5a240cb2673ca0115/bython-0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "54afed93af6a4ff7158f2efd56a27fd3", "sha256": "94c4a13724578a0bed40c2679a1d89de06dcb84e77f17cb2b8668312493cc3a4" }, "downloads": -1, "filename": "bython-0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "54afed93af6a4ff7158f2efd56a27fd3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14011, "upload_time": "2018-11-29T10:57:47", "url": "https://files.pythonhosted.org/packages/13/be/b45cae6a63c9c131b83664516fc3460a3b9644d68f5252bbd29288022764/bython-0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8eff6df48a9166c862e6a325c21c0cca", "sha256": "49c73aa53f17e0180f6789cc434227f24ea5c1590cc67ce0ac8d799f506f3972" }, "downloads": -1, "filename": "bython-0.8.tar.gz", "has_sig": false, "md5_digest": "8eff6df48a9166c862e6a325c21c0cca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10864, "upload_time": "2018-11-29T10:57:49", "url": "https://files.pythonhosted.org/packages/9f/b1/b0af10aac41ddb0a0911f47d282f45633cc1fa72e7b5a240cb2673ca0115/bython-0.8.tar.gz" } ] }