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.2.tar.gz
(2.7 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.2.tar.gz.
File metadata
- Download URL: autopip_ninja_22-0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
281c41855c6b3eb5f6f0cc5777faffd3f7e29a1549b7c51ec02fce3624e32990
|
|
| MD5 |
352d0caaee5fb254c5cadb537b85eaa6
|
|
| BLAKE2b-256 |
8760a72b46906358d6e5a2400469607b116535961bf9e12d4ad24acef320dbd5
|
File details
Details for the file autopip_ninja_22-0.2-py3-none-any.whl.
File metadata
- Download URL: autopip_ninja_22-0.2-py3-none-any.whl
- Upload date:
- Size: 2.9 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 |
93c5319a20fb54ccd14461d65b2cd80d7276066aba48459d9a6ffd16c4487e54
|
|
| MD5 |
03cd7a5c3e08af5fd0c8527f203e641f
|
|
| BLAKE2b-256 |
e68c9f0ac59554d9323187a6461c74ee5d7a59d831ae5b25ade5d410d2adb3e5
|