Utils to deal with pycountry and country_list packages
Project description
countries-utils
Utils used by the dunning service wrapper. See https://bitbucket.org/altf1be/countries-utils
- 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
usage
-
install the package from the pypi.org :
- install :
pip install countries-utils
- upgrade :
pip install countries-utils --upgrade
- install :
-
install the package from the test.pypi.org :
- install :
pip install -i https://test.pypi.org/simple/ countries-utils
- upgrade :
pip install -i https://test.pypi.org/simple/ countries-utils --upgrade
- install :
dependencies
- pycountry : https://pypi.org/project/pycountry
- country_list : https://pypi.org/project/country_list
Build the package
-
build the setup.py
python setup.py sdist bdist_wheel
-
upload the library on TEST pypi.org
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- Source : https://test.pypi.org/project/countries-utils
-
upload the library on PROD pypi.org
python -m twine upload dist/*
- Source : https://pypi.org/project/countries-utils
test the library
cd src
pipenv run python countries_utils_unittest.py
Documentation
- Packaging Python Projects https://packaging.python.org/tutorials/packaging-projects/
- Managing Application Dependencies https://packaging.python.org/tutorials/managing-dependencies/#managing-dependencies
- Packaging and distributing projects https://packaging.python.org/guides/distributing-packages-using-setuptools/#distributing-packages
License
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
countries-utils-1.0.7.tar.gz
(43.1 kB
view hashes)
Built Distribution
Close
Hashes for countries_utils-1.0.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04d6b6e52baafe968690e5d519b414836e40e7f99043d7d3d0a53ba3aa427742 |
|
MD5 | 3a79f7c4bf86305e1ac54075c112b880 |
|
BLAKE2b-256 | 1e49f7cdcec659cba9569b73d58f6d1470f7c7687d4b6d953f97833970f34277 |