Metadata-Version: 2.1
Name: pxutil
Version: 0.0.14
Summary: Some handy Python tools
Home-page: https://github.com/peterjpxie/pxutil.git
Author: Peter Jiping Xie
Author-email: peter.jp.xie@gmail.com
License: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.6
License-File: LICENSE

pxutil
======
.. image:: https://github.com/peterjpxie/pxutil/actions/workflows/build_test_publish.yml/badge.svg
    :target: https://github.com/peterjpxie/pxutil/actions  
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black

Some handy Python utilities

Install from source
===================
::

    python setup.py install
    or 
    pip install .

Build distributions -- Replaced with Actions / cibuildwheel
===========================================================
::

    rm -rf dist/* && python setup.py sdist bdist_wheel

Publish to pypi
===============
::

    twine upload dist/*

Usage
=====
::

    import pxutil as px

    px.bash('ls')

    px.bashx('ls')

    px.grep('ab','abc\ndef')

    px.trim_docstring('''
        ab
            cd
        ef
        '''
        )

Test
====
::

    pip3 install -U pytest tox pytest-cov 

    git clone https://github.com/peterjpxie/pxutil.git

    cd pxutil

    pytest

    or 

    tox
