Hey there, fellow Pythonista! π Ever felt like managing packages is like herding cats? Well, fear not! pipmaster is here to save the day! It's like having a magical wand that installs, updates, and checks packages for you. Because who doesn't want a personal assistant for their Python projects? π
- Install packages with ease! π
- Install specific versions like a time traveler! β³
- Check if packages are installed, like finding unicorns! π¦
- Get package info, because knowledge is power! π
- Update packages, because everyone loves a makeover! π
First things first, let's get pipmaster installed. It's easier than making a cup of coffee!
pip install pipmaster
Here's where the magic happens. Create an instance of PackageManager
and let the fun begin!
from pipmaster import PackageManager
# Create a PackageManager instance
pm = PackageManager()
# Install a package
pm.install("requests")
# Install a specific version of a package
pm.install_version("requests", "2.25.1")
# Check if a package is installed
pm.is_installed("requests")
# Get information about a package
info = pm.get_package_info("requests")
print(info)
# Get the installed version of a package
version = pm.get_installed_version("requests")
print(f"Installed version: {version}")
# Install or update a package
pm.install_or_update("requests")
For more detailed information, check out our documentation. Itβs like a treasure map for your coding adventures! πΊοΈ
We welcome contributions from everyone! Whether you're a coding wizard or just getting started, feel free to join the fun. Check out our contributing guidelines.
pipmaster is licensed under the Apache 2.0 License. For more details, see the LICENSE file.
If you like pipmaster, give us a star on GitHub! β It's like giving us a virtual high-five! π
Have questions, suggestions, or just want to say hi? Reach out to us!
- Twitter: @ParisNeo_AI
- Discord: Join our Discord
- Sub-Reddit: r/lollms
- Instagram: @spacenerduino
Don't forget to check out our YouTube channel. Hit that subscribe button and join us on an epic coding journey!
- Catchphrase: Hi there
- Ending phrase: See ya
Feeling like your console output is as dull as a rainy Monday? Say no more! Introducing ASCIIColors! It's the ultimate tool to add a splash of color and style to your console text. Think of it as the confetti cannon for your terminal! π
- Colorful Text: Make your messages pop with vibrant colors! π
- Stylish Output: Bold, underline, and more! It's like giving your text a fashion makeover! π
- Easy to Use: Simpler than tying your shoelaces! π
pip install asciicolors
Here's an example to make your console look like it's ready for a party:
from asciicolors import ASCIIColors
# Print an error message
ASCIIColors.error("This is an error message")
# Print a success message
ASCIIColors.success("Operation successful")
# Print a warning message
ASCIIColors.warning("Warning: This action cannot be undone")
# Print text in bold and underline style
ASCIIColors.bold("Important message", ASCIIColors.color_bright_blue)
ASCIIColors.underline("Underlined text", ASCIIColors.color_bright_green)
# Use specific colors directly
ASCIIColors.yellow("Yellow text")
ASCIIColors.red("Red text")
ASCIIColors.green("Green text")
ASCIIColors.cyan("Cyan text")
ASCIIColors.multicolor(["Green text","red text","yellow text"],[ASCIIColors.color_green, ASCIIColors.color_red, ASCIIColors.color_yellow])
Trace and color your exceptions using trace_exception
:
# Trace all your exceptions using:
from asciicolors import trace_exception
try:
#some nasty stuff that can crush
except Exception as ex:
trace_exception(ex)
For more details, hop on over to the ASCIIColors documentation. It's your colorful adventure guide! π
Happy coding, and may the pip be with you! πβ¨