Skip to main content

Tools for converting python data types

Project description

convertertools

CI Status Documentation Status Test coverage percentage

Poetry Ruff pre-commit

PyPI Version Supported Python versions License


Documentation: https://convertertools.readthedocs.io

Source Code: https://github.com/bluetooth-devices/convertertools


Tools for converting python data types

These are very simple tools for manipulating python data structures to avoid writing out the same code many times in libraries.

Installation

Install this via pip (or your favourite package manager):

pip install convertertools

Usage

Note that specific types are required for maximum performance.

from convertertools import del_dict_tuple, del_dict_set, pop_dict_tuple, pop_dict_set

# del_dict* raise KeyError on missing keys
del_dict_tuple(d, ("a", "b"))
del_dict_set(d, {"a", "b"})

# pop_dict* ignores missing keys
pop_dict_tuple(d, ("a", "b"))
pop_dict_set(d, {"a", "b"})

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Bluetooth Devices
Bluetooth Devices

💻 🤔 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This package was created with Copier and the browniebroke/pypackage-template project template.

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

convertertools-0.3.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distributions

convertertools-0.3.0-cp312-cp312-win_amd64.whl (68.2 kB view details)

Uploaded CPython 3.12 Windows x86-64

convertertools-0.3.0-cp312-cp312-win32.whl (65.8 kB view details)

Uploaded CPython 3.12 Windows x86

