Skip to main content

A human-readable and secure XML-based alternative to pickle.

Project description

Project Metadata

  • Version: 0.1.3
  • PyPI: Published
  • File Extension: .pklxml

License

pklxml

pklxml, short for Python Pickle Extensible Markup Language Library, is a Python module and as a human-readable alternative to Pickle. Instead of saving data as a binary .pkl file, it saves data as an XML-based file called .pklxml. This makes it a lot more safer. The module uses the LXML module to parse .pklxml (XML) files.

The reason why I wanted to make this module is so that we (as humans) can easily what has been actually saved. I have to open .pkl files with Qt Creator to decode the binary and I (un)successfully managed to decode it.

I'm thinking of publishing this to PyPi, but maybe not so soon.

Example programme

from pklxml import dump, load

data = {'name': 'Alice', 'age': 30}
dump(data, 'data.pklxml')

loaded_data = load('data.pklxml')
print(loaded_data)

Contribute

Contribute to this repository if you can! Like my repository! Thanks!

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

pklxml-0.1.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

pklxml-0.1.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pklxml-0.1.3.tar.gz.

File metadata

  • Download URL: pklxml-0.1.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pklxml-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b05a61bcf9b1d25fc612ea6a776b829bf01e8e43d03e913a6cd5fffbba02bfbd
MD5 09d40d18f35d3a59cbb775dfcfbcc736
BLAKE2b-256 953ffd9f85edfdde0315506959b6d44c27efaf27e3305015a4380bf6adfdba09

See more details on using hashes here.

Provenance

The following attestation bundles were made for pklxml-0.1.3.tar.gz:

Publisher: python-publish.yml on RAPTOR7762/pklxml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pklxml-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pklxml-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pklxml-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c1157da1675c273a90a46a990481900e772fd0a373b0fb90d09204d0b415931c
MD5 f39ad64efabb83a1c71f32f66f1f97c5
BLAKE2b-256 85332f10246756ac07ed53f0c13b924d463b08502f2fdac9cd513df490ddbabe

See more details on using hashes here.

Provenance

The following attestation bundles were made for pklxml-0.1.3-py3-none-any.whl:

Publisher: python-publish.yml on RAPTOR7762/pklxml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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