Skip to main content

Penut

Introduction

  • GitHub
    GitHub release GitHub release date GitHub issues
  • PyPI
    PyPI version PyPI license PyPI python
  • This package is a collection of my useful functions.
  • Including useful IO operation and NLP utils.

Installation

  • You can install this package through pip:
    pip install penut
    

Usage

  • You can easily load or dump and json/pkl/csv/npy file:
    import penut.io as pio
    
    data = pio.load('./data.json')
    data = pio.load('./data.pkl')
    data = pio.load('./data.csv')
    data = pio.load('./data.npy')
    
    pio.dump(data, './data.json')
    pio.dump(data, './data.pkl')
    pio.dump(data, './data.csv')
    pio.dump(data, './data.npy')
    
  • You can easily measure the execute time of code:
    from penut.uitls import TimeCost
    
    with TimeCost('Sleep Time'):
      import time
      time.sleep(1)
    # Output: Sleep Time: 1.000262s
    

Release files for penut-utils 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for penut-utils 0.0.1
File Size Uploaded
penut-utils-0.0.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for penut-utils 0.0.1
File Interpreter ABI Platform
penut_utils-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / penut-utils-0.0.1.tar.gz

Download URL penut-utils-0.0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0006d238b6df34e044d1181b7fa68894d2363777660b5ba446765ccc9c19accc
BLAKE2b-256 checksum
How to use checksums
542b7381d3631eb1a66fd38282a36b5856c8d387ebd0f10ba5c9eba820d74131
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4

Release files / penut_utils-0.0.1-py3-none-any.whl

Download URL penut_utils-0.0.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa609cffda8a862a872529f3f8c05888631b113127c03862126eb0f5fc1e4b9a
BLAKE2b-256 checksum
How to use checksums
71e49f01085d64971732b47f126438968ece409db4fc3fd5df68df28fe4c509d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page