Skip to content

nathan-hess/python-utilities

PyXX: Python Utilities Package

CI/CD codecov Documentation Status PyPI - Downloads

Overview

PyXX is a collection of Python classes and functions intended to accelerate development of Python code and avoid duplicating code between projects.

Features

General-purpose tools are provided, including:

  • Unit Converter: Components to support a fully customizable unit converter (including a command-line interface). Arbitrary units and systems of units can be defined, and functions are available to parse and simplify complex units (such as (kg*(m/s)^2)/(m^3)).
  • Array Tools: A variety of functions for common tasks involving lists, tuples, NumPy arrays, and other array-like objects. For instance, a Python implementation of lists that enforce homogeneous type (similar to a C++ std::vector) is available.
  • File Processors: A set of Python classes for file I/O and processing operations such as computing file hashes and removing comments. These are mainly intended to serve as base classes that can be extended and customized for user-specific applications.
  • String Parsers: Functions for string-parsing tasks, such as analyzing a string like ((x-2)/4)^(-1) to determine which parentheses form matched pairs.

Installation

The recommended way to install PyXX is through pip:

pip install pyxx

For more information about configuring Python and using packages, refer to the official Python documentation on setting up Python and installing packages.

Usage and Documentation

Detailed documentation for the PyXX project can be found here: https://pyxx.readthedocs.io.

The project documentation contains example code, explanations of the concepts behind the package architecture, and detailed API reference. If you're still not certain how to do something after reading it, feel free to create a discussion post!

Acknowledgments

Project source code is hosted on GitHub, releases are distributed through PyPI, and documentation is hosted through Read the Docs. Some README badges were generated using Shields.io.