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

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', 'make_dir_of', '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

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.6.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mbp-1.0.6.tar.gz
  • Upload date:
  • Size: 6.1 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.6.tar.gz
Algorithm Hash digest
SHA256 474bc7a23d5661d1308f35ee1372b5afca47a1e7e06684a4727628c4d781f8ce
MD5 2370a0ef590142558879b50b102d4471
BLAKE2b-256 356d659f518ea5f5e595b02ab525a6b780c72c5ef6dc24e075e0a40ce694986c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mbp-1.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 72fa913e8c64fdbe829529b956fdfc9098fb6a15542d8a67001151a83b804393
MD5 ab3221cd9cc8c5330f84b465e3964c69
BLAKE2b-256 0b2977c5f5f19c815aaff306a23ca28b2326178bcb84d405a7ec77ca188607d2

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