A package for wrapping angles in radians and degrees
Project description
Angle Wrapper
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
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 Distribution
File details
Details for the file anglewrapper-0.1.1.tar.gz
.
File metadata
- Download URL: anglewrapper-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69f2bdfa0d448ec4e0d4e03fb297d28a705b7874b30824aa6125fd4007db2bd6 |
|
MD5 | e9b5879b00274a30d55a3f2b37af6deb |
|
BLAKE2b-256 | 0c028981c735dd9645d098ff33ca7a134e70798bf04321480495258d3b91c9eb |
File details
Details for the file anglewrapper-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: anglewrapper-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6119594e3d31f4cafabb4994af5547f2556583c20f3a67d7dccb94e8305c0767 |
|
MD5 | bc9abe3040456b0546b7fbd3f2453314 |
|
BLAKE2b-256 | 3a234beb1c564cc8d8463643dac181b6307e8a69846019ee2d838a377a63cf0e |