Skip to content
๐Ÿ [README](../../README.md) ยท ๐Ÿ“ฆ[Modules](../../MODULES.md) ยท ๐Ÿ†˜[Support](../../SUPPORT.md) ยท ๐Ÿš€[Contributing](../../CONTRIBUTING.md) ยท ๐ŸŒŸ[Contributors](../../CONTRIBUTORS.md) ยท ๐Ÿ“œ[Changelog](../../CHANGELOG.md) ยท ๐Ÿ”’[Security](../../SECURITY.md) ยท ๐ŸŒฑ[Code of Conduct](../../CODE_OF_CONDUCT.md) ยท โš–๏ธ[License](../../LICENSE.md)

Quickstart

Get up and running with py-simple-wrap in under a minute.

Installation

pip install py-simple-wrap

Note: The PyPI package is named py-simple-wrap (the name py-simple was already taken), but you still import it as py_simple in your code.

Basic Usage

Every function is available directly from the top-level package โ€” no need to dig into submodules:

from py_simple import make_blank_file, miles_to_km, is_valid_email

# Create a new file in one line
make_blank_file("notes.txt")

# Convert units without memorizing formulas
distance_km = miles_to_km(26.2)
print(distance_km)  # 42.16...

# Validate common input formats
print(is_valid_email("hello@example.com"))  # True

A Taste of Each Module

๐Ÿ“‚ File handling โ€” easy_file_manager

from py_simple import make_blank_file, add_a_line, read_file_to_list

make_blank_file("todo.txt")
add_a_line("todo.txt", "Buy groceries")
print(read_file_to_list("todo.txt"))

๐Ÿ•ฐ๏ธ Dates โ€” easy_date_formatter

from py_simple import get_pretty_date, dd_mm_yyyy

print(get_pretty_date())     # e.g. "July 31, 2026"
print(dd_mm_yyyy())          # e.g. "31-07-2026"

๐Ÿ”„ Unit conversion โ€” easy_converter

from py_simple import celsius_to_fahrenheit, kg_to_lb

print(celsius_to_fahrenheit(20))  # 68.0
print(kg_to_lb(70))               # 154.32...

๐Ÿ”ข Numbers โ€” easy_numbers

from py_simple import is_prime, average

print(is_prime(17))          # True
print(average([4, 8, 15, 16, 23, 42]))

โœ… Validation โ€” easy_validator

from py_simple import is_password_secure, is_valid_url

print(is_password_secure("hunter2"))          # False
print(is_valid_url("https://example.com"))    # True

๐ŸŒ Web โ€” easy_web

from py_simple import is_page_up, get_page_content

print(is_page_up("https://python.org"))  # True

๐Ÿ”ค Strings โ€” easy_strings

from py_simple import to_snake_case, is_palindrome

print(to_snake_case("Hello World"))  # "hello_world"
print(is_palindrome("racecar"))      # True

Next Steps

  • Browse the Reference section in the sidebar for the complete list of functions in every module.
  • See the full README for the complete list of functions in each module.
  • Want to contribute? Check out CONTRIBUTING.md.