{ "info": { "author": "Tom Catling", "author_email": "tomcatling@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: Unix", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "![black-nb logo](https://s3.eu-west-2.amazonaws.com/tomcatling-public/black-nb-large.png)\n\n

The uncompromising code formatter, for Jupyter notebooks

\n\n

\n\"Build\n\"Code\n\"Code\n\"Code\n

\n\n\n*black-nb* applies [*black*](https://github.com/ambv/black) to Jupyter notebooks.\n\nMuch of the code is taken from the original *black* project and the behaviour is intentionally similar.\n \n## Installation\n\n`pip install black-nb`\n\n## Usage\n\nTo apply *black* to all code cells in notebooks under the current directory:\n\n```bash\nblack-nb .\n```\nTo clear cell outputs in addition to reformatting:\n\n```bash\nblack-nb --clear-output .\n```\n\nTo check if notebooks pass *black* and additionally have no output (files will be unchanged):\n\n```bash\nblack-nb --clear-output --check .\n```\n\nTo reformat all `*.ipynb` files below `./`, excluding paths matching `*/outputs/*` or `*/.ipynb_checkpoints/*`:\n\n```bash\nblack-nb --exclude '/(outputs|\\.ipynb_checkpoints)/' .\n```\n\n## Command Line Options\n\n*black-nb* doesn't provide many options. You can list them by running `black-nb --help`:\n\n```text\nUsage: black-nb [OPTIONS] [SRC]...\n\n The uncompromising code formatter, for Jupyter notebooks.\n\nOptions:\n -l, --line-length INTEGER How many characters per line to allow. [default:\n 79]\n --check Don't write the files back, just return the\n status. Return code 0 means nothing would\n change. Return code 1 means some files would be\n reformatted. Return code 123 means there was an\n internal error.\n --include TEXT A regular expression that matches files and\n directories that should be included on recursive\n searches. An empty value means all files are\n included regardless of the name. Use forward\n slashes for directories on all platforms\n (Windows, too). Exclusions are calculated first,\n inclusions later. [default: \\.ipynb$]\n --exclude TEXT A regular expression that matches files and\n directories that should be excluded on recursive\n searches. An empty value means no paths are\n excluded. Use forward slashes for directories on\n all platforms (Windows, too). Exclusions are\n calculated first, inclusions later. [default: /(\n \\.git|\\.hg|\\.mypy_cache|\\.nox|\\.tox|\\.venv|_build\n |buck-out|build|dist|\\.ipynb_checkpoints)/]\n -q, --quiet Don't emit non-error messages to stderr. Errors\n are still emitted, silence those with\n 2>/dev/null.\n -v, --verbose Also emit messages to stderr about files that\n were not changed or were ignored due to\n --exclude=.\n --clear-output Clear cell output as part of formatting.\n --config FILE Read configuration from PATH.\n -h, --help Show this message and exit.\n```\n\n\n## Copyright\n\nCopyright \u00a9 2019 Tom Catling, Liam Coatman.\n\n`black-nb` is distributed under the terms of the [MIT licence].\n\n[mit licence]: https://opensource.org/licenses/MIT", "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/tomcatling/black-nb", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "black-nb", "package_url": "https://pypi.org/project/black-nb/", "platform": "", "project_url": "https://pypi.org/project/black-nb/", "project_urls": { "Homepage": "https://github.com/tomcatling/black-nb" }, "release_url": "https://pypi.org/project/black-nb/0.2.3/", "requires_dist": null, "requires_python": ">3.6", "summary": "Apply black to all code cells in a Jupyter notebook.", "version": "0.2.3" }, "last_serial": 5234162, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "190f5d02c83c8ca30be62ba8fccc3090", "sha256": "c10c8d1d9b2c1a0ae7595588e7b9cf237edd4ff903d43f87e887399b844791d9" }, "downloads": -1, "filename": "black_nb-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "190f5d02c83c8ca30be62ba8fccc3090", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4035, "upload_time": "2019-01-31T10:44:00", "url": "https://files.pythonhosted.org/packages/25/0a/fccef870cb366751fbec08de65f0000aa5c824a36b2eca066995e8548e36/black_nb-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "309071565f11a31b4c1b64bb9eb20395", "sha256": "117aa760c6be2cda3e870214b2504618bbc4e3434d770bc9333be8ee1ad524ab" }, "downloads": -1, "filename": "black-nb-0.0.1.tar.gz", "has_sig": false, "md5_digest": "309071565f11a31b4c1b64bb9eb20395", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3665, "upload_time": "2019-01-31T10:44:02", "url": "https://files.pythonhosted.org/packages/48/db/03d88127126f07dd0a5989271f50a6518ae8dd1aab61f3b1305d3c41a272/black-nb-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "00efda9755a9991b7f5df861aa9ee993", "sha256": "4283714f1ba03bb4326e5c669e66b716c50c6a4ec6d226fda6067512d46c36a4" }, "downloads": -1, "filename": "black_nb-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "00efda9755a9991b7f5df861aa9ee993", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5825, "upload_time": "2019-01-31T22:19:10", "url": "https://files.pythonhosted.org/packages/b7/ef/d5a5a9b47fbb3c06f588d66ae8617b1944540a7571e1e28e4ff85eb7a98d/black_nb-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "81c71f424e4c2e6a3525a76c1502b2cf", "sha256": "ad96c0f1aebd3074ebdc8dd874fcde3f17b3099f426b683cf6d85b7dd8975cdc" }, "downloads": -1, "filename": "black-nb-0.0.2.tar.gz", "has_sig": false, "md5_digest": "81c71f424e4c2e6a3525a76c1502b2cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5414, "upload_time": "2019-01-31T22:19:11", "url": "https://files.pythonhosted.org/packages/21/d4/0085cdf66a711c1c0db24c444b22de32e5536e12ca7fe84971d9cb5c7264/black-nb-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "c606d6ac7075400f904bdc093b8fab49", "sha256": "71fd2d63ea8970aaed18d01fdbb8573677eefec4596e517ab708b3a924053155" }, "downloads": -1, "filename": "black_nb-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "c606d6ac7075400f904bdc093b8fab49", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5833, "upload_time": "2019-01-31T22:36:13", "url": "https://files.pythonhosted.org/packages/26/cb/5360ab56ac88e821d4549f747c476e30cb800df024d2432c9802e7bf555c/black_nb-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "72742fa74684c9e82096942dbbcdbe29", "sha256": "24baae4e3d16af0ba36ab0d4f67689bba9806d23b5ec107ebc22daa8057aaaa7" }, "downloads": -1, "filename": "black-nb-0.0.3.tar.gz", "has_sig": false, "md5_digest": "72742fa74684c9e82096942dbbcdbe29", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5421, "upload_time": "2019-01-31T22:36:14", "url": "https://files.pythonhosted.org/packages/92/89/303143a31c2a7c1945c94023bb83dcabf92d0ae851dd226a9cc28f316625/black-nb-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "2387e805d9a19983d601d3ad424dbbb2", "sha256": "a3770b206fccbf6bf64b00306e66a74586491c586d65d940ecda300195d09525" }, "downloads": -1, "filename": "black_nb-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "2387e805d9a19983d601d3ad424dbbb2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6811, "upload_time": "2019-02-02T21:15:46", "url": "https://files.pythonhosted.org/packages/f2/29/8e854919313ac58208565d6a8951a99b5c361b3ad8f3f3ae5a42f73c8e44/black_nb-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cdd957e478618c44427b9a58c6247484", "sha256": "be9811ef55ac94d5e37c683c7a2f320a180f67dd6a5c853cdf5bd8cff065d68d" }, "downloads": -1, "filename": "black-nb-0.0.4.tar.gz", "has_sig": false, "md5_digest": "cdd957e478618c44427b9a58c6247484", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6288, "upload_time": "2019-02-02T21:15:47", "url": "https://files.pythonhosted.org/packages/ff/5a/5e1c37b8028b5ef67414d994529e9d025c2bc77c4c6baf23cfd0a2c8ae06/black-nb-0.0.4.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "a3d9aa7cc6bb840396d9977ad9bbd25e", "sha256": "1919b1cc3cf0949269fad555aaa9b95f18613bbe12f82d7653ddea07af7cce96" }, "downloads": -1, "filename": "black_nb-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a3d9aa7cc6bb840396d9977ad9bbd25e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7,<4.0", "size": 16342, "upload_time": "2019-02-04T11:11:18", "url": "https://files.pythonhosted.org/packages/67/04/23758df2cefe034e90ec626e6953c75dcf9bd15ad507bc3a7c1ec56f0533/black_nb-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "af29d42e1ba57bb141d69645ae9ac09f", "sha256": "e66f9ef717848d8f38e75bd499d7ebedd272b205482ae2160bac4c3b2d35015a" }, "downloads": -1, "filename": "black-nb-0.1.0.tar.gz", "has_sig": false, "md5_digest": "af29d42e1ba57bb141d69645ae9ac09f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7,<4.0", "size": 6575, "upload_time": "2019-02-04T11:11:17", "url": "https://files.pythonhosted.org/packages/08/59/af32ae4e04222fd626954e7033b9ae0bbdeea850d86567f2cb1e7583fb02/black-nb-0.1.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "c30dbee2b683b9eabe3ac72a2f436cab", "sha256": "24728f49ee0ff22c418ddc9d8f708034d42dd913a82221e361e80b5b8184ce6b" }, "downloads": -1, "filename": "black-nb-0.2.1.tar.gz", "has_sig": false, "md5_digest": "c30dbee2b683b9eabe3ac72a2f436cab", "packagetype": "sdist", "python_version": "source", "requires_python": ">3.6", "size": 9076, "upload_time": "2019-02-04T22:30:52", "url": "https://files.pythonhosted.org/packages/71/c1/1931dc6dda7eb9605af43832636164703a8cc537e605b5a255352f84dcef/black-nb-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "d6a9ae5b5e44ae1da1eff8537d3f4744", "sha256": "eca9ec42587af97234fe0d31bde163f5a604dd585fcf7d1e83c755b455c9ebb7" }, "downloads": -1, "filename": "black-nb-0.2.2.tar.gz", "has_sig": false, "md5_digest": "d6a9ae5b5e44ae1da1eff8537d3f4744", "packagetype": "sdist", "python_version": "source", "requires_python": ">3.6", "size": 10644, "upload_time": "2019-02-07T09:10:28", "url": "https://files.pythonhosted.org/packages/33/76/859ab1a2013392bb4c639901aecb62e9c8031083d31a66dde6f84c10ad58/black-nb-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "d6fb09453772e54d588865064e26bab4", "sha256": "e12644801b4c6b986bc8a7bc324c4e8b7804d6ef6d49827cee452da052571ffb" }, "downloads": -1, "filename": "black-nb-0.2.3.tar.gz", "has_sig": false, "md5_digest": "d6fb09453772e54d588865064e26bab4", "packagetype": "sdist", "python_version": "source", "requires_python": ">3.6", "size": 9389, "upload_time": "2019-05-06T17:58:59", "url": "https://files.pythonhosted.org/packages/f2/28/9ac0381ac4f3736ff283103393d55adbe72fccef767724070048e4d652c9/black-nb-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d6fb09453772e54d588865064e26bab4", "sha256": "e12644801b4c6b986bc8a7bc324c4e8b7804d6ef6d49827cee452da052571ffb" }, "downloads": -1, "filename": "black-nb-0.2.3.tar.gz", "has_sig": false, "md5_digest": "d6fb09453772e54d588865064e26bab4", "packagetype": "sdist", "python_version": "source", "requires_python": ">3.6", "size": 9389, "upload_time": "2019-05-06T17:58:59", "url": "https://files.pythonhosted.org/packages/f2/28/9ac0381ac4f3736ff283103393d55adbe72fccef767724070048e4d652c9/black-nb-0.2.3.tar.gz" } ] }