An open API service indexing awesome lists of open source software.

https://github.com/theawiteb/meendag

An unofficial SDK for Meendag help you to find name of the owner of the number
https://github.com/theawiteb/meendag

owner-number phone-number

Last synced: 5 months ago
JSON representation

An unofficial SDK for Meendag help you to find name of the owner of the number

Awesome Lists containing this project

README

          


Meendag-sdk


An unofficial SDK for Meendag help you to find name of the owner of the number



PyPI - Python Version


PyPI


License




Upload Python Package




Code style: black

Table of Contents



  1. Requirements


  2. Installation



  3. Usage


  4. Discussions

  5. Issues

  6. Security

  7. License

## Requirements

* [Python](https://Python.org/) >= 3.8

## Installation

### PyPi

```bash
$ pip3 install meendag
```

### GitHub

```bash
$ git clone https://github.com/TheAwiteb/meendag/
$ cd meendag
$ python3 setup.py install
```

## Usage

### Get countrys
```python
from meendag import get_countrys

countrys = get_countrys()

for country in countrys:
print(
f"Country name: {country.name} {country.code}"
)
# Country name: المملكة العربية السعودية SA
# Country name: الأردن JO
# Country name: الامارات العربية المتحدة AE
# Country name: البحرين BH
# ...
```

### Get owner
```python
from meendag import get_country_by_code, get_owner
print(get_owner("0138823616", get_country_by_code("SA")))
# Owner(name='Intertek', number='0138823616', country=Country(code='SA', name='المملكة العربية السعودية'))
```

### Countrys filter
```python
from meendag import countrys_filter
print(countrys_filter(lambda country: country.code == "SA"))
# [Country(code='SA', name='المملكة العربية السعودية')]
```

### Get country by code
```python
from meendag import get_country_by_code
print(get_country_by_code("SA"))
# Country(code='SA', name='المملكة العربية السعودية')
```

### Get country by name
```python
from meendag import get_country_by_name
print(get_country_by_name("المملكة العربية السعودية"))
# Country(code='SA', name='المملكة العربية السعودية')
```

## Discussions
Question, feature request, discuss about meendag [here](https://github.com/TheAwiteb/meendag/discussions)

## Issues
You can report a bug [here](https://github.com/TheAwiteb/meendag/issues)

## Security

If you discover any security related issues.

## License

GNU Affero General Public License (AGPL). Please see [License File](LICENSE) for more information.