NumPy-style degree-based trigonometric helpers.
Project description
qalk
qalk re-exports NumPy's public API and adds degree-based trigonometric helpers.
Install
uv add qalk
Usage
from qalk import *
print(sind(30)) # 0.5
print(cosd(60)) # 0.5
print(arcsind(0.5)) # 30.0
print(arctan2d(1, 1)) # 45.0
print(s(1234)) # 1.23e+03
print(s([1, 20, 300])) # [1.00e+00 2.00e+01 3.00e+02]
The regular NumPy symbols are also available through the same import:
from qalk import array, pi, s, sin, sind
Development
uv sync --extra dev
uv run pytest
uv build
Release
PyPI does not allow reusing the same uploaded filename, so each publish needs a new version.
Use the helper script to bump the version, test, build, and publish in one flow:
./scripts/release.sh patch
You can also use minor or major instead of patch.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qalk-0.1.1.tar.gz.
File metadata
- Download URL: qalk-0.1.1.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
188739678afc2fe3b57eaf6f38edcc0d947773c934f56c91fb7e1e4b10c55430
|
|
| MD5 |
2bd6b60d2eb943442b3153845478d6b3
|
|
| BLAKE2b-256 |
935f0c07e32fa4038d9485db8f14a6a40d6074e3a76aba5db24ba7051614f7fa
|
File details
Details for the file qalk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: qalk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8522f3e573249ac0ef93b9893efa70ffea40ee8849433b5057c39adcd018f121
|
|
| MD5 |
c5e4d2d9f3b7a4d1330ba34e142ca7d7
|
|
| BLAKE2b-256 |
d982cac428409eece6062c52f6f41b8356846911fbf37b122636300ee0b987bf
|