Skip to main content

ja2sci

ja2sci converts Japanese name into scientific name. If the given name is not on the internal dictionary, it automatically searches the wikipedia.

生物の和名を学名に変換するライブラリです。 内部辞書に学名が登録されていない場合、自動的に Wikipedia から学名を取得します。

How to use

As a CLI tool

$ pip install ja2sci
$ ja2sci ニホンカワウソ
Lutra lutra nippon

Inside python script

>>> import ja2sci
>>> ja2sci.translate('ユーラシアカワウソ')
'Lutra lutra'

Advanced usage: asynchronous translation

>>> import ja2sci
>>> import asyncio
>>> loop = asyncio.get_event_loop()
>>> results = loop.run_until_complete(asyncio.gather(
...     ja2sci.async_translate('ホンドテン'), # Not on internal dictionary
...     ja2sci.async_translate('ミンク')      # Not on internal dictionary
... ))
>>> print(results)
['Martes melampus melampus', 'Neovison vison']

Metadata

Release files for ja2sci 0.1.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 ja2sci 0.1.3
File Size Uploaded
ja2sci-0.1.3.tar.gz 1.5 MB Details

Release files / ja2sci-0.1.3.tar.gz

Download URL ja2sci-0.1.3.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
ce148cfdf9cb5ce46fbef1e43e83f2f709c8e5b51f168d06a242e8999d45269f
BLAKE2b-256 checksum
How to use checksums
2487bd77b21439e652b2f8e3cdc4b3e8a1c9906dd708a55b4d0d3fdb3645b4d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

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