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-3.0.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-3.0-py3-none-any.whl
(2.8 kB
view details)
File details
Details for the file RBytes-3.0.tar.gz.
File metadata
- Download URL: RBytes-3.0.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 |
a4698d35c88a6fdc36604e66ea064cc70459d6082209c541f123439cea5cb900
|
|
| MD5 |
efa5e6afd51974f1068c5a361b6f4b60
|
|
| BLAKE2b-256 |
b323cae881d67bb51d7a1e1b7b3626c682fb7dfd5c88cda98a090b2b3f554ca7
|
File details
Details for the file RBytes-3.0-py3-none-any.whl.
File metadata
- Download URL: RBytes-3.0-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 |
5d68f464d8724c68ebd12cf0c127c9fd524bf25b8fdfffceee9465438b7bbb57
|
|
| MD5 |
86adb7a78f79ef98488668591b66e0be
|
|
| BLAKE2b-256 |
1211e889a0cb553ff30d449776e3bfd92adde3436763d6b94b48cbf2354e788b
|