Skip to main content

Contains a set of helper kits that can help you for development.

Project description

To use (with caution), simply do:

>>> from gurka import toolkits
>>>
>>> # Example rupiah formating
>>> money_idn = 45000
>>> toolkits.to_rupiah(money_idn)
'Rp. 45,000.00'
>>>
>>> # Example using autonumber
>>> toolkits.DEFAULT_PREFIX = "PRD" # PRD is a prefix code for product.
>>> toolkits.DEFAULT_OVERFLOW = 3 # Total digit autonumber
>>>
>>> toolkits.autonumber()
'PRD001'
>>>
>>> toolkits.autonumber(data=_)
'PRD002'
>>> toolkits.autonumber(data=_)
'PRD003'
>>> toolkits.autonumber(data=_)
'PRD004'

Project details


Release history Release notifications

This version
History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
gurka_toolkits-0.1.tar.gz (1.8 kB) Copy SHA256 hash SHA256 Source None Aug 20, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page