Skip to main content

Run tests PyPI version

PickleCryptor

A simple library for serializing / compressing / encrypting Python objects all in two functions on one object.

Installation

pip install picklecryptor

Simple Usage Example

>>> from picklecryptor import *
>>> p = PickleCryptor(password='hello world')
>>> d = {'a' : 'hi'}
>>> s = p.serialize(d)
>>> print(s)
b'{\xa9\xbc\x8e]N\xf1\xa1\xefk\xeb5\x99\\\xd1\xca\x01\x8d6\x81\x12 \x80\xeew=\xeeq\xa3\xc9B\x08'
>>> print(p.deserialize(s))
{'a': 'hi'}

In this example we create a PickleCryptor object that will use the given password for encryption/decryption. Using the default params for the encryption/compression parameters leads to AES ECB encryption along with zlib compression.

Some other types of compression and encryption are natively supported. Just pass in the enum values corresponding with what you'd like to PickleCryptor. Check the docs for more information.

See https://csm10495.github.io/picklecryptor/ for full API documentation.

License

MIT License

Metadata

Release files for picklecryptor 0.0.5

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

Source distribution (sdist)

Source distribution for picklecryptor 0.0.5
File Size Uploaded
picklecryptor-0.0.5.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for picklecryptor 0.0.5
File Interpreter ABI Platform
picklecryptor-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / picklecryptor-0.0.5.tar.gz

Download URL picklecryptor-0.0.5.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bc0bbfb36acc8d68027c481a2d9ff6b94caae36ad64cda2492ca13062a2a5295
BLAKE2b-256 checksum
How to use checksums
ea0d53430bce929509f69906ec2b9e933e7b037d6b16089ec55b4133a5cf25bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / picklecryptor-0.0.5-py3-none-any.whl

Download URL picklecryptor-0.0.5-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bed5df5490f86f754062b44c3d17d69d6b13b38c29327404b6311aa662e7dd5a
BLAKE2b-256 checksum
How to use checksums
d7930812a7b6550c2f8d4f3dc295c64ec5f6409c183dae9de3b5cf6ca623fa51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.2

2 release files

0.0.1

2 release files

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