Skip to main content

altf1be_json_helpers

Helpers to deal with basic requirements of the management of a JSON File: Load, save, save with datetime. The library is built by www.alt-f1.be. See https://bitbucket.org/altf1be/altf1be_json_helpers

The class AltF1beJSON counts a limited amount of methods

  • Load a JSON file
  • Save a JSON file and create the directory where to store the JSON file if it does not exists
  • Save a JSON file appended with a date time; e.g. 2020-06-19_20-45-42 (format YYYY-MM-DD_HH-MM-SS)

usage

  • install the package on pypi.org :

    • install : pip install altf1be_json_helpers
    • upgrade : pip install altf1be_json_helpers --upgrade
  • install the package on test.pypi.org :

    • install : pip install -i https://test.pypi.org/simple/altf1be_json_helpers
    • upgrade : pip install -i https://test.pypi.org/simple/altf1be_json_helpers --upgrade

dependencies

Build the package

test the library

  • cd altf1be_json_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_json_helpers as _; print(dir(_))"
  • test the package

    • python -c 'import os;from altf1be_json_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.

Metadata

Release files for altf1be-json-helpers 1.0.4

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

Source distribution (sdist)

Source distribution for altf1be-json-helpers 1.0.4
File Size Uploaded Provenance Actions
altf1be_json_helpers-1.0.4.tar.gz 9.2 kB Without provenance Details for altf1be_json_helpers-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for altf1be-json-helpers 1.0.4
File Interpreter ABI Platform Actions
altf1be_json_helpers-1.0.4-py2.py3-none-any.whl Python 3, Python 2 none any Details for altf1be_json_helpers-1.0.4-py2.py3-none-any.whl

Total release size: 19.0 kB

Release files / altf1be_json_helpers-1.0.4.tar.gz

Download URL altf1be_json_helpers-1.0.4.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dc6967136c2be31b43962fd5cdc1906444298732396d9b9c1de06e74f7a4b977
BLAKE2b-256 checksum
How to use checksums
b0474dd9fd4d9a81056de7ea9c1d1ef1269cbe3e6f97ee3290f8c05e6cd73c5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Release files / altf1be_json_helpers-1.0.4-py2.py3-none-any.whl

Download URL altf1be_json_helpers-1.0.4-py2.py3-none-any.whl
Size 9.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4b3a98c9d08ea8816dfe48e8aaa43008f0a5f3d15d2438b52e3c20835b43b83c
BLAKE2b-256 checksum
How to use checksums
d3164051c080f417587a400c893de6adfd254ea41f7f4aabc2efdd4e682b9b26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Security for altf1be-json-helpers 1.0.4

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