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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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