Skip to main content

base64_bytesio

This library provides functionality to decode base64 encoded files and return them as BytesIO objects.

Scenario

When your website using base64 as image format. And front-end will upload some images to your django back-end. In django framework mostly using file object to recieve image. In this moment, you may need to convert base64 to a bytes io object. Meantime, In our scenario I don't need to save my file on server. Just upload AWS s3 bucket that will fine.

Installation

You can install the library via pip:

pip install base64_bytesio

Usages

Example of using the library

from base64_bytesio import base64_bytesio

data = "data:image/jpeg;base64,..."
decoder = base64_bytesio()
file_object, filename = decoder.base64_bytesio(data)

Metadata

Release files for base64-bytesio 0.0.2

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

Source distribution (sdist)

Source distribution for base64-bytesio 0.0.2
File Size Uploaded
base64_bytesio-0.0.2.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for base64-bytesio 0.0.2
File Interpreter ABI Platform
base64_bytesio-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / base64_bytesio-0.0.2.tar.gz

Download URL base64_bytesio-0.0.2.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
163c053ce42fc8a123ac1a6bc899c6a10f2fe1e8d63126acaae653213663177b
BLAKE2b-256 checksum
How to use checksums
2318cfe04aad8b7267583095562b0fdbf8c015cb18cca86c8b398790cd55a4ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release files / base64_bytesio-0.0.2-py3-none-any.whl

Download URL base64_bytesio-0.0.2-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f5674eaf927f8e005df1068872f552f86745a4dcb254e0880e91c17b955b18b
BLAKE2b-256 checksum
How to use checksums
86f8085ab84d0f172da4c7f900fbd8845b1256db2c61ee2aadb6112110265097
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.0.2 This release

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