Skip to main content

polars-whichlang

PyPI version

This polars plugin is a wrapper for whichlang, a very fast and reasonably accurate language identification library written in rust.

It currently supports the following languages:

  • Arabic (ara)
  • Dutch (nld)
  • English (eng)
  • French (fra)
  • German (deu)
  • Hindi (hin)
  • Italian (ita)
  • Japanese (jpn)
  • Korean (kor)
  • Mandarin (cmn)
  • Portuguese (por)
  • Russian (rus)
  • Spanish (spa)
  • Swedish (swe)
  • Turkish (tur)
  • Vietnamese (vie)

Installation

pip install polars-whichlang

Examples

import polars as pl
from polars_whichlang import detect_lang

df = pl.DataFrame(
    {
        "index": [1, 2, 3, 4],
        "text": [
            "This is a test.", 
            "Đây là một bài kiểm tra.", 
            "Dies ist ein Test", 
            "这是一个测试"
        ],
    }
)

df.with_columns(detect_lang('text').alias('lang'))
shape: (4, 3)
┌───────┬──────────────────────────┬──────┐
│ index ┆ text                     ┆ lang │
│ ---   ┆ ---                      ┆ ---  │
│ i64   ┆ str                      ┆ str  │
╞═══════╪══════════════════════════╪══════╡
│ 1     ┆ This is a test.          ┆ eng  │
│ 2     ┆ Đây là một bài kiểm tra. ┆ vie  │
│ 3     ┆ Dies ist ein Test        ┆ deu  │
│ 4     ┆ 这是一个测试               ┆ cmn  │
└───────┴──────────────────────────┴──────┘

Metadata

Release files for polars-whichlang 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 polars-whichlang 0.1.3
File Size Uploaded Provenance Actions
polars_whichlang-0.1.3.tar.gz 28.4 kB Without provenance Details for polars_whichlang-0.1.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for polars-whichlang 0.1.3
File Actions
polars_whichlang-0.1.3-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for polars_whichlang-0.1.3-cp310-abi3-win_amd64.whl
polars_whichlang-0.1.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for polars_whichlang-0.1.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
polars_whichlang-0.1.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for polars_whichlang-0.1.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
polars_whichlang-0.1.3-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for polars_whichlang-0.1.3-cp310-abi3-macosx_11_0_arm64.whl
polars_whichlang-0.1.3-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for polars_whichlang-0.1.3-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 24.4 MB

Release files / polars_whichlang-0.1.3.tar.gz

Download URL polars_whichlang-0.1.3.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fa88c6417a78b4142a9e100f04c26dc1609faa510cdb7914854a54b9dc805dbe
BLAKE2b-256 checksum
How to use checksums
af26fc3a1f2df0f2a7f853901435e23af722e2b76c9c0a5fc069b53234b65813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

Release files / polars_whichlang-0.1.3-cp310-abi3-win_amd64.whl

Download URL polars_whichlang-0.1.3-cp310-abi3-win_amd64.whl
Size 4.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
1f6dc6a39eb59205826ce73c20b59d1c315bf18cb94c9ea94bfff58bd6316d5d
BLAKE2b-256 checksum
How to use checksums
9f058d9e2f31bfab77666d5d73cfb8301734a4ec997a71eb04bd0911dfd8de06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

Release files / polars_whichlang-0.1.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL polars_whichlang-0.1.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 5.3 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
c961712805bd81a3ebd33d29258935bb39884df594197cca97fac1d29395da87
BLAKE2b-256 checksum
How to use checksums
b4551797cfa892ae6badf743841bca4c33d36992ebc899c18c0eaaa4d02e6233
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

Release files / polars_whichlang-0.1.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL polars_whichlang-0.1.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 5.3 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
7c6f992625f58b6ef03e16b8b7e83423c1c67074308b3d4dd5d8bf84fb007560
BLAKE2b-256 checksum
How to use checksums
1a6e80df71f6da3a1b4fefe9ad5ef8294b3c1a603ca349d5ec614e002eb13a58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

Release files / polars_whichlang-0.1.3-cp310-abi3-macosx_11_0_arm64.whl

Download URL polars_whichlang-0.1.3-cp310-abi3-macosx_11_0_arm64.whl
Size 4.4 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cfed752d146a0ffd8e4f5f7a00d478e3bf3570f4e953744b6d14dc9a8b6b1f42
BLAKE2b-256 checksum
How to use checksums
24195a0c8f8b7c435d69118922140802b2415ea46301c224dd789fb7781406fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

Release files / polars_whichlang-0.1.3-cp310-abi3-macosx_10_12_x86_64.whl

Download URL polars_whichlang-0.1.3-cp310-abi3-macosx_10_12_x86_64.whl
Size 4.6 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
1671d0356182798bc4e9429f01408368ed7c7acbb7e0bb9406a4935b262f3aad
BLAKE2b-256 checksum
How to use checksums
fd6c116eecce3c2a49eb45a71a120212e2d3f788dde286bcef218348fc1dc4a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

Security for polars-whichlang 0.1.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.

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