Skip to main content

This is a collection of my useful functions.

Project description

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
    

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

penut-utils-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

penut_utils-0.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file penut-utils-0.0.1.tar.gz.

File metadata

  • Download URL: penut-utils-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for penut-utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0006d238b6df34e044d1181b7fa68894d2363777660b5ba446765ccc9c19accc
MD5 4f302a485841447021af4521c022a02d
BLAKE2b-256 542b7381d3631eb1a66fd38282a36b5856c8d387ebd0f10ba5c9eba820d74131

See more details on using hashes here.

File details

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

File metadata

  • Download URL: penut_utils-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for penut_utils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa609cffda8a862a872529f3f8c05888631b113127c03862126eb0f5fc1e4b9a
MD5 d83e203be72ed61c3db63ada6e6239ad
BLAKE2b-256 71e49f01085d64971732b47f126438968ece409db4fc3fd5df68df28fe4c509d

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