country_acronyms
1.0.0
แพ็คเกจนี้ทำขึ้นสำหรับทุกคนที่ต้องการค้นหาคำแปลที่เป็นไปได้ทั้งหมดคำย่อสำหรับชื่อประเทศ / ประเทศที่เฉพาะเจาะจง
Country_Acronyms ให้การสนับสนุนสำหรับ:
รหัสอาศัยอยู่ในที่เก็บ Git บน GitHub และต้องมีการรายงานปัญหาในนั้นเช่นกัน
ติดตั้ง 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, pycountry และ bs4 ใหญ่ขึ้นสำหรับสิ่งเหล่านั้น!
โครงการได้รับใบอนุญาตภายใต้ใบอนุญาต MIT