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.9.tar.gz
(3.9 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.9.tar.gz.
File metadata
- Download URL: autopip_ninja_22-0.9.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ee7bc341a838e1ec71b6611dd6c31f4aa9bffedb59bf5945f23265a1ca13fb6
|
|
| MD5 |
17341b380f9f7500c17a860893c115fd
|
|
| BLAKE2b-256 |
8709f69a5370783d322a8fa95138d393c0e18957a93e711a30984d0add67d8d0
|
File details
Details for the file autopip_ninja_22-0.9-py3-none-any.whl.
File metadata
- Download URL: autopip_ninja_22-0.9-py3-none-any.whl
- Upload date:
- Size: 4.0 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 |
2a188e9ac17089e56f85d4d5469a847abd886b4d4d3a6577e2be708d4919710a
|
|
| MD5 |
760d36535c7957c4d718cd6e71c14d78
|
|
| BLAKE2b-256 |
8d9de46932c8ee77cb6bebba7cb4d1e68c3e69e7b2e004000a80e9dcfd1f0515
|