A neat country call code retriever
Project description
Welcome to PyCountryCode's documentation!
What it is?* I have always loved knowing stuff. I love knowledge, it is my first love before anything else. In every kind of setup I finf myself in I am always participating because I almost always have an idea about most things. This love of knowledge also made it easy for me to know more country telephone codes.
However, the truth is I couldn't cram them all the country codes and retrieve them from my mind everytime it became necessary. I knew by heart those of the most popular countries that includes Russia (+7), UK (+44), USA (+1), Australia (+61) and of course Zimbabwe amongst many others.
Why? Someone wanted to know what code +52 was for which country, I didn't know, I was embarrassed at myself. I challenged myself by writing this package so I and anyone else can use to get the country calling code of any country and also to get a country after passing in a calling code you know but are not sure about the country of origin.
Inspiration I wanted to write something that others could find useful.
Installation
- pip install pycountrycode
Importing the 'code' function
- from pycountrycode.pycountrycode import code
code('Zimbabwe') '+263' code('New Zealand') ***'+64' code('Peru') '+51' code('Madagascar') '+261' ***code('Russia') '+7' code('Australia') '+61' code('Israel') '+972'
importing the phoneCode function.
- from pycountrycode.countrycode import phoneCode
- phoneCode('+52')
- 'Mexico'
- phoneCode('+56')
- 'Easter Island'
- phoneCode('+1')
- 'United States of America'
- phoneCode('+7')
- 'Russia'
- phoneCode('+44')
- 'Britain'
- phoneCode('+86')
- 'China'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pycountrycode-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d5c6e36f789ac14aad447e68c77d87472acf20d2aba1a2c69dfea9d6d46db4a |
|
MD5 | 10c9035fbaa3077ee816f94eb73fa233 |
|
BLAKE2b-256 | 2e3ec89a15409dd8913eac68560d544e1f79ee8a2148085625d433c7b18d19f9 |