Some handy Python tools
Project description
pxutil
Some handy Python utilities
Install from source
python setup.py install or pip install .
Build distributions ( Replaced with Actions / cibuildwheel for multiple python versions and platforms)
# build for current python version rm -rf dist/* && python setup.py sdist bdist_wheel
Build and Test - cibuildwheel locally for current platform
pip install cibuildwheel # containerized build cibuildwheel --platform linux . # cibuildwheel config in pyproject.toml
Publish to pypi ( Replaced with Actions / cibuildwheel for multiple python versions and platforms)
twine upload dist/*
Github Actions
The github action workflow has been configured to run build, test and publish to pypi with cibuildwheel which builds cython extension for multiple python versions and platforms.
The workflow is configured to run manually, not to waste resources on each commit, or automatically when a release is created.
The publish job is executed only when a release is created.
Usage
import pxutil as px from pxutil import exit_on_exception px.bash('ls') px.bashx('ls') px.grep('ab','abc\ndef') px.normal_path('~/project/src/../README.rst') px.trim_docstring(''' ab cd ef ''' ) @exit_on_exception def to_int(any): if isinstance(dict): return Exception('dict is not supported to convert to int.') return int(any)
Test
pip3 install -U pytest tox pytest-cov git clone https://github.com/peterjpxie/pxutil.git cd pxutil pytest # current python version or tox # multiple python versions or cibuildwheel --platform linux . # multiple python versions in docker
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
pxutil-0.0.17.tar.gz
(34.4 kB
view hashes)
Built Distributions
pxutil-0.0.17-cp39-cp39-win32.whl
(20.5 kB
view hashes)
pxutil-0.0.17-cp38-cp38-win32.whl
(20.6 kB
view hashes)
Close
Hashes for pxutil-0.0.17-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1bec6b3ee56ec6ce609aa90d975adb39fd1a35ba552328e3731b4e1099d36dd |
|
MD5 | b8c89725b9f2c317257af35636997b07 |
|
BLAKE2b-256 | 447a3014edc627ea08211fe0446f2146ef42f4ef60f31c5bcf0eb5d5080b5a85 |
Close
Hashes for pxutil-0.0.17-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03434476b0ce3988bc5cb9bb0338bdcb23b1dcc483867b6ab11fb7b2fff4f4f8 |
|
MD5 | e3edf3aea1ef039d1809d42ddc767d04 |
|
BLAKE2b-256 | b612da848c86571ac4ac38590050f38393e870d3807d9768ce905075627d9f5c |
Close
Hashes for pxutil-0.0.17-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e68ff8178ab69bc9a84ea176b5ee1ae483a0c1751332675695f28ed009c4f44 |
|
MD5 | d4bfc7c1d7cb33881a685a07c0abc905 |
|
BLAKE2b-256 | 55fc83c240c7313ac1b0e9f217be952ff357140b76fb80978004ae87193250be |
Close
Hashes for pxutil-0.0.17-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ec519bfd6a69fa553cc82facb244c6798a5087d420ae381572aed19379948c0 |
|
MD5 | 7878980e7644a9700265fa1431d510d2 |
|
BLAKE2b-256 | 0bc1d0cf9404cc4be3a9251210fa707f3b6d9c681d7431adbd68d1fee5f9f553 |
Close
Hashes for pxutil-0.0.17-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86366469b2e9417285a2966daf795b9aecab9ae795bd4c89fe7328897ced97fc |
|
MD5 | aafaa43b15f4b882932acc69c9ad316c |
|
BLAKE2b-256 | 5f58b8608bd1ee7bc30d07efbb8d87d27cb78e2fb992f6ab15f599bd45d127bc |
Close
Hashes for pxutil-0.0.17-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec33653c2818f156e27126dac81e0d74557bd32f114bafd8aef4a336a706790c |
|
MD5 | 305bd2e608d46e6214ee527800b4cfb8 |
|
BLAKE2b-256 | 5dec660f8edb38c9ae4a73655d3d36bd8749c177698944f5e5afab1c8b796f4a |
Close
Hashes for pxutil-0.0.17-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3856df074c6a63813affea0d2b86ac1d0e459490e30c861aadd6ac15598c79b1 |
|
MD5 | 22a3c643292b8d991af746551635a26c |
|
BLAKE2b-256 | 21b8394c825634c03f8d86ae9f89feb0bb3137e0dfb6f669e3aea12c809c54c3 |
Close
Hashes for pxutil-0.0.17-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 742e7c4a5d620ca910e2ce082aa572cfc13e2b74a1c4014c9da2bc03dee0c025 |
|
MD5 | 3278a7341c0e9d0c21720d433e042e6d |
|
BLAKE2b-256 | 85fe7bbaca82bde25eec33809a15635857da4748b711a99b5a9e0b75526253a2 |
Close
Hashes for pxutil-0.0.17-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6611a9712477dc841bedecaacfd08f90ff21374512fe5a8dd3514b4c50a1ae63 |
|
MD5 | 86700653e6dd8026d7c8641dcfafc63e |
|
BLAKE2b-256 | 232df1d1bfabe0f868d97a43483636603317b373677433cfd34d3e130407c9d1 |
Close
Hashes for pxutil-0.0.17-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea8596b95e91ac7c73a33fec88f4f150bdae055fffa633ffa4590a623a1bc6ca |
|
MD5 | fc7e4e6507c651db292f4a8d5d9fe448 |
|
BLAKE2b-256 | 9cee49a5025773e8a77479e62560ab29da4ee42a02f1187da0b4bbd3b53fd38d |
Close
Hashes for pxutil-0.0.17-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32f39dcd8cba4401bbadb9389dc62b296982c08adb0027941f56c7141e0bdf66 |
|
MD5 | dd1a0a3434b38f676c7de6da64d3a2cf |
|
BLAKE2b-256 | 1240493463a342fedd49a5c869687bfc99e4e1b768f3bbf0d1fb42fb0419423e |
Close
Hashes for pxutil-0.0.17-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a73502e0ebf40f0d21ec632ecdb9e9ba8d0d607d8e3ff2ff6c06676f1518c1c |
|
MD5 | e7b5fd90572af6e2224b205037e39e04 |
|
BLAKE2b-256 | e134ba0ed727928e25768353f76825abdbd7815cea3028fc5861c4713320ddf1 |
Close
Hashes for pxutil-0.0.17-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd5c6199e7b0dcd7f92bf436bf4772b2eb081ac351807caf4293ce505d4d9c28 |
|
MD5 | 2a059798a8cf1f00c42ba7bf95647985 |
|
BLAKE2b-256 | d92004c28bd70fe8c62b8ebfb7386605587e0d13838a3cc4fe96b65cc4aaa8c8 |
Close
Hashes for pxutil-0.0.17-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d22d1b714de408e07031d243d443f31f04cff7a57330d8b26f4d7f0425b10fc |
|
MD5 | 440ac587cd97ec670abbf444cff88eca |
|
BLAKE2b-256 | 517807fe6acb9d1a8eba2634d51f995b35bd5ab6bf681f0078c3eb71fbbcc870 |
Close
Hashes for pxutil-0.0.17-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aace64b83ca7490da56baa713e27893936506eabce3d7fe27d8f9148e8959c5 |
|
MD5 | ba8fa913278c36204b9555f1b7429e12 |
|
BLAKE2b-256 | b5736fcec52c987d7d98d1bc296e1ff26bba615daaf826d9319b366ff6bb3ed1 |