Skip to main content

☁️ ORLY ☁️


Yes, if you are looking for an open-source module to automatically import your dependencies and handle installation errors with ease, you are in the right place!



✔ Basic Example ✔

import orly
orly.set([
    'requests',
    'os'
])

print(requests.get('https://nohello.net').status_code)

⚙️ Features ⚙️

  • ✅ Auto-installs missing modules using pip
  • ✅ Supports aliasing (module~~alias)
  • ✅ Handles modules with different pip names (py_mod==pip_package)
  • ✅ Silent mode to suppress internal logs/prints (*)
  • ✅ Compatible with Linux systems requiring --break-system-packages
  • ✅ Clean console output (auto clear after each import)

🧠 Advanced Usage 🧠

import orly
orly.set([
    'requests~~req',            # 'requests' accessible as 'req'
    'bs4==beautifulsoup4',      # 'bs4' is imported; pip package name is "beautifulsoup4"
    'discord',                  # Normal import
    'discord.ext.commands*'     # Silent import of submodule
])

🛑 Appending * to the module string makes it silent:
‣ Disables print() from the module (if possible)
‣ Disables logging propagation

You can also globally silence everything:

orly.set(['requests', 'pandas', 'numpy'], silent=True)

💖 Auto-Setup 💖

try: 
    import orly
except ImportError:
    try:
        __import__('subprocess').check_call([__import__('sys').executable, "-m", "pip", "install", "orly"])
    except:
        __import__('subprocess').check_call([__import__('sys').executable, "-m", "pip", "install", "orly", "--break-system-packages"])
    finally: 
        import orly

📌 Disclaimer 📌


- This project is for educational purposes only. - Do not use this in any harmful, malicious or unethical way. - I decline any responsibility for misuse.

by Zarby

Metadata

Release files for orly 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orly 0.1.0
File Size Uploaded
orly-0.1.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for orly 0.1.0
File Interpreter ABI Platform
orly-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / orly-0.1.0.tar.gz

Download URL orly-0.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a01402c3175c5185afb33b33a3a7b5fbbacc615099c2d58689ef8221bbea5c3c
BLAKE2b-256 checksum
How to use checksums
26d5e2c69b5bec192a6ebf5e9dec8a008678c8a9eabf548e3574c79e9170961b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.9

Release files / orly-0.1.0-py3-none-any.whl

Download URL orly-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1c74c96345964dc781f0006b89df5ec7ceef8043af9032fa54aa2ea2601d45d
BLAKE2b-256 checksum
How to use checksums
7cd42757bf5fdaed2dff284cde8487e4f0759fff42e2d163562433e0723c4a47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page