
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
.. image:: https://img.shields.io/pypi/v/boa-str.svg :target: https://pypi.python.org/pypi/boa-str :alt: PyPI
.. image:: https://img.shields.io/circleci/project/github/astronomerio/boa.svg :target: https://circleci.com/gh/astronomerio/boa :alt: CircleCI
.. image:: https://codecov.io/gh/astronomerio/boa/branch/master/graph/badge.svg :target: https://codecov.io/gh/astronomerio/boa :alt: Codecov
Boa is a Python package for normalizing and converting strings to snakecase.
For 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.
It also handles the more complex cases such as stripping punctuation and converting words from camelCase or PascalCase to snake_case (see examples below).
Install in your virtual environment:
.. code-block:: console
$ pip install boa-str
.. code-block:: python
>>> import boa
>>> my_str = 'Hello Boa'
>>> boa.constrict(my_str)
'hello_boa'
.. code-block:: python
>>> import boa
>>> boa.constrict('toInfinityAndBeyond')
'to_infinity_and_beyond'
>>> boa.constrict('Welcome-to-planet-Earth!')
'welcome_to_planet_earth'
We use nose2 <https://pypi.python.org/pypi/nose2>
_ and coverage <https://pypi.python.org/pypi/coverage>
_ for unit tests.
Install with test requirements:
.. code-block:: console
$ pip install boa-str[test]
Then run:
.. code-block:: console
$ invoke test
.. code-block:: console
$ invoke lint
Clone the repo, then install with dev requirements which also includes test requirements:
.. code-block:: console
$ git clone https://github.com/astronomerio/boa/
$ cd boa
$ pip install .[dev]
šļøšļøšļø
FAQs
Convert strings to snakecase
We found that boa-str demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.