Skip to main content

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

  • management of a JSON File: Load, save, save with datetime.

usage

  • install the package on pypi.org :

    • install : pip install altf1be_helpers
    • upgrade : pip install altf1be_helpers --upgrade
  • 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

dependencies

Build the package

test the library altf1be_helpers

  • cd altf1be_helpers

  • python altf1be_helpers_unittest.py

  • python altf1be_json_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(_))"
  • test the package

    • python -c "from altf1be_helpers import AltF1BeHelpers; text='éê à iïî'; print(f'{AltF1BeHelpers.unicode_to_ascii(text)}')"
    • result : ee a iii

test the library altf1be_helpers

  • cd altf1be_helpers

  • python altf1be_json_helpers_unittest.py

  • locate the package

    • python -c "from altf1be_json_helpers import AltF1BeJSONHelpers as _; print(_.__path__)" does not work yet
  • list functions inside the module

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

    • python -c 'import os;from altf1be_helpers import AltF1BeJSONHelpers; altF1BeJSONHelpers = AltF1BeJSONHelpers();data = altF1BeJSONHelpers.load(os.path.join("data", "altf1be_sample.json"));print(data)'
    • result : {"name": "altf1be_json_helpers"}

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.

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

altf1be_helpers-2.2.1.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

altf1be_helpers-2.2.1-py2.py3-none-any.whl (15.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file altf1be_helpers-2.2.1.tar.gz.

File metadata

  • Download URL: altf1be_helpers-2.2.1.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/49.6.0.post20200917 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for altf1be_helpers-2.2.1.tar.gz
Algorithm Hash digest
SHA256 9c179c629e1333a17761b30fc77bc1a5f9871149113c0dabba8087341fdcf585
MD5 ae09fe2fc906f31d768e08b2bb029435
BLAKE2b-256 2254e775a28048e16c6ff34973590f20a61cde27c245aa516b67e0ea9de9340e

See more details on using hashes here.

File details

Details for the file altf1be_helpers-2.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: altf1be_helpers-2.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/49.6.0.post20200917 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for altf1be_helpers-2.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 46ea34924cbb0d59dc5ef52d7e85339b84caa2deac162375b2a802f75d6bb67f
MD5 d8f59d2fcd3e5f034f2a82aa95f05c85
BLAKE2b-256 f31dc87dc76373481404ed9b4bfb13f5e9bc997ccb2c043bbf202fc90ede892e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page