Skip to main content

No project description provided

Project description

Code - Print colored text

from waivek import Code
print(Code.RED + "Hello, World!")

common

from waivek import Date, Timestamp
dt = Date("2020-01-01"
timestamp = Timestamp(3600)
>>> Date(1672511400) == Date('2023-01-01')
True

>>> date = Date(1672511400)
>>> date
12:00 AM, Jan 01 (5 months ago)

>>> date.epoch
1672511400

>>> date.string
2023-01-01T00:00:00+05:30

>>> date.timeago()
5 months ago

>>> str(date)
12:00 AM, Jan 01 (5 months ago)

>>> date.dt
2023-01-01 00:00:00+05:30
from waivek import create_partitions, smart_pad, enumerate_count

db

from waivek import db_init, insert_dictionaries
cursor, connection = db_init(db_path)
insert_dictionaries(cursor, table_name, dictionaries)

error

from waivek import handler
with handler():
    main()

get

from waivek import aget
aget(urls)

ic

from waivek import ic, ib
ic({"key": "value"})
ib(str)

print_utils - Print and manipulate text.

from waivek import head, truncate, abbreviate

reltools - Do path manipulation relative to

from waivek import rel2abs, read, write

timer - Measure execution time of code snippets

from waivek import Timer

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

box-0.1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

box-0.1.2-py3-none-any.whl (79.3 kB view details)

Uploaded Python 3

File details

Details for the file box-0.1.2.tar.gz.

File metadata

  • Download URL: box-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for box-0.1.2.tar.gz
Algorithm Hash digest
SHA256 64db38b21f0680136d04449138651be08e65637db8459b91b1ab56470ebde99b
MD5 4917226b51461bb8078695a77cdf5f7f
BLAKE2b-256 361091390c6b47a05d1836eaaf0e1eb83b260f5d3ea8a6761ae0065d784276cd

See more details on using hashes here.

File details

Details for the file box-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: box-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 79.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for box-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d7f387a6b490a3db4350e5f68dfa4e8201b8b1c560540a7d482b51f96a39c43
MD5 68f5ac5aa564d233cec42424af85ceb8
BLAKE2b-256 1c3e6ac0df7da9047d99052f18d0e29c35aaa0d9240f304d1db2384eb793e105

See more details on using hashes here.

Supported by

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