README
โก[Quickstart](../QUICKSTART.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)
# py-simple-wrap
**Making Python feel like plain English.**
[](https://pypi.org/project/py-simple-wrap/)
[](https://github.com/sara-czasak/py-simple-wrap/actions/workflows/tests.yml)
[](../CONTRIBUTORS.md)
[](../LICENSE.md)
[](https://discord.gg/Ge5HnVw2p)
py-simple-wrap is a beginner-friendly Python toolbox โ simple, intuitive functions for common tasks, so you can build something fun before the syntax gets in the way.
## Modules at a glance | | | | | | | | | | | |:-----------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [๐ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_file_manager/) | [๐ฐ๏ธ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_date_formatter/) | [๐ข ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_numbers/) | [๐ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_lists/) | [๐ค ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_strings/) | [โ๏ธ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_text/) | [๐ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_converter/) | [โ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_validator/) | [๐ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_web/) | [๐จ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_colors/) | | [๐ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_flow/) | [๐ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_json/) | [๐ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_regex/) | [โก ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_async/) | [๐ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_dict/) | [๐ผ๏ธ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_images/) | [๐งฎ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_math/) | [๐ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_stats/) | [๐ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_csv/) | [๐ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_data_visualization/) | | [๐ฎ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_game/) | [๐ฒ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_generator/) | [๐๏ธ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_archive/) | [โ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_sql/) | [๐ ](https://sara-czasak.github.io/py-simple-wrap/docs/reference/easy_random/) | | | | | | ### Legend: | | | | | | | |------------------------------------------------|-----------------------------------------------------|--------------------------------------------------|-------------------------------------------------------|-------------------------------------------------|----------------------------------------------------| |
๐ฆ Files & data
| ๐ฉ Text & validation
| ๐จ Numbers & math
| ๐ง Time & control flow
| ๐ช Web & visuals
| ๐ฅ Fun & generators
|
## Documentation
| ๐ฆ **[Module reference](../MODULES.md)**
| ๐ค **[Contributor hub](https://sara-czasak.github.io/py-simple-wrap/docs/contributor-hub/)**
| ๐บ๏ธ **[Contributors quest](https://sara-czasak.github.io/py-simple-wrap/quest/)**
|
|:-------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| More detailed overview of all modules, links to documentation and tutorials, in other words everything you need to get started | templates for contributors. This project is meant to help everyone learn and grow, including beginner contributors. The goal is to try to help everyone succeed on there journey with py-simple-wrap and python as a whole. | This is a gamified hub for contributors. You can participate in challenges, earn achievements, join a guild (or two). Search through open issues faster and check your progress in the leaderboard. This is meant to make contributing more fun! |
pip install py-simple-wrap
from py_simple import make_blank_file, miles_to_km, is_valid_email
make_blank_file("notes.txt")
print(miles_to_km(26.2)) # 42.16...
print(is_valid_email("hello@example.com")) # True
Full walkthrough in QUICKSTART.md, or browse the documentation site.
๐ฐ โ ๐ See the difference
The traditional way
import requests
from bs4 import BeautifulSoup
try:
response = requests.get('https://github.com', timeout=10)
response.raise_for_status()
page = BeautifulSoup(response.content, 'html.parser')
title = page.title.string
except Exception as e:
print("The site is down or address is invalid.")
The py-simple-wrap way
from py_simple import get_page_title
print(get_page_title("https://github.com"))
โญ If py-simple-wrap made something easier for you
Consider giving it a star โ it helps other beginners find it. And if there's a function you wish existed, fork it and add it; this project grew because other people did exactly that.
**[Contributing](../CONTRIBUTING.md) ยท [Changelog](../CHANGELOG.md) ยท [License](../LICENSE.md)**
Built for beginners, grown by 30+ contributors โจ