Python bindings for the Lingua(LanguageDetect) Rust library
Reason this release was yanked:
公式版が公開されたため
Project description
Lingua-py
Lingua-py is an Python wrapper for the Rust lingua crate with PyO3/Maturin.
Summary
Lingua is a NIF-based bridge for the lingua Rust language detection library.
Usage
In imitation of Upstream, introduce basic usage.
Alternatively please see tests
section.
10.1 Basic usage
languages: list[Language] = [Language.English, Language.Japanese]
detector: LanguageDetector = LanguageDetectorBuilder.from_languages(
languages
).build()
expected: Language = Language.Japanese
actual: Language = detector.detect_language_of("これは何語ですか?")
assert actual == expected
pytest command
rye sync --no-lock
rye run python -m pytest -s -vv python/tests/small_usage/test_basic.py::test_basic
License
Apache License v2, and lingua-rs is also Apache License v2.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file lingua_py-0.1.1.tar.gz
.
File metadata
- Download URL: lingua_py-0.1.1.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45c15d98ec277e571121819d35cbf83bfac09f5a62a97137807d226f87bb1351 |
|
MD5 | a428359708bed9d7df890a6612e27c6d |
|
BLAKE2b-256 | bcdbd85b2e047e29d53c5e513e1170274ab0cc017042e3982754a3c8e27583e1 |
File details
Details for the file lingua_py-0.1.1-cp311-abi3-win_amd64.whl
.
File metadata
- Download URL: lingua_py-0.1.1-cp311-abi3-win_amd64.whl
- Upload date:
- Size: 73.0 MB
- Tags: CPython 3.11+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f1b137cef8933c56c3c0b4c87153fdff017585064e51e11d1aed0e5aa0b8732 |
|
MD5 | df179e655047ef35e72f0cc549469797 |
|
BLAKE2b-256 | 8fe2d7db58f7c911a22b466ec814810d4b8e8176487259635b73fd65cf813175 |
File details
Details for the file lingua_py-0.1.1-cp311-abi3-win32.whl
.
File metadata
- Download URL: lingua_py-0.1.1-cp311-abi3-win32.whl
- Upload date:
- Size: 72.9 MB
- Tags: CPython 3.11+, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce7712a55e19b1e38eadd9a05f05c3021395c9d0e2d13234c826baf343600256 |
|
MD5 | 700ffbfb95378d5e058dcdbb2adad9e5 |
|
BLAKE2b-256 | da5d61b9a2044d53cde2521f3ba45fd623ae4dc0613e430102c0c7947ed5baac |
File details
Details for the file lingua_py-0.1.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: lingua_py-0.1.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 74.4 MB
- Tags: CPython 3.11+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5753cf2a14fac2581578c01bf8de7ef1fdbadbe80cc1cef0a4a6248181740c3 |
|
MD5 | e13ef948974f8c0af70b3f7eb85e0a51 |
|
BLAKE2b-256 | c1a1e4a0561114064b638ca9d900198458badabe56dbcb0f0c3a899205119a76 |
File details
Details for the file lingua_py-0.1.1-cp311-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
.
File metadata
- Download URL: lingua_py-0.1.1-cp311-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 74.7 MB
- Tags: CPython 3.11+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e6848882c0236b57bba487735d580f6361b9cbca20fac78257101da836a45c8 |
|
MD5 | 3d2eb40efbc342f57b443219493a8ef7 |
|
BLAKE2b-256 | db3b08a89f2f899a41253ff12b7977d46b55f10a15ca9425150a6984880838ae |
File details
Details for the file lingua_py-0.1.1-cp311-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
.
File metadata
- Download URL: lingua_py-0.1.1-cp311-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 74.7 MB
- Tags: CPython 3.11+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de85a74e5ac53044ee491ee0def843b9033f45ccafcac6f91e2d145e9c1dc8bb |
|
MD5 | 3ed37a7d7724375227f70f97d34b80cb |
|
BLAKE2b-256 | 47067edaca0403ab53155abdee5ed950009ac8be3ea564fa16d612c7a3b30d2f |
File details
Details for the file lingua_py-0.1.1-cp311-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
.
File metadata
- Download URL: lingua_py-0.1.1-cp311-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 74.3 MB
- Tags: CPython 3.11+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88cac35d2832f6e94211df00bd355ef414998eab3bafaf645ae1585f680e253a |
|
MD5 | 256e681cfacc14b6a2fede96ca44403f |
|
BLAKE2b-256 | 9ee04dcb532ca7c8cf3b950ff876d7846bd9b64a130cc39057336c1c51dca9b8 |
File details
Details for the file lingua_py-0.1.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: lingua_py-0.1.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 74.3 MB
- Tags: CPython 3.11+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f214e79d2fbf614c6fe978bd39508564a4137fc62a05ff7e007474f32941a26 |
|
MD5 | 044e9fa3b734d60e6cdd996c0c12798a |
|
BLAKE2b-256 | bd0ba132b722671316e7f0f296e320c1953ba7bf730fde68317b05bb423811d4 |
File details
Details for the file lingua_py-0.1.1-cp311-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
.
File metadata
- Download URL: lingua_py-0.1.1-cp311-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
- Upload date:
- Size: 74.4 MB
- Tags: CPython 3.11+, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bc7895261c115d6487a7dc9d146c5f331b565e4e8a00191c3f2b70717afb4c2 |
|
MD5 | f50c1fdef25071a547ef170358ffe4d8 |
|
BLAKE2b-256 | 49798daad41fc41127b03c7d47a1351f92dd4fc75c8f0ddaacbad3e6d871f2a1 |
File details
Details for the file lingua_py-0.1.1-cp311-abi3-macosx_11_0_arm64.whl
.
File metadata
- Download URL: lingua_py-0.1.1-cp311-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 73.8 MB
- Tags: CPython 3.11+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3133faacaa84a85bc2e6b8d4e9fc18de6046d1218495715eb3dd66872448ba0b |
|
MD5 | 557b53024c973c1d4ee7296eb7bd717e |
|
BLAKE2b-256 | 7c37f1b47619f46e277f2effdb3037ba7e6897df0b93e09251c1d8b99f1bd4de |
File details
Details for the file lingua_py-0.1.1-cp311-abi3-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: lingua_py-0.1.1-cp311-abi3-macosx_10_7_x86_64.whl
- Upload date:
- Size: 73.3 MB
- Tags: CPython 3.11+, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1938a5a4716c82160f4eed5659d82334af9811fbaec16c7a109b6ef989689687 |
|
MD5 | eb9e2301a4428d5d84779a2b1b70fb7b |
|
BLAKE2b-256 | 9f2131eaefdc5c7d5a5cfcb45426b9999897a99891020c0de528b305ef604b0a |