{ "info": { "author": "Florian Einfalt", "author_email": "info@florianeinfalt.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Build Tools" ], "description": "fptokens\n========\n\n.. image:: https://img.shields.io/pypi/l/fptokens.svg\n :target: https://pypi.python.org/pypi/fptokens\n.. image:: https://img.shields.io/pypi/pyversions/fptokens.svg\n :target: https://pypi.python.org/pypi/fptokens\n.. image:: https://img.shields.io/pypi/v/fptokens.svg\n :target: https://pypi.python.org/pypi/fptokens\n.. image:: https://img.shields.io/pypi/wheel/fptokens.svg\n :target: https://pypi.python.org/pypi/fptokens\n.. image:: https://readthedocs.org/projects/fptokens/badge/?version=latest\n :target: https://readthedocs.org/projects/fptokens/?badge=latest\n.. image:: https://travis-ci.org/florianeinfalt/fptokens.svg?branch=master\n :target: https://travis-ci.org/florianeinfalt/fptokens\n\nA library for tokenisable filename paths\n\n`Full Documentation`_\n\nInstallation\n------------\n\nTo install ``fptokens``, type:\n\n.. code-block:: bash\n\n $ pip install fptokens\n\nGetting Started\n---------------\n\nTo get started with ``fptokens``, type:\n\n.. code-block:: python\n\n >>> import fptokens as fpt\n\nTo create a file name, type:\n\n.. code-block:: python\n\n >>> filename = fpt.Filename(root='/Users/demo/Desktop',\n folders=['assets', '$colors$'],\n base=['asset', '$colors$', '1200px'])\n\nThis created a file name with default settings, ``_`` as the separator,\n``jpg`` as the extension and ``$`` as the escape character for the tokens.\n\nTo parse and convert the tokens of the file name to actual tokens, type:\n\n.. code-block:: python\n\n >>> filename.parse()\n\nTo get the results of the parsing, type:\n\n.. code-block:: python\n\n >>> print filename.tokens\n >>> []\n\nThe list of tokens could now be used to create permutations of the tokenised\nfile name for example for batch output of image assets.\n\nOnce tokens have been replaced with real-world data to create permutations,\nthe relevant folders can be created by typing:\n\n.. code-block:: python\n\n >>> filename.make()\n\n.. _Full Documentation: http://fptokens.readthedocs.io/en/latest/\n\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/florianeinfalt/fptokens", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "fptokens", "package_url": "https://pypi.org/project/fptokens/", "platform": "", "project_url": "https://pypi.org/project/fptokens/", "project_urls": { "Homepage": "https://github.com/florianeinfalt/fptokens" }, "release_url": "https://pypi.org/project/fptokens/0.1.1/", "requires_dist": [ "attrs", "path.py" ], "requires_python": "", "summary": "A library for tokenisable filename paths", "version": "0.1.1" }, "last_serial": 2685564, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8dc3bd977024407b332e523d64220a97", "sha256": "d574fe52394d590b5c4456a446cac14c24bffdcc1cc07b3560ca8bbdc477fd75" }, "downloads": -1, "filename": "fptokens-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8dc3bd977024407b332e523d64220a97", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5866, "upload_time": "2017-03-01T17:13:13", "url": "https://files.pythonhosted.org/packages/57/0d/e2b91b792394e633ec460e64ed862a1410a095cb7e1c0ed5ee9c52823584/fptokens-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5f3b6afdb6011d479e0063519275edaf", "sha256": "e4f49a7299582b11c98a51793c3d21301d99451b612b0245f475005d72b65de5" }, "downloads": -1, "filename": "fptokens-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5f3b6afdb6011d479e0063519275edaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12572, "upload_time": "2017-03-01T17:13:14", "url": "https://files.pythonhosted.org/packages/3e/75/dde7a17dfa6890da349041c83e39e2377b0b12e118a936678762f1cb05a3/fptokens-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "11fa5c8b6019c1c4a88e9527e65d5d9e", "sha256": "03ec40d1594b238ffcc1ffb0c991ac38471406b6024a8dffe9aa3087409609c7" }, "downloads": -1, "filename": "fptokens-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "11fa5c8b6019c1c4a88e9527e65d5d9e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6413, "upload_time": "2017-03-06T10:39:03", "url": "https://files.pythonhosted.org/packages/8f/85/554fa379ca0e8e2311c7d66a1e62133d432d52504b8231856e558d863a56/fptokens-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e148d08dac7bc6db4b49f6dbf4105484", "sha256": "5254cb6cae5f3e26552b94f8910b23de0babfd6082688180284326edcbd8fc2c" }, "downloads": -1, "filename": "fptokens-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e148d08dac7bc6db4b49f6dbf4105484", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13617, "upload_time": "2017-03-06T10:39:06", "url": "https://files.pythonhosted.org/packages/0a/1e/26d26df8e6592cf1d4faae416a2b78b4325593a44ba8f2aa39ef2a71f081/fptokens-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "11fa5c8b6019c1c4a88e9527e65d5d9e", "sha256": "03ec40d1594b238ffcc1ffb0c991ac38471406b6024a8dffe9aa3087409609c7" }, "downloads": -1, "filename": "fptokens-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "11fa5c8b6019c1c4a88e9527e65d5d9e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6413, "upload_time": "2017-03-06T10:39:03", "url": "https://files.pythonhosted.org/packages/8f/85/554fa379ca0e8e2311c7d66a1e62133d432d52504b8231856e558d863a56/fptokens-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e148d08dac7bc6db4b49f6dbf4105484", "sha256": "5254cb6cae5f3e26552b94f8910b23de0babfd6082688180284326edcbd8fc2c" }, "downloads": -1, "filename": "fptokens-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e148d08dac7bc6db4b49f6dbf4105484", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13617, "upload_time": "2017-03-06T10:39:06", "url": "https://files.pythonhosted.org/packages/0a/1e/26d26df8e6592cf1d4faae416a2b78b4325593a44ba8f2aa39ef2a71f081/fptokens-0.1.1.tar.gz" } ] }