A Python library manager that automatically installs missing libraries
Project description
PyLibController
A Python library manager that automatically installs missing libraries at runtime.
Installation
pip install pylibcontroller
Usage
from pylibcontroller import LibController
# Create a LibController instance
lib_controller = LibController(auto_install=True)
try:
# Try to import required libraries
lib_controller.require("requests", "pandas")
# If we get here, the libraries are available
import requests
import pandas as pd
# Your code using the libraries goes here
print("All required libraries are available!")
except Exception as e:
print(f"Error: {e}")
Features
- Automatic library installation
- Error handling with custom error messages
- Multiple library checking at once
- Script auto-restart capability
- Customizable pip command
License
MIT License
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.
Source Distribution
pylibcontroller-0.1.0.tar.gz
(8.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylibcontroller-0.1.0.tar.gz.
File metadata
- Download URL: pylibcontroller-0.1.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae5427c6c1d2dfa0fd55f71ca24320b487084c9913e0777e03260c2137e308b1
|
|
| MD5 |
4663fea87bbfa87845aec865edb7073c
|
|
| BLAKE2b-256 |
0fec1fc027475fe9607ad47de8dbc18b273e0e6e822b086c103532d910ae5cd8
|
File details
Details for the file pylibcontroller-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pylibcontroller-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf83c173d80d5d68dee625c7c7a74de08d9da39168a5c09a6932b78ae05dce3d
|
|
| MD5 |
967cbbc05fd5c35187b98073226d2e3b
|
|
| BLAKE2b-256 |
9751cd73713a5338818830f51e3cf247d7cf40e73b27d0a9d1e3835e2a9ffe81
|