Skip to main content

Make Python more beautiful :) This package includes syntax sugar & tools that you wish were in the standard library.

Project description

More Beautiful Python

Make Python more beautiful :) This package includes syntax sugar & tools that you wish were in the standard library.

Setup

python -m pip install mbp
python -m mbp

Examples

https://github.com/sudongqi/MoreBeautifulPython/blob/main/examples.py

All functionalities

__all__ = [

# Alternative for logging
'log', 'logger', 'get_logger', 'set_global_logger', 'reset_global_logger',
'NOTSET', 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL', 'SILENT',
# Alternative for multiprocessing
'Workers', 'work', 'test_f',
# Syntax sugar for pathlib
'dir_of', 'path_join', 'make_dir', 'this_dir', 'exec_dir', 'lib_path', 'only_file_of',
# Tools for file loading & handling
'load_jsonl', 'load_json', 'load_csv', 'load_tsv', 'load_txt',
'iterate', 'save_json', 'save_jsonl', 'open_file', 'open_files',
# Tools for summarizations
'print2', 'log2', 'enclose', 'enclose_timer', 'print_table', 'build_table', 'print_iter', 'error_msg', 'sep', 'na',
# Tools for simple statistics
'timer', 'curr_time', 'avg', 'min_max_avg', 'n_min_max_avg', 'CPU_COUNT',
# common libraries
'sys', 'os', 'random', 'json', 'itertools',

]

Project details


Release history Release notifications | RSS feed

This version

1.0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mbp-1.0.4.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

mbp-1.0.4-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file mbp-1.0.4.tar.gz.

File metadata

  • Download URL: mbp-1.0.4.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for mbp-1.0.4.tar.gz
Algorithm Hash digest
SHA256 e4605350f4aa25397fba37405703208dd4c4895b16cbba4f2dd80faa165201c6
MD5 bf88c9e7b7573619713212a8fdebe5c4
BLAKE2b-256 4875ac6819c8d9cc9d9f9032076c92389bd25ff9c309c175667158c50fbcb91c

See more details on using hashes here.

File details

Details for the file mbp-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: mbp-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for mbp-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b40038d113e043f5444e64d959b82e28f6fb991eae0fad8e2b2e8cb4c785ce15
MD5 ac1e2e6c038341465fc4172aa883065d
BLAKE2b-256 d6926a216a24b44f6dc4886e05e99385acdf57f4626b774db2a8842cc07b6681

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