Helpers to deal with basic requirements of an application built by www.alt-f1.be
Project description
altf1be_helpers
Helpers to deal with basic requirements of an application built by www.alt-f1.be. See https://bitbucket.org/altf1be/altf1be_helpers
The class ALTF1
- 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 on pypi.org :
- install :
pip install altf1be_helpers
- upgrade :
pip install altf1be_helpers --upgrade
- install :
-
install the package on test.pypi.org :
- install :
pip install -i https://test.pypi.org/simple/altf1be_helpers
- upgrade :
pip install -i https://test.pypi.org/simple/altf1be_helpers --upgrade
- install :
dependencies
- See requirements.txt
Build the package
-
build the setup.py
python3 setup.py sdist bdist_wheel
python3 -m pip install --user --upgrade twine
-
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/altf1be_helpers
-
upload the library on PROD pypi.org
python -m twine upload dist/*
- Source : https://pypi.org/project/altf1be_helpers
test the library
-
cd altf1be_helpers
-
python altf1be_helpers_unittest.py
-
locate the package
python -c "from altf1be_helpers import AltF1BeHelpers as _; print(_.__path__)"
does not work yet
-
list functions inside the module
- the package
python -c "import altf1be_helpers as _; print(dir(_))"
- the package
-
test the package
python -c "from altf1be_helpers import AltF1BeHelpers; text='éê à iïî'; print(f'{AltF1BeHelpers.unicode_to_ascii(text)}')"
- result :
ee a iii
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
Built Distribution
Hashes for altf1be_helpers-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23e1eb71a6f1757df0b21171cac26c41027751542db0069e9cc3332231bff728 |
|
MD5 | 2a943481632cc861ea342df523397809 |
|
BLAKE2b-256 | e33107a37c3d07f022eb37b596d890430d807e2973ab58c46887ce0f0569537c |