{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# pyxargs\n\n```\nusage: pyxargs [-h] [-s] [-d base-directory] [-m mode] [-0] [--delim char]\n [-a file] [-r regex] [-o] [-f] [-I replace-str]\n [--resub pattern repl replace-str] [--py] [--pyev]\n [--imprt [library [library ...]]]\n [--imprtstar [library [library ...]]] [--pre [code [code ...]]]\n [--post [code [code ...]]] [-p int] [-n] [-v] [-w] [--examples]\n [command-part [command-part ...]]\n\nBuild and execute command lines from standard input or file paths, a mostly\ncomplete implementation of xargs in python with some added features. The\ndefault mode (file) builds commands using filenames only and executes them in\neach files respective directory, this is useful when dealing with file paths\ncontaining multiple character encodings.\n\npositional arguments:\n command-part (default)\n command-part[0] = base-command\n command-part[1:N] = initial-argument(s)\n (pyxargs -s)\n command-part = \"base-command [initial-argument(s)]\"\n\noptional arguments:\n -h, --help show this help message and exit\n -s interpret each command-part as a separate command to\n be run sequentially\n -d base-directory default: os.getcwd()\n -m mode options are:\n file = build commands from filenames and execute in\n each subdirectory respectively (default)\n path = build commands from file paths relative to\n the base directory and execute in the base\n directory\n abspath = build commands from file paths relative to\n root and execute in the base directory\n dir = build commands from directory names instead\n of filenames\n stdin = build commands from standard input and\n execute in the base directory\n -0, --null input items are terminated by a null character instead\n of by whitespace, automatically sets mode = stdin\n --delim char input items are terminated by the specified delimiter\n instead of whitespace and trailing whitespace is\n removed, automatically sets mode = stdin\n -a file read items from file instead of standard input to\n build commands, automatically sets mode = stdin\n -r regex only build commands from inputs matching regex\n -o omit inputs matching regex instead\n -f only match regex to filenames\n -I replace-str replace occurrences of replace-str in the command(s)\n with input, default: {}\n --resub pattern repl replace-str\n replace occurrences of replace-str in the command(s)\n with re.sub(patten, repl, input)\n --py executes command(s) as python code using exec(),\n beware of side effects\n --pyev evaluates command(s) as python expression(s) using\n eval()\n --imprt [library [library ...]]\n runs exec(\"import \" + library) on each library, beware\n of side effects\n --imprtstar [library [library ...]]\n runs exec(\"from \" + library + \" import *\") on each\n library, beware of side effects\n --pre [code [code ...]]\n runs exec(code) for each line of code before\n execution, beware of side effects\n --post [code [code ...]]\n runs exec(code) for each line of code after execution,\n beware of side effects\n -p int number of processes (be careful!)\n -n, --norun prints commands without executing them\n -v, --verbose prints commands\n -w, --csv writes results to pyxargs-.csv in\n os.getcwd()\n --examples print example usage\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/elesiuta/pyxargs", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pyxargs", "package_url": "https://pypi.org/project/pyxargs/", "platform": "", "project_url": "https://pypi.org/project/pyxargs/", "project_urls": { "Homepage": "https://github.com/elesiuta/pyxargs" }, "release_url": "https://pypi.org/project/pyxargs/0.11.1/", "requires_dist": null, "requires_python": "", "summary": "A mostly complete implementation of xargs in python with some added features", "version": "0.11.1" }, "last_serial": 5590930, "releases": { "0.10.0": [ { "comment_text": "", "digests": { "md5": "ef7e7de8c2ada6ab976830543fbaab8f", "sha256": "fd3af7803a61c8e27924f104120871b9b8423b7a03c8ede7ab3e03bec87be323" }, "downloads": -1, "filename": "pyxargs-0.10.0.tar.gz", "has_sig": false, "md5_digest": "ef7e7de8c2ada6ab976830543fbaab8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5242, "upload_time": "2019-07-23T18:31:15", "url": "https://files.pythonhosted.org/packages/51/89/140dc425104010da0e2366b4a3ba908b7c2cc46ba75b8795aa7bb32ba164/pyxargs-0.10.0.tar.gz" } ], "0.11.0": [ { "comment_text": "", "digests": { "md5": "4697d5c4cd8db320dec1d400ea3c7c22", "sha256": "4545fb0cd23e4484baf53f9227bfa5212d2976cff3f19cf195b0225208036328" }, "downloads": -1, "filename": "pyxargs-0.11.0.tar.gz", "has_sig": false, "md5_digest": "4697d5c4cd8db320dec1d400ea3c7c22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5314, "upload_time": "2019-07-24T05:01:58", "url": "https://files.pythonhosted.org/packages/c4/11/ec2253ffe790ba0752dcd048bac8e6f76f8f948333b439047aede720ab34/pyxargs-0.11.0.tar.gz" } ], "0.11.1": [ { "comment_text": "", "digests": { "md5": "93c1d88e24a3bda49c3f8570af4a28fe", "sha256": "bf66e5d8a00fef3315087ed885eee4643cd48f1a756daeb2b59223e72c62b19a" }, "downloads": -1, "filename": "pyxargs-0.11.1.tar.gz", "has_sig": false, "md5_digest": "93c1d88e24a3bda49c3f8570af4a28fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5417, "upload_time": "2019-07-26T21:47:05", "url": "https://files.pythonhosted.org/packages/c2/78/05c79b55c494e0553927b61ba5b58292c89bf57394d4afb8bc2becbbb901/pyxargs-0.11.1.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "cf58e9944eccea4f6933b0df18468a25", "sha256": "4ae946847501df5a2f6eddb31f684406c76555112ac6e36241eaa5e3fa4286b8" }, "downloads": -1, "filename": "pyxargs-0.9.1.tar.gz", "has_sig": false, "md5_digest": "cf58e9944eccea4f6933b0df18468a25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5068, "upload_time": "2019-07-23T00:54:47", "url": "https://files.pythonhosted.org/packages/c9/14/7ff00bcd47bc2850531aa7a422a2269ee4337ed066cb04ba77fff71753b3/pyxargs-0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "5b8f61143eb5f926419e2fb9dc983a6c", "sha256": "c49b873aab6c90be7c67ef65882a0e7323b607a2d9740051d4c7504deaf2030b" }, "downloads": -1, "filename": "pyxargs-0.9.2.tar.gz", "has_sig": false, "md5_digest": "5b8f61143eb5f926419e2fb9dc983a6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5073, "upload_time": "2019-07-23T01:14:21", "url": "https://files.pythonhosted.org/packages/19/76/5b00d95c2963f29fd7377a1c25283ddbc8b5657982e7901398899a381fb7/pyxargs-0.9.2.tar.gz" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "3ee5e92d107048c5b42e63ab4b861954", "sha256": "b2392b4677139881e960ef119752640c234155ca20a6c692042a72dee0b5c5bb" }, "downloads": -1, "filename": "pyxargs-0.9.3.tar.gz", "has_sig": false, "md5_digest": "3ee5e92d107048c5b42e63ab4b861954", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5085, "upload_time": "2019-07-23T01:41:07", "url": "https://files.pythonhosted.org/packages/3c/58/6a97dd942cac3aaf83eb4c105ba5c981e9cb566fde2ceed351e5924d016b/pyxargs-0.9.3.tar.gz" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "24224a1fbc7c6cccc0f3a99827fa48fc", "sha256": "cbffdac7c1fb63526b8fdd30a392b1b5ff6dcd9b2eec9e05a070bcb55a1bd476" }, "downloads": -1, "filename": "pyxargs-0.9.4.tar.gz", "has_sig": false, "md5_digest": "24224a1fbc7c6cccc0f3a99827fa48fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5086, "upload_time": "2019-07-23T13:56:34", "url": "https://files.pythonhosted.org/packages/ef/a8/78500b0d731a207b97f1931022686d0bff0fb8a2cfeea0aad020ff7024e3/pyxargs-0.9.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "93c1d88e24a3bda49c3f8570af4a28fe", "sha256": "bf66e5d8a00fef3315087ed885eee4643cd48f1a756daeb2b59223e72c62b19a" }, "downloads": -1, "filename": "pyxargs-0.11.1.tar.gz", "has_sig": false, "md5_digest": "93c1d88e24a3bda49c3f8570af4a28fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5417, "upload_time": "2019-07-26T21:47:05", "url": "https://files.pythonhosted.org/packages/c2/78/05c79b55c494e0553927b61ba5b58292c89bf57394d4afb8bc2becbbb901/pyxargs-0.11.1.tar.gz" } ] }