BabyPy is a user-friendly Python library that simplifies complex programming tasks, making it easier for beginners and experienced developers alike to create powerful applications quickly.
BabyPy offers a wide range of functionalities across various domains:
- Print messages (
say
) - Get user input (
ask
) - Convert text to numbers (
make_number
) - Create and manipulate lists (
make_list
,sort_stuff
,mix_up
,remove_copies
) - Work with strings (
join_words
,split_big_word
,say_loudly
,say_quietly
)
- Basic arithmetic (
add_up
,find_middle
) - Generate number sequences (
count_from_to
) - Round numbers (
make_rounder
) - Advanced math (
factorial
,is_prime
,fibonacci
) - Calculate percentages (
calculate_percentage
)
- Get current date and time (
get_today
,get_now
) - Format dates (
format_date
) - Calculate date differences (
date_difference
) - Add days to a date (
add_days_to_date
)
- Read and write files (
read_file
,write_file
,add_to_file
) - List directory contents (
list_files
) - Create and delete directories (
make_directory
) - Rename files (
rename_file
) - Get file size (
get_file_size
)
- Dictionaries (
make_box
) - Stacks and Queues (
Stack
,Queue
,PriorityQueue
)
- Create and manipulate DataFrames (
make_table
,read_csv
,save_csv
) - Generate plots (
make_picture
,make_bar_chart
,make_scatter_plot
) - Create heatmaps and violin plots (
make_heatmap
,make_violin_plot
)
- Initialize game windows (
start_game
) - Draw shapes and images (
draw_circle
,draw_rectangle
,draw_image
) - Handle game events (
get_key_pressed
) - Play sounds (
make_sound
,play_sound
) - Create sprites and detect collisions (
create_sprite
,detect_collision
)
- Send HTTP requests (
get_webpage
,download_file
) - Parse HTML (
parse_html
,find_all_tags
) - Run a web server (
run_web_server
) - Scrape dynamic content (
scrape_dynamic_content
)
- Connect to SQLite databases (
connect_to_db
,run_query
)
- Get IP addresses (
get_ip_address
,get_public_ip
) - Ping addresses (
ping_address
) - Check open ports (
is_port_open
)
- Generate hashes (
make_hash
) - Encrypt and decrypt messages (
encrypt_message
,decrypt_message
,encrypt_message_secure
,decrypt_message_secure
)
- Get system information (
get_system_info
) - Run system commands (
run_command
)
- Record and play audio (
record_audio
,play_audio
)
- Perform simple linear regression (
simple_linear_regression
)
- Tokenize text (
tokenize_text
) - Remove stopwords (
remove_stopwords
) - Stem words (
stem_words
)
- Open, save, and manipulate images (
open_image
,save_image
,resize_image
,rotate_image
) - Apply filters (
apply_filter
) - Crop images (
crop_image
)
- Capture images from camera (
capture_image
)
- Get coordinates for addresses (
get_coordinates
)
- Convert text to speech (
text_to_speech
)
- Create QR codes (
create_qr_code
)
- Merge PDF files (
merge_pdfs
)
- Compress and decompress data (
compress_data
,decompress_data
)
-
Install BabyPy:
pip install babypy
-
Import BabyPy in your Python script:
import babypy as easy
-
Start using BabyPy's simplified functions:
easy.say("Hello, World!") name = easy.ask("What's your name?") easy.say(f"Nice to meet you, {easy.say_loudly(name)}!")
For detailed documentation on all available functions and their usage, please see our Wiki.
BabyPy is released under the MIT License. See the LICENSE file for details.
BabyPy was inspired by the need to make Python programming more accessible to beginners while providing powerful tools for experienced developers.
Made with ❤️ by [Jagath/No-Book-Lad]