python bit recaster
Project description
recast
python bit recaster
Convenient functions for converting bytes into various different python types. These functions do not modify the underlying bits, but rather, how they are interpreted in python.
Examples
>>> import recast
>>> hex(recast.int2uint(-1))
'0xffffffff'
>>> recast.double2bytes(4.400150012111731e-110)
b'recast:)'
License
recast - python bit recaster Copyright (C) 2021 Phil Dreizen and Miccah Castorina This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
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
Built Distribution
File details
Details for the file recast-0.1.0.tar.gz
.
File metadata
- Download URL: recast-0.1.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9e0e55dd8ae5d4cee99e3ef1df48702cd6e675bfe65fe85f95fe6b0c8b9d8b6 |
|
MD5 | 4775a63c060e6278b35f63ec011db19f |
|
BLAKE2b-256 | ec467ee73febc8a2686c1fab0104d866971bffc8f2af3e2fb500be03dbf1ca71 |
File details
Details for the file recast-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: recast-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d97c6dfa8b44dc7f48424030392f7700057c15e283d33c92d0647cf51283f94 |
|
MD5 | ce01aa92adf07a2b9a5a12e63f7944bd |
|
BLAKE2b-256 | 0d3f495a49169ff5b97e7ab5f16d9af9de45e4a5499a3d32603c140a340ee2fe |