Skip to main content

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

Project description

License PyPi File Extension

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 see what has been actually saved. Currently, I have to open .pkl files with Qt Creator to decode the binary and usuall, with (no) success.

Example programme

from pklxml import dump, load

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

try:
  data = load('data.pklxml')
  print(data)
except OSError:
  data = {}

Contribute

Contribute to this repository if you can! Star 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.4.tar.gz (3.6 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.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pklxml-0.1.4.tar.gz
  • Upload date:
  • Size: 3.6 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.4.tar.gz
Algorithm Hash digest
SHA256 fc0032f776318dd39f83668051d53851fef752ee7e81f0791d95c12448da003b
MD5 bd696ac5ec60cd027119be7d73c5144c
BLAKE2b-256 65e370a14597e78eb81339dff10c782d5e5ab70764327b25c4fef0b6e2e5d865

See more details on using hashes here.

Provenance

The following attestation bundles were made for pklxml-0.1.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: pklxml-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a41dfb11b11a3245d8daf929ab5381117cdb5240811f006468bce0c1d66ef4dd
MD5 3db13a4fa593f58f4245f1d9a15500a9
BLAKE2b-256 f6ee6fcb24e08c2b218fa76da4a0d63b186810698c30b9905ad5e6b46fbddf7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pklxml-0.1.4-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