Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crashbytes_strutils-1.1.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crashbytes_strutils-1.1.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file crashbytes_strutils-1.1.2.tar.gz.

File metadata

  • Download URL: crashbytes_strutils-1.1.2.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

Hashes for crashbytes_strutils-1.1.2.tar.gz
Algorithm Hash digest
SHA256 9f3e6557a34d9fc059df691379d7c6b5bb80d53e21c5d392cfaaa1f516eb5636
MD5 b8b73ec6bc51c1b5e347313de847d589
BLAKE2b-256 1f0d61269b27712d55c6328c9415f4a1e5c758a4f9e908cb7115c1d5478312b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for crashbytes_strutils-1.1.2.tar.gz:

Publisher: publish.yml on CrashBytes/crashbytes-strutils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crashbytes_strutils-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for crashbytes_strutils-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d1813b137752ce6648980c0fee6e51611be344d1f3c0483d8af0e841893008e5
MD5 4b2a6495d42c6815093bce1671f065f0
BLAKE2b-256 a18301b3ed7f3aacc1bfdbbb32a440f22b47e0ede2766ab369997420698c7c03

See more details on using hashes here.

Provenance

The following attestation bundles were made for crashbytes_strutils-1.1.2-py3-none-any.whl:

Publisher: publish.yml on CrashBytes/crashbytes-strutils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page