Skip to main content

Fast Api 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


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_j2s-0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

FastApi_J2S-0.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_j2s-0.1.tar.gz.

File metadata

  • Download URL: fastapi_j2s-0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for fastapi_j2s-0.1.tar.gz
Algorithm Hash digest
SHA256 eae2a433fa8fa1461e1a77b687a0a7acf617473f5a509ddbbb1040cbba0f54cd
MD5 b00ed209d1433bf811edb4aa3ff6063e
BLAKE2b-256 b6556e33246c201e07a5338f3f46fbaafdc6743417ea9ed6467790dcbaf9a845

See more details on using hashes here.

File details

Details for the file FastApi_J2S-0.1-py3-none-any.whl.

File metadata

  • Download URL: FastApi_J2S-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for FastApi_J2S-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91baab41d07443e36d2fcb1033a0f8ad513a92a23e099bdbabd81cc2913f497f
MD5 d04fc9e3b802aa1a47ed9cb01b483bc7
BLAKE2b-256 26e78afd0c50feac900b5188e7e4b1d3e0e56595bfaba2fdbb4f943027ebc155

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