convertertools-0.3.0-cp312-cp312-musllinux_1_2_x86_64.whl (154.6 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

convertertools-0.3.0-cp312-cp312-musllinux_1_2_i686.whl (152.7 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ i686

convertertools-0.3.0-cp312-cp312-manylinux_2_36_x86_64.whl (110.2 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.36+ x86-64

convertertools-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (157.7 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

convertertools-0.3.0-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (151.6 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

convertertools-0.3.0-cp312-cp312-macosx_14_0_arm64.whl (66.9 kB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

convertertools-0.3.0-cp311-cp311-win_amd64.whl (67.9 kB view details)

Uploaded CPython 3.11 Windows x86-64

convertertools-0.3.0-cp311-cp311-win32.whl (20.4 kB view details)

Uploaded CPython 3.11 Windows x86

convertertools-0.3.0-cp311-cp311-musllinux_1_2_x86_64.whl (106.2 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

convertertools-0.3.0-cp311-cp311-musllinux_1_2_i686.whl (102.8 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ i686

convertertools-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (107.4 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

convertertools-0.3.0-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (102.6 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

convertertools-0.3.0-cp311-cp311-macosx_14_0_arm64.whl (21.8 kB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

File details

Details for the file convertertools-0.3.0.tar.gz.

File metadata

  • Download URL: convertertools-0.3.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for convertertools-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f51799b397a76215ce639b511ed2dac81f033594c15610d33bbcc81a5161d024
MD5 3e8394b0b6dae81e4ba081cf3e8e6f34
BLAKE2b-256 c9363c8c5998e0a813f54af75e82b6394f62d3512431b669cea3263ff46a6a72

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e90aff26356ec95fc23c409b106345bf353125704bce33f4e688bc0558e5f948
MD5 ec74900af0c58a8e266b0b1d6e4dafb0
BLAKE2b-256 887bbac34a50814c40c073f117455fd1c4c415fd7b25aeb1930226d297715a71

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp312-cp312-win32.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1f56d897a84e259fcaae42e477349d3e75741b20b8782ef1d5ee3f800c5abbfe
MD5 e8880da6e445bb4ebe2b4da4d319316c
BLAKE2b-256 055079786ad95c1a4d7d586b7a9a47e0d8ad66861dad81c8b0d0893e7f0d8712

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 80dd0159742bf2070fb027cb0e9d90e59a9f2be51b355f23f2bc28ec763a01f4
MD5 025265b55dc944bf3b09f49c4369b462
BLAKE2b-256 95bff5656f9724b2fb1adfc3482796cd9daeef46e20ad21869b32a84606f451c

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp312-cp312-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 0b1e08275fb3941854c2e4eef12df33379274d97dc4edf422602923546462732
MD5 911b3bf32c31151def4490594228b830
BLAKE2b-256 706fcec6382472f1fd1a09b86e01dadba7b8f350fcfdf4d57e7fcd968837c368

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp312-cp312-manylinux_2_36_x86_64.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp312-cp312-manylinux_2_36_x86_64.whl
Algorithm Hash digest
SHA256 ed1a4e2fcfff80315eff38fc0e1870e493ed5af9857065c569d6817b4963d82f
MD5 71c93e63a2e1257c2da4cb67e91c3739
BLAKE2b-256 840f9275882c63e5887aff413a010090c79b21115c7bb3e348b2c4fe7930b5c9

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a5b90caf66e841a2fb9c061ca3e9f0ccb29ad4a47a79fbff2e8f1023e86bf777
MD5 f9d2cc9c0739e5b20fec03a03e094c04
BLAKE2b-256 2b67e0e507da48f429901ab0a8258417ab7d34bfa3d8fd780cfba740278f37a6

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 3f16a83f6e31baed74f9efa4635caf9a7f77a7cd794afd317aaa8f31d75b6a3d
MD5 aa34ed2837931f9f38b4004286df1eda
BLAKE2b-256 9289837483bdbcf96091908b2e5a3013cc923ffd721915cb3a0f5a286dee8482

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 df6a0e6c815687c98fd606bd0944fd04115e1beab7af1788cc269c5f139c24ec
MD5 eacda702f6818bbc3aeb0e220cb6bb40
BLAKE2b-256 e989c9dc8f0cad1f8c81290ff3fbd0269d11f171ae509671fee87733ee6eb592

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 169e0c164ff756ffe3084000dc4b2559e130de3d38649a66eb99d07dfe46d8cb
MD5 5c62a8f4ff4e2a81cacb4265b739902d
BLAKE2b-256 ad1e7da3e2781d390cc4cb7624b24fd0a7edbbe836f263a41c9bcf2301e2ac62

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c866945474a86f9b3ce1e143936deb9ba6cbf23065e6a7bdf6165ee3eff40ff1
MD5 03ece17a698afa3a50bfc9eb5b69d969
BLAKE2b-256 cd86cd60e6eba72778c4b914d032579a9afa5a0734539569b0675d43a3cc37fc

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 58d5c5628cf609864086083e8261c461b1463fa52592ab2f7ab04fd977b3b4d0
MD5 39def733a1eafcc077e5b5d1869827cc
BLAKE2b-256 a3cd3e5983f5b52d16cf1d74c6d74b8e62d920e61d6d67882ec91033ca3f177a

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp311-cp311-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 18d61276a0aa9bb86f60eb93949f588d711a839c425811a483436ab2f29d44a2
MD5 cc6be67d7592a518bd524773ba75c465
BLAKE2b-256 4101483152856622d9a68d75304e374b832e1b4dbc3b8909c7b7130f4cbedde4

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0a06de892a6bb94dcafc50811219b61c8063610cd3203ee221af0ce1813f723f
MD5 a81ae50cdf37bf639e184dcdbcb955b2
BLAKE2b-256 1657846e699ff88c548c1458e4409741aee5b9fefc08229671c946d7effd7585

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 f1e7cc383a588fbc42e6143345a471856a91fa045b88ed6beb5cb693e525106a
MD5 e6cc242fef396a2f80d09e301cc6ea0d
BLAKE2b-256 ccbe85274e5a3d480e9014c1292c6218bcecf20d224b009a04c41130e09e8476

See more details on using hashes here.

File details

Details for the file convertertools-0.3.0-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for convertertools-0.3.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 dbf6caef3ac81cb0d36594336e39f8217dae725cfcf536f73cee7ba138120a94
MD5 f6244c4b0c3e10211873dc07a284e674
BLAKE2b-256 25cf2df502191cfc1e93ab396fa7acbc4dfd824fdb3279eac8c592518dfbc4d6

See more details on using hashes here.

Supported by

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