Handypy is a multifunctional Python tool library, which aims to provide developers with a series of convenient practical tools and simplify daily programming tasks.Whether it is processing data, operating file systems, or network requests, Handypy can provide you with efficient and reliable solutions.
Project description
How to use?
Calculate the frequency of words
from HandyToolsPy import DataProcess as dp
words = ["a","a","a","a","b","b","c"]
res = dp.count_words_freq(words)
print(res)
output:
{'a': 4, 'b': 2, 'c': 1}
It also support csv file (DataFrame format):
Here is a csv file named sample.csv:
hello
world
haha
haha
hello
hello
the code will be:
import HandyToolsPy.DataProcess as dp
import pandas as pd
words = pd.read_csv('./sample.csv', names=["word"])
res = dp.count_words_freq(words["word"])
print(res)
output:
{'hello': 3, 'haha': 2, 'world': 1}
A Translator
It can automaticly detect the language of the input text and translate it to the target language.
from HandyToolsPy import translator
text = "你好"
res = Translator(text, "en")
print(res)
output:
'Hello'
A Drawer
It can draw a BingDunDun.
from HandyToolsPy import Draw as dw
dw.draw_BingDunDun(10)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file handytoolspy-0.1.5.tar.gz.
File metadata
- Download URL: handytoolspy-0.1.5.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dca9d71aaa768b4efe0dd50026a047fa09a08ca847a64cb67b22f820e27d5323
|
|
| MD5 |
490fc4c68116603419dbb20b189a8eb2
|
|
| BLAKE2b-256 |
e3ec57e6786b387e60e3174ba1af86fccd3aa60044e5a6176dee013e25049e05
|
File details
Details for the file HandyToolsPy-0.1.5-py3-none-any.whl.
File metadata
- Download URL: HandyToolsPy-0.1.5-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12caf999f1292c09666feb303ac5310b289eb82ae498e78dfb363fd3d4e9adec
|
|
| MD5 |
d9cc0805ac682102f304c34b41b2ad1c
|
|
| BLAKE2b-256 |
cd1dbecfbe03e174cdd86fe30698756150897d8d4003647d647deb467ccf4e85
|