Skip to main content

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 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

dependencies

Build the package

test the library

  • cd countries_list

  • pipenv run python countries_utils_unittest.py

  • 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'})

Documentation

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.

Metadata

Release files for countries-utils 1.0.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for countries-utils 1.0.21
File Size Uploaded Provenance Actions
countries_utils-1.0.21.tar.gz 44.4 kB Without provenance Details for countries_utils-1.0.21.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for countries-utils 1.0.21
File Interpreter ABI Platform Actions
countries_utils-1.0.21-py2.py3-none-any.whl Python 2, Python 3 none any Details for countries_utils-1.0.21-py2.py3-none-any.whl

Total release size: 54.5 kB

Release files / countries_utils-1.0.21.tar.gz

Download URL countries_utils-1.0.21.tar.gz
Size 44.4 kB
Tags Source
SHA-256 checksum
How to use checksums
722852bad11f2c1e7897e3b5c907a54d4a1b95eaa19d0f8bffc0261b0ce0e4a8
BLAKE2b-256 checksum
How to use checksums
f07d736ebb084239d2c9d0cf47ac949c705254467d3fdd37b54aca5cef5e6d8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

Release files / countries_utils-1.0.21-py2.py3-none-any.whl

Download URL countries_utils-1.0.21-py2.py3-none-any.whl
Size 10.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9ced497577e0ee15bcfd3589a110520716cc05d6f8d62d4522b50cbbbe045cf3
BLAKE2b-256 checksum
How to use checksums
76e37491666707581897d36d0235c78207c65b1bae5a2f271feab9d0a6c9d163
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

Security for countries-utils 1.0.21

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page