Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PySmart

An elegant, utility-driven Python string extension library. PySmart supercharges native Python string implementations with built-in validation formatting, safe conversion mechanics, and robust text-processing helpers natively baked straight into the object context.


🛠 Features

  • SmartStr: Drop-in str subclass companion offering fluid API method chains.
  • Inline Validation Helpers: Fast .isEmail() and international-ready .isPhoneNumberFormat() checks.
  • Web Utilities: Standardized, string-safe URL creation with .slugify().
  • Zero-Crash Conversions: Built-in error-insulated numerical parsers via .safeInt() and .safeFloat().

📦 Installation

Install the library directly from PyPI:

pip install pysmart-lib

🚀 Quick Usage Blueprint

from pysmart import SmartStr

# Initialize smoothly just like a raw string object
user_input = SmartStr("  Fixing your String Data!  ")

# Clean whitespace and build standard URL slugs smoothly
print(user_input.removeWhiteSpace()) # "FixingyourStringData!"
print(user_input.slugify())          # "fixing-your-string-data"

# Safe parsing without throwing ValueErrors or crashing processes
invalid_num = SmartStr("abc-123")
print(invalid_num.safeInt(default=0)) # 0

⚖ License

This library is open-source. Distributed under the terms of the MIT License. If you leverage this framework inside a production product or public project, please add acknowledgable credit in a description.

Release files for pysmart-lib 1.0.0b1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysmart-lib 1.0.0b1
File Size Uploaded
pysmart_lib-1.0.0b1.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysmart-lib 1.0.0b1
File Interpreter ABI Platform
pysmart_lib-1.0.0b1-py3-none-any.whl Python 3 none any Details

Total release size: 11.9 kB

Release files / pysmart_lib-1.0.0b1.tar.gz

Download URL pysmart_lib-1.0.0b1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c2043289805c726f93679c325eb42392e03c40491bd20bc071ecfba72d668acb
BLAKE2b-256 checksum
How to use checksums
342d1be0a17f145eafff30a94cf49141e4ec79c4cf7d35fd03cbc473b7aa2aec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / pysmart_lib-1.0.0b1-py3-none-any.whl

Download URL pysmart_lib-1.0.0b1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
161545717072ceca4ae6c64da9768823a6575de4cfad5c6f72977a5b461f0ebe
BLAKE2b-256 checksum
How to use checksums
c68b260c2fff408bcb9b53d091d3dd2497e567aa3fa3555ca199f063ac23e140
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.0.0b1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page