{ "info": { "author": "Baptiste Fontaine", "author_email": "b@ptistefontaine.fr", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# Buca\n\n**Buca** is a small Python script to blank some words in a text. I feed it with\nlyrics and it gives me a text with blanks I can then fill when listening to the\nsong. It\u2019s very helpful for vocabulary when learning a new language.\n\n## Install\n\n pip3 install buca\n\n## Usage\n\n buca [--ratio RATIO] [--fixed-size] [--numbers] [--max-count COUNT] []\n\n* `--ratio RATIO`: change the default blank-to-word ratio. The default is 0.12,\n i.e. about 12% of the words are removed.\n* `--fixed-size`: by default, missing words are replaced with a sequence of `_`\n of the length of the word. Using this option changes that to a fixed length\n that doesn\u2019t depend on the word.\n* `--numbers`: prefix blanks with an index, starting at 1. If you don\u2019t want to\n print the text, you can report those numbers on a piece of paper.\n* `--max-count COUNT`: limit the blanked words count.\n\nIf `` is not provided or if it\u2019s `-`, the script reads on `STDIN`.\n\nBecause it relies on randomness, each invocation of the script on the same text\nshould have different results. The number of blanked words may also change.\n\nNote that a word is defined as a sequence of two or more alphanumerical\ncharacters.\n\n## Examples\n\nRaw text:\n```\nLe cose che abbiamo in comune sono 4850\nle conto da sempre, da quando mi hai detto\n\"ma dai, pure tu sei degli anno '60?\"\nabbiamo due braccia, due mani\ndue gambe, due piedi\ndue orecchie ed un solo cervello\n```\n\n### Default parameters\n\n```\n$ buca example.txt\n```\n\n```\nLe cose che abbiamo in comune sono 4850\nle conto da sempre, da ______ __ hai detto\n\"ma dai, pure tu sei degli anno '__?\"\nabbiamo due braccia, due mani\n___ gambe, due piedi\ndue orecchie ed un solo cervello\n```\n\n### Increased ratio\n\n```\n$ buca --ratio 0.2 example.txt\n```\n\n```\nLe cose che abbiamo __ comune sono ____\nle conto da sempre, da quando __ hai detto\n\"ma dai, pure tu sei degli ____ '60?\"\n_______ due braccia, ___ ____\ndue gambe, due piedi\ndue ________ __ un solo cervello\n```\n\n### Fixed-size\n\n```\n$ buca --fixed-size example.txt\n```\n\n```\nLe cose che abbiamo in comune sono 4850\n_____ conto da sempre, da quando mi hai _____\n\"ma dai, pure tu sei degli anno '60?\"\nabbiamo due braccia, due _____\ndue gambe, due piedi\ndue orecchie ed un solo cervello\n```\n\n### With numbers\n\n```\n$ buca --numbers example.txt\n```\n\n```\nLe (1) ____ che abbiamo in comune sono (2) ____\nle conto da sempre, da quando mi hai detto\n\"ma dai, pure tu sei degli anno '60?\"\nabbiamo due braccia, due mani\n(3) ___ gambe, due piedi\ndue orecchie (4) __ un solo cervello\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/bfontaine/buca", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "buca", "package_url": "https://pypi.org/project/buca/", "platform": "", "project_url": "https://pypi.org/project/buca/", "project_urls": { "Homepage": "https://github.com/bfontaine/buca" }, "release_url": "https://pypi.org/project/buca/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "Blank random words in a text", "version": "0.0.2" }, "last_serial": 5527382, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "83d597e160f58e0f745e2898106f4a1e", "sha256": "174e431270e1e986fcc5fe9760a6057632dd2feff7fd7faac06faa83b82ba3b6" }, "downloads": -1, "filename": "buca-0.0.1.tar.gz", "has_sig": false, "md5_digest": "83d597e160f58e0f745e2898106f4a1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3780, "upload_time": "2018-07-29T21:05:47", "url": "https://files.pythonhosted.org/packages/16/5a/db342d521b34ba0ce1b6a8b4da155e292fc485d4c7543f702cea673e7eeb/buca-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4f19607caba1396504c8c0df58d9d426", "sha256": "be6ae002e3f1e7dd042e7cecc8341f6aedad048010fa544fd6514c89a5839a8f" }, "downloads": -1, "filename": "buca-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "4f19607caba1396504c8c0df58d9d426", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4098, "upload_time": "2019-07-13T16:57:19", "url": "https://files.pythonhosted.org/packages/fc/e2/659881ab3bf7c78a5b85e26d99661023feac0902c1c197c2b09b92303104/buca-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f2dbae2815428a96338a4de1ba60178", "sha256": "849cf0b8044123141b04a80bef23b8086bea8a67b9cee3b043725d1b5b88aa0c" }, "downloads": -1, "filename": "buca-0.0.2.tar.gz", "has_sig": false, "md5_digest": "7f2dbae2815428a96338a4de1ba60178", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4273, "upload_time": "2019-07-13T16:57:21", "url": "https://files.pythonhosted.org/packages/b2/4a/626fe68c5964ed1eb5a83b11a13e4908b01db30aee5bd897717d77f4a711/buca-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4f19607caba1396504c8c0df58d9d426", "sha256": "be6ae002e3f1e7dd042e7cecc8341f6aedad048010fa544fd6514c89a5839a8f" }, "downloads": -1, "filename": "buca-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "4f19607caba1396504c8c0df58d9d426", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4098, "upload_time": "2019-07-13T16:57:19", "url": "https://files.pythonhosted.org/packages/fc/e2/659881ab3bf7c78a5b85e26d99661023feac0902c1c197c2b09b92303104/buca-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f2dbae2815428a96338a4de1ba60178", "sha256": "849cf0b8044123141b04a80bef23b8086bea8a67b9cee3b043725d1b5b88aa0c" }, "downloads": -1, "filename": "buca-0.0.2.tar.gz", "has_sig": false, "md5_digest": "7f2dbae2815428a96338a4de1ba60178", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4273, "upload_time": "2019-07-13T16:57:21", "url": "https://files.pythonhosted.org/packages/b2/4a/626fe68c5964ed1eb5a83b11a13e4908b01db30aee5bd897717d77f4a711/buca-0.0.2.tar.gz" } ] }