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

gurka_toolkits-0.1.tar.gz (1.8 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for gurka_toolkits-0.1.tar.gz
Algorithm Hash digest
SHA256 bbe099cdaf89c24745bec3159d773e104131ed75e7b17ecdae53f655b40a951b
MD5 d33ead7de01259ea0ab49ccabba499a4
BLAKE2b-256 4f56ed150d178a3fda13f55547619caa7b3149fd18453fe851b966fb575cb5cf

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