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

import HandyToolsPy.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.

import HandyToolsPy.Translator as tr

text = "你好"
res = tr.translate_text(text, "en")
print(res)

output:

'Hello'

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.2.tar.gz (17.2 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.2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: handytoolspy-0.1.2.tar.gz
  • Upload date:
  • Size: 17.2 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.2.tar.gz
Algorithm Hash digest
SHA256 d306baac8628ab2211a1e1dc0bebf41cd9759cfe0f706f519adc6b59e8e0c9f2
MD5 b507b7ba9ffe551307ac8121ce46a52f
BLAKE2b-256 6732ffb0ddf9488f5cd7179a051126bcb511a76132891bb753a0e06588839390

See more details on using hashes here.

File details

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

File metadata

  • Download URL: HandyToolsPy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d4f794398682b524c2293e5fb3354ae05ae5a99a78343e80ba26af0bd3c318d3
MD5 42eb0c2a690d0705a2d02ebf0bf2200a
BLAKE2b-256 acd39f5ae0076a66a2706a43d6980a4e119b75f40dac9e611a14171b96438785

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