Control Your Library With Dictionary
Project description
Modul-Wrapper
Modul Wrapper Adalah Modul Untuk Menyimpan Semua Library Yang Akan Digunakan Dalam Bentuk Dictionary Guna Menghindari Crash Karena Penamaan Class atau Function Yang Sama Antar Library.
Example
Tanpa Menggunakan Deklarasi Khusus
from Modul_Wrapper import Wrap
modul = Wrap(modul_path="modul.json")
datetime = modul.modul['datetime'].datetime.now().strftime("%H:%M")
print(datetime)
Menggunakan Deklarasi Khusus
from Modul_Wrapper import Wrap
modul = Wrap(modul_path="modul.json")
datetime = modul.modul['modul_jam'].datetime.now().strftime("%H:%M")
print(datetime)
Konfigurasi Modul
Field | Description |
---|---|
folder |
Nama Library / Lokasi File Dimana Class / Function Disimpan |
file |
Nama File Library / Class / Function |
class |
Nama Class / Function Yang Akan Dipanggil |
defined |
Akan Disimpan Menggunakan Deklarasi Khusus |
NB: Jika Field "defined" di isi "" atau di isi Kosong, Maka Yang Untuk Memanggil Library Yang Kita Set Bisa Menggunakan "class"
Load / Import Library
Tanpa Menggunakan Deklarasi Khusus
modul = Wrap(modul_path="modul.json")
# modul_path adalah lokasi Dimana Konfigurasi Modul Disimpan
datetime = modul.modul['datetime'].datetime.now().strftime("%H:%M")
# Memanggil Modul Dengan class "datetime" kemudian Panggil Fungsi datetime.now()
print(datetime)
datetime = modul.modul['modul_jam'].datetime.now().strftime("%H:%M")
# Memanggil Modul Dengan defined "datetime" kemudian Panggil Fungsi datetime.now()
print(datetime)
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
modul_wrapper-0.9.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file modul_wrapper-0.9.tar.gz
.
File metadata
- Download URL: modul_wrapper-0.9.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f158559dcff6f61a1839fe8b7f21ec90631270dfd20c386fc0f59c4a1c57968 |
|
MD5 | dfcc50aeb8674bbd91dcbd74944fae39 |
|
BLAKE2b-256 | 9cc3510f98abcbe3be9355cd98bd7c51bf3e7e7b9f8f766e800219a4783ca0dd |
File details
Details for the file Modul_Wrapper-0.9-py3-none-any.whl
.
File metadata
- Download URL: Modul_Wrapper-0.9-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97a295516c88a1224fbf5e0dc467b9b1f9201e1eb7c5e8f04b9d90ef46db9bb2 |
|
MD5 | 4331b46e5e705f012272dcd61683b52a |
|
BLAKE2b-256 | df700c3a23008dba4912ccdf84e3d3cb77683849b541b3c03aec3d64c38600b9 |