Tools for converting python data types
Project description
convertertools
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 💻 🤔 📖 |
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
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 Distributions
File details
Details for the file convertertools-0.4.0.tar.gz
.
File metadata
- Download URL: convertertools-0.4.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7acc08ed6bbf15ffa4459c15f0190df4418a05b2f6f779af77ca38413da28547 |
|
MD5 | a3b5d4956d7b830e746c36108fd93bf5 |
|
BLAKE2b-256 | 775b202f049a04e851404c69d06bf3e0d6e250bfbf5ecab6ce001e36260ae94e |
File details
Details for the file convertertools-0.4.0-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 68.2 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23812c40cbce308af3bb9eba52b61500c6bd0bc3fe492a31ca4d2dae303c089d |
|
MD5 | 1dd9f073a39d8b08e61f3cf138fcab33 |
|
BLAKE2b-256 | c21c312b7694268f14eda3d29bdad233203e790ecf7b0a97dfd5223412f7d021 |
File details
Details for the file convertertools-0.4.0-cp312-cp312-win32.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp312-cp312-win32.whl
- Upload date:
- Size: 65.8 kB
- Tags: CPython 3.12, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0750fd19ab27465614296c4012ab90a9c9f65421aee059a9961cb22dfdb58a8e |
|
MD5 | 7d76cc7b486d438a4a6f3d53252ebb47 |
|
BLAKE2b-256 | ce66022084a2954c4cbc470469b337e986a8968b09987575c45bece48901cf37 |
File details
Details for the file convertertools-0.4.0-cp312-cp312-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 154.6 kB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 917e74d4984a7fe487b3a39df8ddaace2897b1793fbe7094da926bc329a5a798 |
|
MD5 | dd25cb56047c07f0a8248c3feb1360f8 |
|
BLAKE2b-256 | f76da15336ad732e16737c24eff737da720ca39dd183d4aa2b763cf4f4defdba |
File details
Details for the file convertertools-0.4.0-cp312-cp312-musllinux_1_2_i686.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp312-cp312-musllinux_1_2_i686.whl
- Upload date:
- Size: 152.7 kB
- Tags: CPython 3.12, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a73341bc1ff9489bb654615714e693396e6723ad6abd1c09e25214f003a6d7da |
|
MD5 | c87e0c8ab433cb014f7342e3df732ede |
|
BLAKE2b-256 | 886a814b268d999c0af3ba1787608754d650f35b4abfa46f0e255e0d0a2e6909 |
File details
Details for the file convertertools-0.4.0-cp312-cp312-manylinux_2_36_x86_64.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp312-cp312-manylinux_2_36_x86_64.whl
- Upload date:
- Size: 110.2 kB
- Tags: CPython 3.12, manylinux: glibc 2.36+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ec7209f827177bccbe3d8667e72f5f2ea844670caf4dd936cecee40879df7cd |
|
MD5 | dad6eb6ca919019c9cb4847289515352 |
|
BLAKE2b-256 | 0fa79884c34950ba63b5515ae06daffc45aca234e12288b3a443e13efd7b6b71 |
File details
Details for the file convertertools-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 157.7 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c11caa8f9b0a05f88928fe37c9a4535e345504300936f2125843e67b7c878dc |
|
MD5 | 728cfefdd84f118f490def76f131fc41 |
|
BLAKE2b-256 | 712f9a1f87dd448a375c40a350373bef89d001ea510384dc20872af224940645 |
File details
Details for the file convertertools-0.4.0-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
- Upload date:
- Size: 151.6 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9542547c3fe9026edc843da303d72456cab23b9653a41beb157c4fa05c9b5e6 |
|
MD5 | 1335b7620762302cb2e2223e00c26991 |
|
BLAKE2b-256 | bf37def67c12eb8007dbd285d6e1d46b33de7bb851045a0a305f446ff53da765 |
File details
Details for the file convertertools-0.4.0-cp312-cp312-macosx_14_0_arm64.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 66.9 kB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9efa46b02ca1641bf807a072afeee13d3a51844950a941811f3a3bae6b09b39d |
|
MD5 | 82b0c8db550f114996c868d6c972dbd4 |
|
BLAKE2b-256 | 4f893a869fee8be81e836b679654b7bfcaeea8fa32a2193f934b9d6527a6613c |
File details
Details for the file convertertools-0.4.0-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 67.9 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c1fb6103a5e18912b4b472229d456c30b809bdbc40a9748dc3f6a9116d8d9a8 |
|
MD5 | 440abdd125c83c5e6b11deb913b4694f |
|
BLAKE2b-256 | 9085c5b425ec6e8401e9ebdb2901851b8d439e137f50bce2c2a8ca54025389e0 |
File details
Details for the file convertertools-0.4.0-cp311-cp311-win32.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp311-cp311-win32.whl
- Upload date:
- Size: 20.4 kB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a3480e7cd66b547d74f3b31a5ae6e0fc69dddbe6e4c31414ac5446570cffa9d |
|
MD5 | c7db0edfc99de656483f5b50e42f1225 |
|
BLAKE2b-256 | a2411358cd0349adbd7b032aed0d195d25a46efb5cbc3654f4675e10729c1eef |
File details
Details for the file convertertools-0.4.0-cp311-cp311-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 106.2 kB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 254b08e240aa6cd80a756d6ef210ea38bea073fccdb69c742be25422806e1c76 |
|
MD5 | b69a294c43802fff96c4a0200fe2f892 |
|
BLAKE2b-256 | 819ece0a9951bd2bcf8d201232e42c825b70d37214b518cd8553ce16573a8d25 |
File details
Details for the file convertertools-0.4.0-cp311-cp311-musllinux_1_2_i686.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp311-cp311-musllinux_1_2_i686.whl
- Upload date:
- Size: 102.8 kB
- Tags: CPython 3.11, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba9b629f4af12589c745dbe56607e92e3f2362682e17a8a158ee14eeacc35ce7 |
|
MD5 | c12450284bfcbd656b52776bae66098f |
|
BLAKE2b-256 | 3edcb59e5aa71d47b4a5bbda5f879ca9b8547e1e23b2d305534f4ab83f70dbd5 |
File details
Details for the file convertertools-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 107.4 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa32f0c2fbee45ab2330973aa8521a1c549cc930081ed30be084a7d2be11ccfe |
|
MD5 | 2f041115734f650aefdb2ac4ddfd94bc |
|
BLAKE2b-256 | 841b5aaaff83a53ac5a2f02e568dbabd4a91663006941d635f569a078a8f0e65 |
File details
Details for the file convertertools-0.4.0-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
- Upload date:
- Size: 102.6 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa69c2a6d182023a7ae056aaa6503c457213a5086fa9c6e729e4024b57da49ee |
|
MD5 | 6954b86ac8c4d3bb9c9d8c2a027a6936 |
|
BLAKE2b-256 | 58e8834af5426653886fd2b81cc736cd9712d500001a1090312523e966035efb |
File details
Details for the file convertertools-0.4.0-cp311-cp311-macosx_14_0_arm64.whl
.
File metadata
- Download URL: convertertools-0.4.0-cp311-cp311-macosx_14_0_arm64.whl
- Upload date:
- Size: 21.8 kB
- Tags: CPython 3.11, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f034a4f17138bf07d076b7a1a4ff14f95064ced31694857f48f575be3af6f0f |
|
MD5 | e2046b6fe46b154a06600563090e5492 |
|
BLAKE2b-256 | 62cb9c4281757e50d3ad228b5fa80c4948780f5a1de20fe703570515bd4408fa |