This is a collection of my useful functions.
Project description
Penut
Introduction
- GitHub
- PyPI
- 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
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
penut-utils-0.0.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for penut_utils-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa609cffda8a862a872529f3f8c05888631b113127c03862126eb0f5fc1e4b9a |
|
MD5 | d83e203be72ed61c3db63ada6e6239ad |
|
BLAKE2b-256 | 71e49f01085d64971732b47f126438968ece409db4fc3fd5df68df28fe4c509d |