Skip to main content

RBytes

"Real" bytes in python, because standart bytes() doesn't work properly

I wrote that because bytes() in python doesn't allow to do bit shiftings and other bitwise operations

Installation

pip install RBytes==1.0

Some Examples

from RBytes import RBytes

byte_array = RBytes(b'\x01\x01\x01\x01')

result = byte_array << 5 #bitwise left shift
from RBytes import RBytes
import struct

converted_int = struct.pack('i',69) #get 4 bytes

byte_array = RBytes(converted_int) #get 'real' bytes

result = byte_array << 5 #bitwise left shift

Metadata

Release files for RBytes 3.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 RBytes 3.0
File Size Uploaded
RBytes-3.0.tar.gz 2.4 kB Details

Built distribution (wheel)

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

Total release size: 5.2 kB

Release files / RBytes-3.0.tar.gz

Download URL RBytes-3.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a4698d35c88a6fdc36604e66ea064cc70459d6082209c541f123439cea5cb900
BLAKE2b-256 checksum
How to use checksums
b323cae881d67bb51d7a1e1b7b3626c682fb7dfd5c88cda98a090b2b3f554ca7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.19.9 CPython/3.7.4

Release files / RBytes-3.0-py3-none-any.whl

Download URL RBytes-3.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d68f464d8724c68ebd12cf0c127c9fd524bf25b8fdfffceee9465438b7bbb57
BLAKE2b-256 checksum
How to use checksums
1211e889a0cb553ff30d449776e3bfd92adde3436763d6b94b48cbf2354e788b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.19.9 CPython/3.7.4

Release history Release notifications | RSS feed

This release

3.0 This release

2 release files

2.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