Skip to main content

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

Metadata

Release files for recast 0.1.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 recast 0.1.0
File Size Uploaded Provenance
recast-0.1.0.tar.gz 11.6 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 24.1 kB

Release files / recast-0.1.0.tar.gz

Download URL recast-0.1.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e9e0e55dd8ae5d4cee99e3ef1df48702cd6e675bfe65fe85f95fe6b0c8b9d8b6
BLAKE2b-256 checksum
How to use checksums
ec467ee73febc8a2686c1fab0104d866971bffc8f2af3e2fb500be03dbf1ca71
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / recast-0.1.0-py3-none-any.whl

Download URL recast-0.1.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d97c6dfa8b44dc7f48424030392f7700057c15e283d33c92d0647cf51283f94
BLAKE2b-256 checksum
How to use checksums
0d3f495a49169ff5b97e7ab5f16d9af9de45e4a5499a3d32603c140a340ee2fe
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for recast 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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