Skip to main content

alkana

PyPI version

A tool to get the katakana reading of an alphabetical string.

Installing

Python 3 or higher is required.

From pip

python3 -m pip install -U alkana

Clone from GitHub

$ git clone https://github.com/cod-sushi/alkana.py
$ cd alkana.py
$ python3 -m pip install -U .

Example

Python import

import alkana

print(alkana.get_kana("Hello"))
print(alkana.get_kana("World"))
print(alkana.get_kana("abcdefg"))

Output of above example is:

ハロー
ワールド
None

If the reading is not exist, Returns None.

Command line

$ alkana hello
ハロー
$ alkana world
ワールド
$ alkana abcdefg

If the reading is not exist, there is no output.

External file

Alkana can extend the dictionary.

sample.csv

hogehoge,ホゲホゲ
piyopiyo,ピヨピヨ
...
import alkana
alkana.add_external_data('./sample.csv')

print(alkana.get_kana('hogehoge'))  # ホゲホゲ

Copyrights

Alphabetical word - katakana dictionary's data is from bep-eng.dic.

Bilingual Emacspeak Project (c) 1999-2002 Bilingual Emacspeak Project

Lisence

GPLv2

Metadata

Release files for alkana 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alkana 0.0.3
File Size Uploaded Provenance
alkana-0.0.3.tar.gz 370.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for alkana 0.0.3
File Interpreter ABI Platform
alkana-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 741.2 kB

Release files / alkana-0.0.3.tar.gz

Download URL alkana-0.0.3.tar.gz
Size 370.0 kB
Tags Source
SHA-256 checksum
How to use checksums
95f40ab8d0a9446d7767bb71a22a64ffa032f5da7aa46aa6cb3afc93299fe6be
BLAKE2b-256 checksum
How to use checksums
79c6d46afa94e24368f1f0014a861a86da2a2d26b0875da7a00a8ec41f4ba47d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.7.1 requests/2.9.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.5.2

Release files / alkana-0.0.3-py3-none-any.whl

Download URL alkana-0.0.3-py3-none-any.whl
Size 371.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e9bd5502522cc93beaec44b7ae14e8bb409b055bc07d5c054fff3f93f53dd85
BLAKE2b-256 checksum
How to use checksums
cd4d7be66b63787ff4a9008141ebd181f16e993bee91f2c42f0dd32d2aa8b0ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.7.1 requests/2.9.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.5.2

Security for alkana 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page