country_acronyms
1.0.0
Ce package a été conçu pour tous ceux qui ont besoin de trouver toutes les traductions possibles, acronymes pour un nom de pays / un pays ISO spécifique.
Country_acronyms fournit le support pour le:
Le code vit dans un référentiel GIT sur GitHub, et les problèmes doivent également y être signalés.
Installez country_acronymes en fonctionnant:
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' ], ... }Ce package utilise le deep_translator, Pycounry et BS4. Big Up pour ceux-ci!
Le projet est autorisé sous la licence du MIT.