Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qalk-0.1.1.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qalk-0.1.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

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

Hashes for qalk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 188739678afc2fe3b57eaf6f38edcc0d947773c934f56c91fb7e1e4b10c55430
MD5 2bd6b60d2eb943442b3153845478d6b3
BLAKE2b-256 935f0c07e32fa4038d9485db8f14a6a40d6074e3a76aba5db24ba7051614f7fa

See more details on using hashes here.

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

Hashes for qalk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8522f3e573249ac0ef93b9893efa70ffea40ee8849433b5057c39adcd018f121
MD5 c5e4d2d9f3b7a4d1330ba34e142ca7d7
BLAKE2b-256 d982cac428409eece6062c52f6f41b8356846911fbf37b122636300ee0b987bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page