Skip to main content

Version Python versions Build Status License

b64-stream

b64-stream is a Python binding for the b64-stream. This is Base64 stream encode/decode library.

Installation

pip install b64-stream

Getting started

b64-stream implements classes:

  1. Base64StreamDecode
  2. Base64StreamEncode

Every class has:

  1. __init__(buffer_size: int = 2000) - buffer_size used by create buffer for update method for new encoded/decoded chunk.
  2. buffer_size - size of buffer
  3. total - total encoded/decoded bytes
  4. clear() - reset state to initial
  5. update(chunk) - processing chunk
  6. finalize() - end of processing

Usage examples

Decode data

from b64_stream import Base64StreamDecode

chunks = [b'MTIzNDU2', b'NzEyMzQ1Njc=']
result = []
decoder = Base64StreamDecode()
for chunk in chunks:
    for r_chunk in decoder.update(chunk):
        result.append(r_chunk)
decoder.finalize()

Encode data

chunks = [b'1234567', b'1234567']
encoder = Base64StreamEncode()
result = []
for chunk in chunks:
    for r_chunk in encoder.update(chunk):
        result.append(r_chunk)
result.append(encoder.finalize())

License

b64-stream is licensed under the Apache 2.0 License.

Metadata

Release files for b64-stream 1.0.0

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

Source distribution (sdist)

Source distribution for b64-stream 1.0.0
File Size Uploaded
b64-stream-1.0.0.tar.gz 70.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for b64-stream 1.0.0
File Interpreter ABI Platform
b64_stream-1.0.0-cp38-cp38-manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
b64_stream-1.0.0-cp37-cp37m-manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details
b64_stream-1.0.0-cp36-cp36m-manylinux2014_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64 Details

Total release size: 727.7 kB

Release files / b64-stream-1.0.0.tar.gz

Download URL b64-stream-1.0.0.tar.gz
Size 70.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fb3356d80dc99ffd5a86e5948eae2f6f6a50cc2a4ac3954cf8f8ae4bec6bbb29
BLAKE2b-256 checksum
How to use checksums
ed4706f2dc16a9932d8f7596be35323ffa7514dbfe325316baf3f6ca16c42d73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.1

Release files / b64_stream-1.0.0-cp38-cp38-manylinux2014_x86_64.whl

Download URL b64_stream-1.0.0-cp38-cp38-manylinux2014_x86_64.whl
Size 233.4 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
f5c349729ca7943f323fcc31f579c7f47ee5bbc6eef3eb3d3dc4f55ad0b82922
BLAKE2b-256 checksum
How to use checksums
32f3080552ccdfe8bfd651e6f71a00e56669225017d787610cf76d8d0b65c9c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

Release files / b64_stream-1.0.0-cp37-cp37m-manylinux2014_x86_64.whl

Download URL b64_stream-1.0.0-cp37-cp37m-manylinux2014_x86_64.whl
Size 211.9 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
267c0b5fac3e2a603944a22f2176a6051bd3807a448102f9776f5495d1b5e1bc
BLAKE2b-256 checksum
How to use checksums
65ad50679db361daf4ca1501a55c9c0052a65298eb8bbc939262b78dfb1c37b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.1

Release files / b64_stream-1.0.0-cp36-cp36m-manylinux2014_x86_64.whl

Download URL b64_stream-1.0.0-cp36-cp36m-manylinux2014_x86_64.whl
Size 211.7 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
aa38528329bc77775c315ec310bfab9ac296d7bb30619e1f3706e13a3ac01671
BLAKE2b-256 checksum
How to use checksums
d3251c357f1fd24c0e8a250afa45ecef2ddf2cd04bcfc8f45bdd00e28510c00c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

4 release files

0.0.3

4 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