{ "info": { "author": "Guillaume Gonnet", "author_email": "gonnet.guillaume97@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: AsyncIO", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Build Tools", "Topic :: Utilities" ], "description": "==========\nPylpRename\n==========\n\n\nInformation\n===========\n\n**pylprename** is a plugin for `Pylp`_ that rename files in a stream.\n\n\nInstallation\n============\n\nInstall **pylprename** with ``pip``::\n\n pip install pylprename\n\nIf you don't have Python ``Scripts`` folder in your PATH, you can run also::\n\n python -m pip install pylprename\n\n\nUsage\n=====\n\n.. code:: python\n\n import pylp\n from pylprename import rename\n\n # Rename with a string\n pylp.src('src/main/text/hello.txt')\n .pipe(rename('ciao/goodbye.md'))\n .pipe(pylp.dest('dist')) # ./dist/ciao/goodbye.md\n\n\n # Rename with a function\n pylp.src('src/main/text/hello.txt')\n .pipe(rename(lambda n:\n n.replace('ell', 'all')\n ))\n .pipe(pylp.dest('dist')) # ./dist/hallo.txt\n\n\n # Rename with some values (all values are optional)\n pylp.src('src/main/text/hello.txt')\n .pipe(rename(\n dirname='md/ciao',\n basename='aloha',\n prefix='bonjour-',\n suffix='-hola',\n ext='.md'\n ))\n .pipe(pylp.dest('dist')) # ./dist/md/ciao/bonjour-aloha-hola.md\n\n\nNotes\n=====\n\n- ``basename`` is the filename **without** the extension\n- ``ext`` is the file extension **including the '.'**\n\n\n.. _Pylp: https://github.com/pylp/pylp\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pylp/pylprename", "keywords": "pylp gulp rename", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pylprename", "package_url": "https://pypi.org/project/pylprename/", "platform": "", "project_url": "https://pypi.org/project/pylprename/", "project_urls": { "Homepage": "https://github.com/pylp/pylprename" }, "release_url": "https://pypi.org/project/pylprename/0.1.1/", "requires_dist": [ "pylp" ], "requires_python": ">=3.5", "summary": "A Pylp plugin for renaming files in a stream", "version": "0.1.1" }, "last_serial": 3131301, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "1f3b1033a5033f446735498837290203", "sha256": "251a96830cd2555d92dcc848501bd1770614f5ac9c210026287cdf3f86203faa" }, "downloads": -1, "filename": "pylprename-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1f3b1033a5033f446735498837290203", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 4318, "upload_time": "2017-08-29T07:45:25", "url": "https://files.pythonhosted.org/packages/a7/2c/81dfe732e914fefaa870df8fd217bdc8c4492ea9c7721f763475fdf027ac/pylprename-0.1.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1f3b1033a5033f446735498837290203", "sha256": "251a96830cd2555d92dcc848501bd1770614f5ac9c210026287cdf3f86203faa" }, "downloads": -1, "filename": "pylprename-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1f3b1033a5033f446735498837290203", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 4318, "upload_time": "2017-08-29T07:45:25", "url": "https://files.pythonhosted.org/packages/a7/2c/81dfe732e914fefaa870df8fd217bdc8c4492ea9c7721f763475fdf027ac/pylprename-0.1.1-py3-none-any.whl" } ] }