Library that allows you to work with arrays of bytes
Project description
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
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
RBytes-2.1.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
RBytes-2.1-py3-none-any.whl
(2.8 kB
view details)
File details
Details for the file RBytes-2.1.tar.gz.
File metadata
- Download URL: RBytes-2.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
619a49b6b88bf15765da06c1d354f0a4f92fdceb8a265189c13cc60e07cd4aba
|
|
| MD5 |
86f30d4bee09d92fd86f970c1da0ac52
|
|
| BLAKE2b-256 |
7bb82278d4c81617f3fa008f7f34d6e0c1248059e5d2d7b054d675a729804bda
|
File details
Details for the file RBytes-2.1-py3-none-any.whl.
File metadata
- Download URL: RBytes-2.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd0b039bfc0bd5b64679afd721f20a46ec107aaf075806057b91a77c29f7c27a
|
|
| MD5 |
efc3d1fca73c75a56b857cdca29c23a6
|
|
| BLAKE2b-256 |
f50b1d51da7dd579e95b325825c2adefd51b869b01fe5732126784f8058f0e05
|