Metadata-Version: 2.4
Name: lang2country
Version: 1.0.0
Summary: Detect language and country from text
Author: Kiarash
Author-email: kiatimasi@gmail.com
Requires-Python: >=3.8
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: langdetect (>=1.0.9,<2.0.0)
Description-Content-Type: text/markdown

# lang2country
A Python package to detect language and country from text.

---
## Installation
Install using pip:
```bash 
    pip install lang2country
```

## Usage
1️⃣ Detect Language

```bash 
    from lang2country import detect_language
    
    lang = detect_language("Hello my name is lang2country")
    print(lang)
    # Output: en
```

2️⃣ Detect Country

```bash 
    from lang2country import detect_country
    
    country = detect_country("Hello my name is lang2country")
    print(country)
    # Output: United States
```

## Dependency
This package uses:

```
python >=3.8
langdetect >=1.0.9
