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?

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}

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


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.8.tar.gz (19.0 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.8-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: handytoolspy-0.1.8.tar.gz
  • Upload date:
  • Size: 19.0 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.8.tar.gz
Algorithm Hash digest
SHA256 5f30fda3c2cabc4efbecc1e71a67d6ce097f4b3525dfd97de80c71a5fdcad75c
MD5 52e47aab992e15782d2e31ed6f98f007
BLAKE2b-256 03189dd674c8ad3b20de777aa74c01018f42da53a50d6350024364c80ef24b52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: HandyToolsPy-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 17.5 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 67c9fa6e603678b9f622afb54b00a0cbf87e68ebf08bd41b5b2a42e43f25b72a
MD5 452b1393ac097762fa6719d1e16bfaaf
BLAKE2b-256 72788ef7a1cc450bc563d0ed6f1f0ef6e0c9271dd9568f87df1fa9f5efc52866

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