Skip to main content

Tools I need in every python project

Project description

What is this?

The tools I find myself copying and pasting between every python project.

How do I use this?

pip install blissful_basics

from blissful_basics import print, flatten, to_pure, stringify, stats, product, countdown, large_pickle_save, large_pickle_load, FS, Object

# how you'd expect it
with print.indent:
    print("howdy1")
    with print.indent:
        print("howdy2")
    print("howdy3")

# recursively indent's function calls
@print.indent.function 
def my_func():
    print("this will be indented")

import numpy
import torch

to_pure(numpy.array([1,2,3,4,5]))   # [1,2,3,4,5]
to_pure(torch.tensor([1,2,3,4,5]))  # [1,2,3,4,5] # even if its on a GPU device

stats([1,2,3,4,5])
# Object(
#     max = 5,
#     min = 1,
#     range = 4,
#     count = 5,
#     sum = 15,
#     average = 3.0,
#     stdev = 1.5811388300841898,
#     median = 3,
#     q1 = 1.5,
#     q3 = 4.5,
#     normalized = (0.0, 0.25, 0.5, 0.75, 1.0),
# )

a = Object(thing=10)
a.thing # 10
a.thing = 99
a.thing # 99

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

blissful_basics-0.0.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

blissful_basics-0.0.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file blissful_basics-0.0.1.tar.gz.

File metadata

  • Download URL: blissful_basics-0.0.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for blissful_basics-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e8eda60649a822abc23ec90598fe9c119c67dfee0700b57d668fad6b56c97a1b
MD5 bbd5459979cbd90324aa6114742ee30a
BLAKE2b-256 fc5ad79f6afb472e7f1fb4a1846439c3ac48e926d8f6182b051ac8f24fac60eb

See more details on using hashes here.

File details

Details for the file blissful_basics-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: blissful_basics-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for blissful_basics-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7981fde64ccd913fc7b6e11bf1f4a56497c42fb5ec16b1ed093444feb187c806
MD5 c1a25076821a3c1f3d302e0349603745
BLAKE2b-256 bea4d7f13f6533570ebc3bf53d751a6673c5fd6c3850c83bf6429b84d1ed9437

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