country_acronyms
1.0.0
このパッケージは、すべての可能な翻訳を見つける必要があるすべての人のために作られました。特定の国名 /カントリーISOの頭字語です。
Country_Acronymsは以下のサポートを提供します
コードはGitHubのGitリポジトリに存在し、問題も報告する必要があります。
実行してcountry_acronymsをインストールします:
pip install country_acronyms from country_acronyms import get_supported_languages ,
get_country_acronyms ,
get_country_acronyms_iso ,
get_all_country_acronyms
# get available languages
get_supported_languages ()
> >> { 'afrikaans' : 'af' , 'albanian' : 'sq' , ... , 'yoruba' : 'yo' , 'zulu' : 'zu' }
# acronyms for given country name
get_country_acronyms ( "Austria" )
> >> { 'af' : 'Oostenryk' , ... , 'zu' : 'E-Austria' }
# acronyms for given country iso
get_country_acronyms_iso ( "it" )
> >> { 'af' : 'Italië' , ... , 'zu' : 'Italy' }
# acronyms for given country iso
get_country_acronyms_iso ( "usa" )
> >> { 'af' : 'Verenigde State' , ... , 'zu' : 'iziwe Ezihlangene' }
# getting all country acronyms by scraping wiki
get_all_country_acronyms ()
> >> { 'Abkhazia' : [ 'Abcasia' , ... , 'Apxazeti' ], , 'Afghanistan' : [ 'Æfganisthanaya' , ... , 'l-Afghanistan' ], ... }このパッケージでは、deep_translator、パイカーリー、BS4を使用しています。それらのためにビッグアップ!
このプロジェクトは、MITライセンスに基づいてライセンスされています。