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

waivek-0.1.13.tar.gz (46.4 kB view details)

Uploaded Source

Built Distribution

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

waivek-0.1.13-py3-none-any.whl (51.8 kB view details)

Uploaded Python 3

File details

Details for the file waivek-0.1.13.tar.gz.

File metadata

  • Download URL: waivek-0.1.13.tar.gz
  • Upload date:
  • Size: 46.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for waivek-0.1.13.tar.gz
Algorithm Hash digest
SHA256 c74e0f426d39829a0f48b0f3667b7669458b1a28dbafd795c9d3fb43d7f87b49
MD5 c24e8163c1bd4969e2790605a3cfcb87
BLAKE2b-256 c107293e6ed5c1081774d32ba20eae00b91bd0f17599a777501d0355631c6f76

See more details on using hashes here.

File details

Details for the file waivek-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: waivek-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 51.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for waivek-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 bea506d4304c0846e3527ebaa24d740f07efc11b4a66096c66bacafae0112d8b
MD5 87ca6e8c1f7b0d381d7976b2e6cb15f6
BLAKE2b-256 81e061337f2d2989b2cc402974d160719236fcfd25246f886ff51ba9c3df6f96

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