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.4.tar.gz
(2.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.4.tar.gz.
File metadata
- Download URL: autopip_ninja_22-0.4.tar.gz
- Upload date:
- Size: 2.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 |
58a45804c2651855d0b3ed61c3228daddd809b890af27e17339025921107d77d
|
|
| MD5 |
6ae95540b48f3514ca29ab6b4a8c8956
|
|
| BLAKE2b-256 |
f806831a926f072091e679f0d7dec02fd70c60cb9575428d0577bbd52c8eddde
|
File details
Details for the file autopip_ninja_22-0.4-py3-none-any.whl.
File metadata
- Download URL: autopip_ninja_22-0.4-py3-none-any.whl
- Upload date:
- Size: 3.1 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 |
efadf9db9e219e039e963eb0127773b243c4bb149fb69f410e4b51d3a37d73fd
|
|
| MD5 |
ea32a47ee569e6735c49130b22ec8e49
|
|
| BLAKE2b-256 |
cbc145bdebbbde2a9f82bce51a1e193209cfbfb7a8ce4a2d9aaeece833c16ece
|