Skip to main content

A package for wrapping angles in radians and degrees

Project description

Angle Wrapper

Python package

release

A simple Python only toolbox for wrapping angles to $\pm180^\circ$, $\left[0^\circ, 360^\circ\right]$, $\pm\pi$, or $\left[0, 2\pi\right]$. Wraps single values, tuples, lists, and other various iterable types that implement the __iter__ attribute such as NumPy arrays and Pandas data series.

To install: pip install anglewrapper

To run:

from anglewrapper import wrap
wrap.to_180(270)

This package has no external dependancies to run in Python-only mode. Development and testing requires pytest or unittest installed in the local environment as well as numpy.

Read me update to trigger automatic release update.

This package is serving a few purposes:

  • Writing good Python code
  • Some basic "agile" workflow practice including
    • Short lived branches for specific features
    • Unit testing
    • Code formatting and linting
  • Continuous integration and continuous delivery to PyPI via GitHub Actions
  • Building, testing, and delivering Python packages
  • Some basic C++ practice and packaging it into libraries and/or Python packages

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

anglewrapper-0.1.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

anglewrapper-0.1.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

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