Skip to main content

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.8.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

Modul_Wrapper-0.8-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file modul_wrapper-0.8.tar.gz.

File metadata

  • Download URL: modul_wrapper-0.8.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

Hashes for modul_wrapper-0.8.tar.gz
Algorithm Hash digest
SHA256 d8b12015e4c011d9a5c653c06a2fce9f16424c2f2f8fe106e2f749dcc3138e9d
MD5 ae6b65b5f4a4fb0f4ae2a5dc8e3cb09e
BLAKE2b-256 ab97fb5b3a6ca7c36e7d2d4a6c3f240b08695ddf9b592c756e64769b2772a96b

See more details on using hashes here.

File details

Details for the file Modul_Wrapper-0.8-py3-none-any.whl.

File metadata

  • Download URL: Modul_Wrapper-0.8-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

Hashes for Modul_Wrapper-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4cca691a7cf8ca82841df47acc5ae5606748e890f41c9bda381f5dfa4463c5c1
MD5 4e80db9c0783ebc8984cea4b661fb86b
BLAKE2b-256 7c092357883000dde4c682459f949fa067c5fe4f832177bcdf602268aec6d95d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page