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:

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


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

Uploaded Python 3

File details

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

File metadata

  • Download URL: handytoolspy-0.1.3.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

Hashes for handytoolspy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9b483052d2ba414ebb9a5e4b4e8c3b07e3f8693f5d9d2a480c4d4889b00b3b5e
MD5 31ba8d611e2321c3900b373054febce1
BLAKE2b-256 20866a8be88d7acd5f06b06a413f4c993d09c84868ed9f56b41f1261ec42cfbb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: HandyToolsPy-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 13d58ae5e7e7ac523c2911edf382e3dbd98a6116f0c124b347e119fa79fee206
MD5 1c949934d7c5636524094c41095f4cbc
BLAKE2b-256 23e53ad357b4a8ad3bda04c30add3e8ba259e3af9e73186ec0d143644a86747d

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