Python modüllerini otomatik yükleyen kütüphane
Project description
AutoPIP
Python modüllerini otomatik yükleyen kütüphane. Import edilen modüller eksikse otomatik olarak pip ile yükleme yapar.
Kurulum
pip install autopip-Ninja-22
Kullanım
İki farklı kullanım şekli var:
- Kod çalışırken otomatik yükleme:
import autopip
autopip.watch() # Bu satırı kodunuzun başına ekleyin
# Artık eksik modüller otomatik yüklenecek
import pandas # pandas yüklü değilse otomatik yüklenir
- Belirli bir kod parçası için yükleme:
import autopip
kod = """
import pandas
import numpy
"""
# Eksik modülleri yükle
yuklenenler = autopip.auto_install(kod)
print("Yüklenen modüller:", yuklenenler)
Özellikler
- Python kodundaki import ifadelerini otomatik tespit eder
- Eksik modülleri pip ile otomatik yükler
- Standart kütüphane modüllerini yüklemeye çalışmaz
- İki farklı kullanım modu (watch ve auto_install)
Lisans
MIT License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
autopip_ninja_22-0.8.tar.gz
(4.2 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 autopip_ninja_22-0.8.tar.gz.
File metadata
- Download URL: autopip_ninja_22-0.8.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eefd93c482929c5e66a9be85d7e5a83e1b1b7d3f5b6482d8388eb3375f1cb5bb
|
|
| MD5 |
76a8a61721a4794f8bcc42715fac5d93
|
|
| BLAKE2b-256 |
1b7fb3a9461c0549b14b9f79b0cd48f783b29886225f8caa664e79fbf9c8743d
|
File details
Details for the file autopip_ninja_22-0.8-py3-none-any.whl.
File metadata
- Download URL: autopip_ninja_22-0.8-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2ac15cdf4488e2328a82669fec0b592f989b1d5e173072eee2c7d7eefb4fdae
|
|
| MD5 |
38ad5ca5941a8a3ae05a5ce4814112cc
|
|
| BLAKE2b-256 |
673e3cf6226b2c172c4381b5c5d4432a98fc6b93765ad39a4629e53a4e500b7f
|