{ "info": { "author": "Astronomer", "author_email": "taylor@astronomer.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "Boa\n===\n\n.. image:: https://img.shields.io/pypi/v/boa-str.svg\n :target: https://pypi.python.org/pypi/boa-str\n :alt: PyPI\n\n.. image:: https://img.shields.io/circleci/project/github/astronomerio/boa.svg\n :target: https://circleci.com/gh/astronomerio/boa\n :alt: CircleCI\n\n.. image:: https://codecov.io/gh/astronomerio/boa/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/astronomerio/boa\n :alt: Codecov\n\nBoa is a Python package for normalizing and converting strings to snakecase.\n\nFor example, it translates the user-defined event ``'User Buys Item'`` to ``'user_buys_item'`` which can then be used in a file path in S3, or as the name of a schema or table in Redshift.\n\nIt also handles the more complex cases such as stripping punctuation and converting words from camelCase or PascalCase to snake_case (see examples below).\n\nInstallation\n------------\n\nInstall in your virtual environment:\n\n.. code-block:: console\n\n $ pip install boa-str\n\nQuickstart\n----------\n\n.. code-block:: python\n\n >>> import boa\n >>> my_str = 'Hello Boa'\n >>> boa.constrict(my_str)\n 'hello_boa'\n\nExamples\n--------\n\n.. code-block:: python\n\n >>> import boa\n >>> boa.constrict('toInfinityAndBeyond')\n 'to_infinity_and_beyond'\n >>> boa.constrict('Welcome-to-planet-Earth!')\n 'welcome_to_planet_earth'\n\nTests\n-----\n\nWe use `nose2 `_ and `coverage `_ for unit tests.\n\nInstall with test requirements:\n\n.. code-block:: console\n\n $ pip install boa-str[test]\n\nThen run:\n\n.. code-block:: console\n\n $ invoke test\n\nStyle\n-----\n\n.. code-block:: console\n\n $ invoke lint\n\nContribute\n----------\n\nClone the repo, then install with dev requirements which also includes test requirements:\n\n.. code-block:: console\n\n $ git clone https://github.com/astronomerio/boa/\n $ cd boa\n $ pip install .[dev]\n\n\ud83d\udc0d\ufe0f\ud83d\udc0d\ufe0f\ud83d\udc0d\ufe0f\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/astronomerio/boa", "keywords": "boa snakecase snake_case snake case inflector astronomer astronomerio", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "boa-str", "package_url": "https://pypi.org/project/boa-str/", "platform": "", "project_url": "https://pypi.org/project/boa-str/", "project_urls": { "Homepage": "https://github.com/astronomerio/boa" }, "release_url": "https://pypi.org/project/boa-str/1.1.0/", "requires_dist": [ "codecov; extra == 'dev'", "cov-core; extra == 'dev'", "nose2; extra == 'dev'", "flake8; extra == 'dev'", "invoke; extra == 'dev'", "pycodestyle; extra == 'dev'", "twine; extra == 'dev'", "codecov; extra == 'test'", "cov-core; extra == 'test'", "nose2; extra == 'test'" ], "requires_python": "", "summary": "Convert strings to snakecase", "version": "1.1.0" }, "last_serial": 3013216, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "d5089709c41d58464648f5272a4f06d0", "sha256": "ebd78e7715ea73757647b89e949a1d834050f545659fbd38cbd7624a41a2c55c" }, "downloads": -1, "filename": "boa_str-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d5089709c41d58464648f5272a4f06d0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 2834, "upload_time": "2017-05-30T00:34:20", "url": "https://files.pythonhosted.org/packages/c2/f8/cd7a05807afd3a32988f7a0cacc95aae28b99912b8828cbf3c5384e4db15/boa_str-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "22477fe75e2910f98c4512deb4af6167", "sha256": "65bef88b24a6f0b30990b2d3657866bb5ed34bb07d5050b7d5fb8b21317868f8" }, "downloads": -1, "filename": "boa-str-1.0.1.tar.gz", "has_sig": false, "md5_digest": "22477fe75e2910f98c4512deb4af6167", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1520, "upload_time": "2017-05-30T00:34:21", "url": "https://files.pythonhosted.org/packages/7a/e5/aa86a71e895274e4e180365f9785cadb09ff501e2a4b111d408bba0c66be/boa-str-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "0909a9d8ee4e858f2107e40139b94732", "sha256": "8ca60c028cf3576080b3cfdbd9554a16c2086540fc7369a68559a135893c154f" }, "downloads": -1, "filename": "boa_str-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0909a9d8ee4e858f2107e40139b94732", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4288, "upload_time": "2017-07-10T22:08:06", "url": "https://files.pythonhosted.org/packages/2a/75/741f22c5cb6314dffa906e7b58701ad558fa379e522013cbcb49191bf6f4/boa_str-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1c5b7d82bb6cfc4a529fe4303a081d50", "sha256": "f37a60cb8cc0c51e77293a4b390b8e7712056dccf180fea59e687ee2d7f34805" }, "downloads": -1, "filename": "boa-str-1.1.0.tar.gz", "has_sig": false, "md5_digest": "1c5b7d82bb6cfc4a529fe4303a081d50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2695, "upload_time": "2017-07-10T22:08:13", "url": "https://files.pythonhosted.org/packages/9c/05/cf34751f3c56e35f2a7959c79cc170e5641c67f805e0211912a3c429dad4/boa-str-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0909a9d8ee4e858f2107e40139b94732", "sha256": "8ca60c028cf3576080b3cfdbd9554a16c2086540fc7369a68559a135893c154f" }, "downloads": -1, "filename": "boa_str-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0909a9d8ee4e858f2107e40139b94732", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4288, "upload_time": "2017-07-10T22:08:06", "url": "https://files.pythonhosted.org/packages/2a/75/741f22c5cb6314dffa906e7b58701ad558fa379e522013cbcb49191bf6f4/boa_str-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1c5b7d82bb6cfc4a529fe4303a081d50", "sha256": "f37a60cb8cc0c51e77293a4b390b8e7712056dccf180fea59e687ee2d7f34805" }, "downloads": -1, "filename": "boa-str-1.1.0.tar.gz", "has_sig": false, "md5_digest": "1c5b7d82bb6cfc4a529fe4303a081d50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2695, "upload_time": "2017-07-10T22:08:13", "url": "https://files.pythonhosted.org/packages/9c/05/cf34751f3c56e35f2a7959c79cc170e5641c67f805e0211912a3c429dad4/boa-str-1.1.0.tar.gz" } ] }