A human-readable and secure XML-based alternative to pickle.
Project description
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pklxml-0.1.5.tar.gz.
File metadata
- Download URL: pklxml-0.1.5.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a2bd3f9f8f07ef011098789971557d1da5e70afba2a3c5ea22d956e405a609c
|
|
| MD5 |
3d8bf6b252d0038f3dc8d3dae0460970
|
|
| BLAKE2b-256 |
f178121c6b47e7bb8750a7e3dedc75ce6e324f505614549d27d61f5c5e15e806
|
Provenance
The following attestation bundles were made for pklxml-0.1.5.tar.gz:
Publisher:
python-publish.yml on RAPTOR7762/pklxml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pklxml-0.1.5.tar.gz -
Subject digest:
4a2bd3f9f8f07ef011098789971557d1da5e70afba2a3c5ea22d956e405a609c - Sigstore transparency entry: 223643890
- Sigstore integration time:
-
Permalink:
RAPTOR7762/pklxml@65e78dd083997e03d8578cb161f2b124e8973c21 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/RAPTOR7762
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@65e78dd083997e03d8578cb161f2b124e8973c21 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pklxml-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pklxml-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbf3e75361cfdec8c10b00dbb50e09d2dcc21ef7b7c3a2dd510257007b070cf5
|
|
| MD5 |
d2228d088ccb4091a2bd10722cea4d27
|
|
| BLAKE2b-256 |
fed255f6f661d62b30ced430c0e1854b6be45e5e0726bc026b638cd2372eb805
|
Provenance
The following attestation bundles were made for pklxml-0.1.5-py3-none-any.whl:
Publisher:
python-publish.yml on RAPTOR7762/pklxml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pklxml-0.1.5-py3-none-any.whl -
Subject digest:
bbf3e75361cfdec8c10b00dbb50e09d2dcc21ef7b7c3a2dd510257007b070cf5 - Sigstore transparency entry: 223643896
- Sigstore integration time:
-
Permalink:
RAPTOR7762/pklxml@65e78dd083997e03d8578cb161f2b124e8973c21 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/RAPTOR7762
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@65e78dd083997e03d8578cb161f2b124e8973c21 -
Trigger Event:
release
-
Statement type: