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.25.tar.gz (52.6 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.25-py3-none-any.whl (59.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for waivek-0.1.25.tar.gz
Algorithm Hash digest
SHA256 1d0cd13516637f1757f8cc1ab62d3624da7c129a7f3be3e8c149dd8dbc287d25
MD5 3f113e6f36f7d52c0f59e03a51754e50
BLAKE2b-256 b00ebd9730b923b4c7f3cf288ff49e6f71f92f9202d91be4c84cacf41cc5ea3d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for waivek-0.1.25-py3-none-any.whl
Algorithm Hash digest
SHA256 d1d918b828f790d0d42e562307c135e43776960a3e25236122b67cbef7aaf208
MD5 06e3bb2bc78baa94b6a6a1be5f2117f5
BLAKE2b-256 8853a6cdcf852dcf7ed4d086530584d336a8ccb2ed9beeeedd873b3c54207892

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