Zero-dependency string utilities — case conversion, slugify, masking, and more.
Project description
crashbytes-strutils
Zero-dependency string utilities — case conversion, slugify, masking, and more.
Install
pip install crashbytes-strutils
Usage
from crashbytes_strutils import to_snake_case, slugify, mask, truncate
to_snake_case("helloWorld") # "hello_world"
slugify("Hello World!") # "hello-world"
mask("4111111111111111") # "************1111"
truncate("Long text here", 10) # "Long te..."
API
Case Conversion
to_snake_case, to_camel_case, to_pascal_case, to_kebab_case, to_title_case, to_constant_case
Text Manipulation
slugify, truncate, mask, between, strip_html, reverse, pad_left, pad_right, remove_whitespace
Validation
is_valid_email, is_blank
Analysis
count_words, initials
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crashbytes_strutils-1.1.1.tar.gz.
File metadata
- Download URL: crashbytes_strutils-1.1.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c443405607df55f29cb5597d3da188bacb4145859251dcd48885e2f7297e2c7c
|
|
| MD5 |
1baf4f6324c1fdf524a7d2935b34284a
|
|
| BLAKE2b-256 |
06f8e3ad45db1e3f526307455eab976c0ee08d636c2850be79f6582a22aaf8a8
|
Provenance
The following attestation bundles were made for crashbytes_strutils-1.1.1.tar.gz:
Publisher:
publish.yml on CrashBytes/crashbytes-strutils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crashbytes_strutils-1.1.1.tar.gz -
Subject digest:
c443405607df55f29cb5597d3da188bacb4145859251dcd48885e2f7297e2c7c - Sigstore transparency entry: 1774118281
- Sigstore integration time:
-
Permalink:
CrashBytes/crashbytes-strutils@cc258bfac28cdd2f5f72720d6558a933d6f41d5a -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/CrashBytes
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cc258bfac28cdd2f5f72720d6558a933d6f41d5a -
Trigger Event:
push
-
Statement type:
File details
Details for the file crashbytes_strutils-1.1.1-py3-none-any.whl.
File metadata
- Download URL: crashbytes_strutils-1.1.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e917b18da64e6893fe79e5f008e6b0f338d537cbff852301b5c8491f1eef6b2
|
|
| MD5 |
2717a3af4187bc39d4b2db59ba077529
|
|
| BLAKE2b-256 |
e8d72658542d99f399699eae84158f4553aba0aea2c3ff7e2b1629c308cd8a91
|
Provenance
The following attestation bundles were made for crashbytes_strutils-1.1.1-py3-none-any.whl:
Publisher:
publish.yml on CrashBytes/crashbytes-strutils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crashbytes_strutils-1.1.1-py3-none-any.whl -
Subject digest:
7e917b18da64e6893fe79e5f008e6b0f338d537cbff852301b5c8491f1eef6b2 - Sigstore transparency entry: 1774118383
- Sigstore integration time:
-
Permalink:
CrashBytes/crashbytes-strutils@cc258bfac28cdd2f5f72720d6558a933d6f41d5a -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/CrashBytes
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cc258bfac28cdd2f5f72720d6558a933d6f41d5a -
Trigger Event:
push
-
Statement type: