Skip to main content

Simple convert library for lazy developers

Project description

lb_lazy_input

© Copyright logic-break 2026

https://github.com/logic-break/logic-break/tree/main/libraries/lb_lazy_input

lib made for lazy, by lazy

installation:

pip install lb-lazy-num

NOTE: in code, you must import lb_lazy_num

Usage

  • .format_num(value, precision=2) : converts from 1000000 to 1M, supports up to Qi, if more than Qi, returns unchanged value
  • .convert_size(value_str, target_unit) : returns converted size, for example .convert_size("1024MB", "GB") wil return 1GB, this supports up to PB, if more idk :)

Example:

import lb_lazy_input
 
z = input("Enter value:\n")
x = input("Convert this value from: (B, KB, MB, GB, TB, PB)\n")
c = input("Convert this value to: \n")

v = z + x
result = lb_lazy_input.convert_size(v, c)
print(result)

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

lb_lazy_num-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

lb_lazy_num-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lb_lazy_num-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for lb_lazy_num-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e68229a33d1d7b28799fdb749842e0f9f52264b7db4baf9478284a996e4d2ef4
MD5 417107b5b5b6274fe427d3d2c7988f7e
BLAKE2b-256 bfbf63f43b714d8214148d29c8aea391ccaa1c85c67371dd7be437f97c70354c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lb_lazy_num-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for lb_lazy_num-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5acc5a5ea936746cfed1b1c727ce53468727c676f7f1e9015e5d4d54a25675a
MD5 f1b7e4689df157c44f694661de7062bb
BLAKE2b-256 9239ed057dff1ac9883c106ad193bdf82acbd58591932952dcd46c2116fc19f6

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