An IO wrapper that reads/writes binary data as base64 into a text file
Project description
Base64File
- like gzip.GzipFile, but writes out base64 text
- supports concurrent reading and writing
Usage
from base64file import Base64File
with open('some-file.txt', 'w') as f:
b = Base64File(file_obj=f)
b.write(b'\0\1\2\3\4')
b.seek(0)
b.write(b'\n')
print(b.read(2)) # prints b'\1\2'
b.close()
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
base64file-0.0.2.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for base64file-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 969b63a810aad9466b4e6d960114112ca878164b59a08d1ef589f18adad78612 |
|
MD5 | d8dbc7c31f6aa4837ed4d06bfda55a09 |
|
BLAKE2b-256 | b8ac0296bbfaddc7e1aea88e00d98de0d8bd713a310b92cf1c1ff44978fc7be4 |