Skip to main content

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?

1. Data Process

1.1 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:

from HandyToolsPy import 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}

2. 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'

3. A Drawer

It can draw a BingDunDun.

from HandyToolsPy import Draw as dw

dw.draw_BingDunDun(10)

4. A Dir Tree Generator

It can generate a dir tree.

from HandyToolsPy import dir_tree

path = "Sample Path"
dir_tree.generate_dir_tree(path)

output:

D:/Sample/
├── sample.exe
└── xxx
    ├── hhh
    ├── hhh.zip
    ├── xh.bmp
    ├── xxx.pptx
    └── xxx.txt

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

handytoolspy-0.1.9.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

HandyToolsPy-0.1.9-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file handytoolspy-0.1.9.tar.gz.

File metadata

  • Download URL: handytoolspy-0.1.9.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for handytoolspy-0.1.9.tar.gz
Algorithm Hash digest
SHA256 785b163c1942ee255b7ddad495ddf68d02e6e9332703e3b16f3b2d10331f3bc7
MD5 82c4ff43c433adcf7691fd536b1b7176
BLAKE2b-256 d3c96631534c45868a045d4ed35dab33eded179cc62da23f442923d6ae327830

See more details on using hashes here.

File details

Details for the file HandyToolsPy-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: HandyToolsPy-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for HandyToolsPy-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 51d2b5757b1da7acec1787ebd02ea65a7d1daed44d4e5be0fedc1f2b2ba20a77
MD5 2e6eaaed292d68197ded786f9a0b0ff3
BLAKE2b-256 c0afa7ce707c4f634a9ca92da7f7b4449ef4df61164939ff95f3214dc44bd69a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page