Skip to main content

A Python bit manipulation library written in Rust.

Project description

tibs

A sleek Python library for your binary data

PyPI - Version CI badge PyPI - License Docs


[!NOTE] This library is currently pre-alpha. This documentation is part reality and part planning.

Documentation

The API docs are available here.

Why is it called tibs?

Well it's 'bits' backwards (more or less) and the name was available!

The basics

from tibs import Tibs, Mutibs

The Tibs class is an immutable container of binary data. You can create a Tibs from binary or hex strings, byte data, format strings etc. A number of creation methods are provided, all of which start with from_:

>> > a = Tibs.from_string('0b110')
>> > b = Tibs.from_zeros(16)
>> > c = Tibs.from_bytes(b'some_bytes')
>> > d = Tibs.from_joined([a, b, c])
>> > e = Tibs.from_random(1000)
>> > f = Tibs.from_joined([a, b, c, d, e])
>> > g = Tibs.from_bools([1, 0, 0])

The __init__ method redirects to from_string, from_bytes, or from_bools as appropriate, so above you could also say a = Tibs('0b110'), c = Tibs(b'some_bytes') or g = Tibs([1, 0 0]) which is often more convenient.

The Mutibs class (pronounced 'mew-tibs') is a mutable version of Tibs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tibs-0.1.2.tar.gz (3.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tibs-0.1.2-cp314-cp314t-win_amd64.whl (292.3 kB view details)

Uploaded CPython 3.14tWindows x86-64

tibs-0.1.2-cp314-cp314t-win32.whl (275.8 kB view details)

Uploaded CPython 3.14tWindows x86

tibs-0.1.2-cp38-abi3-win_amd64.whl (308.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

tibs-0.1.2-cp38-abi3-win32.whl (289.3 kB view details)

Uploaded CPython 3.8+Windows x86

tibs-0.1.2-cp38-abi3-musllinux_1_2_x86_64.whl (502.4 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ x86-64

tibs-0.1.2-cp38-abi3-musllinux_1_2_ppc64le.whl (487.8 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ppc64le

tibs-0.1.2-cp38-abi3-musllinux_1_2_aarch64.whl (476.2 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

tibs-0.1.2-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (420.6 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

tibs-0.1.2-cp38-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl (446.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ppc64le

tibs-0.1.2-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (411.0 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

tibs-0.1.2-cp38-abi3-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (444.5 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

tibs-0.1.2-cp38-abi3-macosx_11_0_arm64.whl (378.8 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tibs-0.1.2-cp38-abi3-macosx_10_12_x86_64.whl (406.4 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file tibs-0.1.2.tar.gz.

File metadata

  • Download URL: tibs-0.1.2.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tibs-0.1.2.tar.gz
Algorithm Hash digest
SHA256 73ba01ce35444c490271ca29d40dcb457452ff25efe1d0c2089a73b546f70916
MD5 a696e46f74691393f23ed6e070b2d871
BLAKE2b-256 e825f02daf48fa13d22577bd5ba374cbc14b1da88e3128354b40c0d945376b59

See more details on using hashes here.

File details

Details for the file tibs-0.1.2-cp314-cp314t-win_amd64.whl.

File metadata

  • Download URL: tibs-0.1.2-cp314-cp314t-win_amd64.whl
  • Upload date:
  • Size: 292.3 kB
  • Tags: CPython 3.14t, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tibs-0.1.2-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 65a91ccb6372271e9e718274c944d9f23e3b7fb36dd3e193fa94567fa9c6b782
MD5 65c119866e9fe30206210d06197688f7
BLAKE2b-256 e4d6cc549f79fead172e697256cb70d636523aee1c1bfc0e543a1f6ec665604f

See more details on using hashes here.

File details

Details for the file tibs-0.1.2-cp314-cp314t-win32.whl.

File metadata

  • Download URL: tibs-0.1.2-cp314-cp314t-win32.whl
  • Upload date:
  • Size: 275.8 kB
  • Tags: CPython 3.14t, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tibs-0.1.2-cp314-cp314t-win32.whl
Algorithm Hash digest
SHA256 7294a13616fb5453bce781eeb18392fb185bae18f5ca74242bce8da970d175e7
MD5 cad4f7767521b5301651e26167d1c17e
BLAKE2b-256 eb00c85c39ae0b3f782806d03e7d58849e3b2e92da13152065076c51b1b36e70

See more details on using hashes here.

File details

Details for the file tibs-0.1.2-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: tibs-0.1.2-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 308.6 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tibs-0.1.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f3aa08b7be8608787096b354e0aa99f59e1f158ed5eed66c47703252514659ed
MD5 c3de006a696aaa0cd2e280e15e98e5f2
BLAKE2b-256 54fc926b682ed4668bb5f42a10adaa3837c339a89645c19dfded920a0d792401

See more details on using hashes here.

File details

Details for the file tibs-0.1.2-cp38-abi3-win32.whl.

File metadata

  • Download URL: tibs-0.1.2-cp38-abi3-win32.whl
  • Upload date:
  • Size: 289.3 kB
  • Tags: CPython 3.8+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tibs-0.1.2-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 1ed64b259deec786797b57bbbe02f4c791862245fe9c8093fe4e140427938b4e
MD5 c6f6d7b72d7a1528912b4312c66b02fe
BLAKE2b-256 9abc3b8a610eccf7a8def7633e53fa6cceea321c86f6b3e1d28ff57b17322e7e

See more details on using hashes here.

File details

Details for the file tibs-0.1.2-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: tibs-0.1.2-cp38-abi3-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 502.4 kB
  • Tags: CPython 3.8+, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tibs-0.1.2-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 67896f5c90d3d2e64e9a9e7e2cc4a70e0929e58da02db21e347d0a7108bd599f
MD5 1e2da9512550ca7b720a173280e99054
BLAKE2b-256 769bcb6e4f8fca188b2cbceb6bf0aa9fb7f1158c56127cda250d07b3d91bbaa4

See more details on using hashes here.

File details

Details for the file tibs-0.1.2-cp38-abi3-musllinux_1_2_ppc64le.whl.

File metadata

  • Download URL: tibs-0.1.2-cp38-abi3-musllinux_1_2_ppc64le.whl
  • Upload date:
  • Size: 487.8 kB
  • Tags: CPython 3.8+, musllinux: musl 1.2+ ppc64le
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tibs-0.1.2-cp38-abi3-musllinux_1_2_ppc64le.whl
Algorithm Hash digest
SHA256 6eadbcb039141cea5b1e02cdea27c63a9d7075080103f7954be8e72988370f86
MD5 26b7db05a7c64b6f14d81006258d1bf5
BLAKE2b-256 aa046a205f024b740108c3e4cb5d92e51865e186f6a7fbe46ac70f2c92199eb6

See more details on using hashes here.

File details

Details for the file tibs-0.1.2-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tibs-0.1.2-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 32e3ff61b73b29fcc50589426c102a766356fb9f1bdb1a07a01481181a012ef8
MD5 395f93890644d237ab15228b2b16b927
BLAKE2b-256 35034b602a23e57d87a997d4047cf5f22c552c85441a054f1ef612032343193c

See more details on using hashes here.

File details

Details for the file tibs-0.1.2-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for tibs-0.1.2-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 22de2e96fe9da1ba8869d7003797643593934960d18c95de113f17c42b76dae9
MD5 622ededb4470da3ac5ca419dd01fc4df
BLAKE2b-256 e3919b8efeba6b9a69078293e317a5756e5b68448418953c43bfd483489acf08

See more details on using hashes here.

File details

Details for the file tibs-0.1.2-cp38-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl.

File metadata

File hashes

Hashes for tibs-0.1.2-cp38-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 fa190b3b482a814c394501c283c8be2c8756cc56a4863c4c7311e1f456763b41
MD5 f282524c3570870f3a4356c9c8494c39
BLAKE2b-256 56419a4d1b33c5c3dc194baf499c7066175068584330c98711d6b6c1c6268e1d

See more details on using hashes here.

File details

Details for the file tibs-0.1.2-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for tibs-0.1.2-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 00e56e402dc8db03458e637e4c59ade74bcb346927e044a3607e116269afbb1d
MD5 e0b7088f59394a0de0cc2f2aedf68e3b
BLAKE2b-256 7f3c2ef9a822c9a7e7a8905006808cbc8d23d1f8fdfe8710f16002a2878fde5a

See more details on using hashes here.

File details

Details for the file tibs-0.1.2-cp38-abi3-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl.

File metadata

File hashes

Hashes for tibs-0.1.2-cp38-abi3-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 301dddb1047e6e235aef2b5f2ef30fa672fb1571f73b4aaf02eb8045812c9510
MD5 e60dd0d49bf9f3fea06140a094dd5dc1
BLAKE2b-256 a915d57f95c8e8714920af8bb49607baaf72b28edda5ead28a111f8d7b80c577

See more details on using hashes here.

File details

Details for the file tibs-0.1.2-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: tibs-0.1.2-cp38-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 378.8 kB
  • Tags: CPython 3.8+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tibs-0.1.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99d4a334af9b7adcd30db97e41e06fb55ce4de03a15410736d4c7d8ca970917b
MD5 3a73ba5e12da1665082b9d809dfdac78
BLAKE2b-256 2f843fb80114548402433fb34c9266b75e9bbb06a0148db19d3f686b11136a28

See more details on using hashes here.

File details

Details for the file tibs-0.1.2-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: tibs-0.1.2-cp38-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 406.4 kB
  • Tags: CPython 3.8+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tibs-0.1.2-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3ae218192c02d200ca29300e02b56fe4caa019b567323cffac6fb87e96f82618
MD5 f21ba9bce3eab8b8c6509ef89c8aeace
BLAKE2b-256 57443206558ca1c1bc7e47394e29e5f70f280a925ed5b6a1807a94e61e23e1fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page