Registry / serialization / boa-str

boa-str

JSON →
library1.1.0pypypi✓ verified 24d ago

Boa is a Python package (version 1.1.0) designed for normalizing and converting strings to snakecase. It efficiently handles various cases, including stripping punctuation and transforming camelCase or PascalCase strings into snake_case. For example, 'User Buys Item' becomes 'user_buys_item'. The last release was in 2017, indicating that the project is no longer actively developed but remains available for its specific string conversion utility.

pip install boa-str
INSTALL
IMPORT
SIG · BOA-STR
B
boa-str
serializationpythonv1.1.0
Install
1.7s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

boa
import boa
The primary functionality is exposed directly under the 'boa' module after import.

The `boa.constrict()` function is the main entry point for converting strings to snakecase. It handles various input formats.

import boa my_str_camel = 'toInfinityAndBeyond' my_str_spaces = 'Welcome to planet Earth!' my_str_hyphens = 'a-string-with-hyphens' snake_camel = boa.constrict(my_str_camel) snake_spaces = boa.constrict(my_str_spaces) snake_hyphens = boa.constrict(my_str_hyphens) print(f"'{my_str_camel}' -> '{snake_camel}'") print(f"'{my_str_spaces}' -> '{snake_spaces}'") print(f"'{my_str_hyphens}' -> '{snake_hyphens}'") # Example of typical usage user_event = 'User Buys Item' processed_event = boa.constrict(user_event) print(f"'{user_event}' -> '{processed_event}'")
Debug
Known issues
gotchaThe `boa-str` library has not seen updates since its 1.1.0 release on July 10, 2017. This means it may not be actively maintained for new features, bug fixes, or compatibility with newer Python versions beyond 3.6, although basic string operations are often forward-compatible.
fix
Evaluate if the existing functionality meets your needs and be aware that community support or official updates are unlikely. Consider alternatives for actively maintained projects if this is a concern.
affects: <=1.1.0
gotchaThe name 'boa' is highly overloaded across various programming ecosystems (e.g., Boa JavaScript engine in Rust, Boa for particle accelerator analysis, Boa for Go packages, Boa for Python bridge to Node.js). Ensure you are installing and importing `boa-str` specifically for string snakecase conversion to avoid confusion with other packages.
fix
Always use `pip install boa-str` and `import boa` as specified. Clearly delineate the purpose of this library in your project documentation.
affects: All versions
gotchaThe package's PyPI metadata lists its 'Development Status' as '4 - Beta'. This indicates it never reached a stable (5 - Production/Stable) release, implying potential for unannounced breaking changes or incomplete features, though the project has been static for many years.
fix
Review the source code on GitHub for any hidden quirks if you encounter unexpected behavior. Given its age and simple function, it's generally stable for its stated purpose.
affects: All versions
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'boa-str'
The 'boa-str' package is not installed in the current Python environment.
fix
Install the package using pip: `pip install boa-str`
ModuleNotFoundError: No module named 'boa'
The user is trying to import 'boa' instead of 'boa-str', or there's a conflict with another 'boa' package.
fix
Ensure 'boa-str' is installed and import specifically from it: `from boa import snakecase` or explicitly install `boa-str` if another 'boa' package is causing a name collision.
AttributeError: module 'boa' has no attribute 'snakecase'
The user has imported the 'boa' module (likely correctly as `import boa`) but is attempting to access `snakecase` as an attribute when it needs to be imported directly.
fix
Use the correct import statement to directly import the `snakecase` function: `from boa import snakecase`
TypeError: snakecase() missing 1 required positional argument: 'text'
The `snakecase` function was called without providing the required string argument.
fix
Provide a string argument to the `snakecase` function: `snakecase('My Example String')`
Upgrade
Version history
1.1.0latest on PyPI · released Jul 10, 2017
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources
boa-str — pip install boa-str · libregistry