Table of Contents
Requirements
- Python >= 3.8
Installation
PyPi
$ pip3 install meendag
GitHub
$ git clone https://github.com/TheAwiteb/meendag/
$ cd meendag
$ python3 setup.py install
Usage
Get countrys
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
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
from meendag import countrys_filter
print(countrys_filter(lambda country: country.code == "SA"))
# [Country(code='SA', name='المملكة العربية السعودية')]
Get country by code
from meendag import get_country_by_code
print(get_country_by_code("SA"))
# Country(code='SA', name='المملكة العربية السعودية')
Get country by name
from meendag import get_country_by_name
print(get_country_by_name("المملكة العربية السعودية"))
# Country(code='SA', name='المملكة العربية السعودية')
Discussions
Question, feature request, discuss about meendag here
Issues
You can report a bug here
Security
If you discover any security related issues.
License
GNU Affero General Public License (AGPL). Please see License File for more information.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
meendag-0.0.0.tar.gz
(16.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
meendag-0.0.0-py3-none-any.whl
(19.5 kB
view details)
File details
Details for the file meendag-0.0.0.tar.gz.
File metadata
- Download URL: meendag-0.0.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72a807dc7ee3f74362910be4bd3a767842af43b373cba65e722bab58b5d5784f
|
|
| MD5 |
1a7da73746c0dc70199eeab8cd9a674c
|
|
| BLAKE2b-256 |
3793a415a65578beba3a1446fd6365dffab09111ff6f5705e9bef076f7c6d142
|
File details
Details for the file meendag-0.0.0-py3-none-any.whl.
File metadata
- Download URL: meendag-0.0.0-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f847c5a70864fefdb7d4fd138b56e9757f9f4abea300532f80a4c474f9af952b
|
|
| MD5 |
adc56e9073b3cf089a0dc0f113e99325
|
|
| BLAKE2b-256 |
2a9157a3fd79e6a461ee335dc808c5bd933d45f366ea9b030176c7e0fa87c116
|