A simplified Python library for beginners
Project description
BabyPy: Simplified Python Programming for Everyone
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.
🌟 Features
BabyPy offers a wide range of functionalities across various domains:
🖥️ Basic Operations
- 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
)
🧮 Math and Statistics
- 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
)
📅 Date and Time
- 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
)
📁 File Operations
- 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
)
🔢 Data Structures
- Dictionaries (
make_box
) - Stacks and Queues (
Stack
,Queue
,PriorityQueue
)
📊 Data Analysis and Visualization
- 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
)
🎮 Game Development
- 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
)
🌐 Web Development and Scraping
- 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
)
💾 Database Operations
- Connect to SQLite databases (
connect_to_db
,run_query
)
📡 Network Operations
- Get IP addresses (
get_ip_address
,get_public_ip
) - Ping addresses (
ping_address
) - Check open ports (
is_port_open
)
🔐 Encryption and Security
- Generate hashes (
make_hash
) - Encrypt and decrypt messages (
encrypt_message
,decrypt_message
,encrypt_message_secure
,decrypt_message_secure
)
🎛️ System Operations
- Get system information (
get_system_info
) - Run system commands (
run_command
)
🔊 Audio Processing
- Record and play audio (
record_audio
,play_audio
)
🤖 Machine Learning
- Perform simple linear regression (
simple_linear_regression
)
📝 Natural Language Processing
- Tokenize text (
tokenize_text
) - Remove stopwords (
remove_stopwords
) - Stem words (
stem_words
)
🖼️ Image Processing
- Open, save, and manipulate images (
open_image
,save_image
,resize_image
,rotate_image
) - Apply filters (
apply_filter
) - Crop images (
crop_image
)
📷 Computer Vision
- Capture images from camera (
capture_image
)
🗺️ Geocoding
- Get coordinates for addresses (
get_coordinates
)
🗣️ Text-to-Speech
- Convert text to speech (
text_to_speech
)
📱 QR Code Generation
- Create QR codes (
create_qr_code
)
📄 PDF Manipulation
- Merge PDF files (
merge_pdfs
)
🗜️ Data Compression
- Compress and decompress data (
compress_data
,decompress_data
)
🚀 Getting Started
-
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)}!")
📚 Documentation
For detailed documentation on all available functions and their usage, please see our Wiki.
📄 License
BabyPy is released under the MIT License. See the LICENSE file for details.
🙏 Acknowledgements
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]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.