Skip to main content

Utils to deal with pycountry and country_list packages

Project description


Utils used by the dunning service wrapper. See

  • Get the list of countries stored in the field "place" in transactions stored in twikey.
  • The places are written either in FR, EN or NL.
  • The method returns a List of places in English and a Set of those places if the places are using the above-mentioned languages


  • install the package from the :

    • install : pip install countries-utils
    • upgrade : pip install countries-utils --upgrade
  • install the package from the :

    • install : pip install -i countries-utils
    • upgrade : pip install -i countries-utils --upgrade


Build the package

test the library

  • cd countries_list

  • pipenv run python

  • locate the package

    • python -c "import countries_utils as _; print(_.__path__)"
  • list functions inside the module

    • the package python -c "import countries_utils as _; print(dir(_))"
  • test the package

    • python -c "import countries_utils, pandas as pd, numpy as np; print(countries_utils.get_list_of_countries_in_text( pd.DataFrame(np.array(['Belgium', 'Frankrijk', 'Royaume-Uni']), columns=['place']), place='place', languages_to_check=['en', 'fr', 'nl'] ) )"
    • result : (['Belgium', 'France', 'United Kingdom'], {'United Kingdom', 'France', 'Belgium'})



Copyright (c) ALT-F1 SPRL, Abdelkrim Boujraf. All rights reserved.

Licensed under the EUPL License, Version 1.2.

See LICENSE in the project root for license information.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for countries-utils, version 1.0.21
Filename, size File type Python version Upload date Hashes
Filename, size countries_utils-1.0.21-py2.py3-none-any.whl (10.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size countries_utils-1.0.21.tar.gz (44.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page