Skip to main content

shorser

Shorter serializer. Helpful if you are using sqlitedict / filecache to store key value pairs.

Usage

To use shorser with std json backend:

from shorser import jdump, jload

bytes_buf = jdump(obj)
obj = jload(bytes_buf)

Compare with JSON

Value JSON (utf-8 encoded) shorser (with JSON backend) Saved bytes
None b'null' None 4
True b'true' b'y' 3
False b'false' b'n' 3
100 b'100' b'id' (store integer in little order bytes, with prefix i) a lot
'vnais' b'"vnais"' b'svnais' 1
b'dsads15' Not Support b'bdsads15'
{'a': 10} b'{"a": 10}' b'u{"a": 10}' -1
  • shorser is support bytes type;
  • integer type is unreadable;
  • in most cases, shorser is smaller than backend (like JSON);
  • in most cases, shorser is faster than backend (like JSON);

Metadata

Release files for shorser 0.1.1

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

Source distribution (sdist)

Source distribution for shorser 0.1.1
File Size Uploaded Provenance
shorser-0.1.1.tar.gz 3.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 6.5 kB

Release files / shorser-0.1.1.tar.gz

Download URL shorser-0.1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
51dfd94376d8b3e27c028cb59763951713671e054aef83d5b9e1b7dace45ac79
BLAKE2b-256 checksum
How to use checksums
73692862200e1c9aae7a24c607a360268cb738c9d273abdbe7e135e390b70102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.9.0 Windows/10

Release files / shorser-0.1.1-py3-none-any.whl

Download URL shorser-0.1.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66d206fcbb121f02aef1a9294fa1a15514201301e187838308071d0e25923fb4
BLAKE2b-256 checksum
How to use checksums
13cb6a896e9fbe7463a29d5b63b958081e309bd994831fe6b2862b9b3c4c5302
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.9.0 Windows/10

Security for shorser 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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