Skip to main content

The Python Package Index Project

Project description

About

The Python Package Index Project (pypipr)

Setup

Install with pip

python -m pip install pypipr

Test with

from pypipr.pypipr import Pypipr
Pypipr.test_print()

Pypipr Class

test_print() memastikan module sudah terinstal dan dapat dijalankan

from pypipr.pypipr import Pypipr
Pypipr.test_print()

iconsole

@Log() / Log decorator akan melakukan print ke console. Mempermudah pembuatan log karena tidak perlu mengubah fungsi yg sudah ada. Berguna untuk memberikan informasi proses program yg sedang berjalan.

from pypipr.iconsole import log

@log("Calling some function")
def some_function():
    ...
    return

print_colorize() print ke console dengan warna

from pypipr.iconsole import print_colorize
print_colorize("Print some text")

input_char() meminta masukan satu huruf tanpa menekan enter. Char tidak ditampilkan.

from pypipr.iconsole import input_char
input_char("Input Char without print : ")

input_char() meminta masukan satu huruf tanpa menekan enter. Char ditampilkan.

from pypipr.iconsole import input_char_echo
input_char_echo("Input Char n : ")

idatetime

datetime_now() memudahkan dalam membuat tanggal dan waktu untuk suatu timezone

from pypipr.idatetime import datetime_now
datetime_now("Asia/Jakarta")
datetime_now("GMT")
datetime_now("Etc/GMT+7")

iconstant

WINDOWS True apabila berjalan di platform Windows

from pypipr.iconstant import WINDOWS
print(WINDOWS)

LINUX True apabila berjalan di platform Linux

from pypipr.iconstant import LINUX
print(LINUX)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

pypipr-0.1.9.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

pypipr-0.1.9-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

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