Skip to main content

A tool for awesome python utils

Project description

utilyzer

A tool for awesome python utils

PyPI version ci-cd License: MIT

Installation

pip install utilyzer

Features

  • String to Number conversion with support for:
    • Integer conversion
    • Float conversion
    • Scientific notation
    • Whitespace handling
    • Robust error handling

Quick Start

from utilyzer import str_to_number

# Convert string to integer
str_to_number("123") # 123  

# Convert string to float
str_to_number("12.34") # 12.34

# Convert string to scientific notation
str_to_number("1e-10") # 1e-10

# Handle whitespace
str_to_number("  123  ") # 123

# Handle invalid input
str_to_number("abc") # None

# Handle empty string
str_to_number("") # None

# Handle None
str_to_number(None) # None

Requirements

  • Python >= 3.8
  • Python < 3.12

Documentation

Full documentation is available at https://asmitul.github.io/utilyzer

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

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

utilyzer-0.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

utilyzer-0.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file utilyzer-0.0.1.tar.gz.

File metadata

  • Download URL: utilyzer-0.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for utilyzer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 73ee51147b8b8e4dc079bb49306e239ff77b894089f9bbc63450858c35dbb869
MD5 a2aaf786c10f7c266d6a0cd3af20573c
BLAKE2b-256 6dc82eb9e704d659b340a967455a8077609ae522d11b19e32820a16b7ba6d9a6

See more details on using hashes here.

File details

Details for the file utilyzer-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: utilyzer-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for utilyzer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fee6b721e393e7be03a9eb5035195c319e138da146b8bede3ed72d1cc60c69c5
MD5 e3c0e3857b32ca0727876ef8869c19f9
BLAKE2b-256 bc9e8d90608145d04fb5c93fed722e52a5617522de6a9ddab677b2684214ce73

See more details on using hashes here.

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