PyCalGo
A high-performance, cross-platform Python calculator library using Go-based native implementations.
Features
Basic Arithmetic
- Addition, subtraction, multiplication, division
- Integer operations with native Go performance
Scientific Functions
- Square root, power, logarithm
- Trigonometric functions (sin, cos, tan)
- Double precision floating-point operations
Unique Fast Operations
- Fast bit counting for 64-bit integers
- Modular factorial computation
- XorShift pseudo-random number generation
Installation
pip install pycalgo
Quick Start
import pycalgo
# Basic arithmetic
print(pycalgo.add(10, 5)) # 15
print(pycalgo.mul(6, 7)) # 42
# Scientific functions
print(pycalgo.sqrt(16)) # 4.0
print(pycalgo.sin(1.57)) # ~1.0
# Fast operations
print(pycalgo.bitcount(15)) # 4 (binary: 1111)
print(pycalgo.factmod(5, 7)) # 1 (5! mod 7)
# Random number generation
rand, new_seed = pycalgo.xorshift(12345)
print(f"Random: {rand}")
Platform Support
- Windows: Uses
calculator.dll - Linux: Uses
calculator.so - macOS: Uses
calculator.dylib
Requirements
- Python 3.6 or higher
- Native library automatically selected based on OS
Release files for pycalgo 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycalgo-0.3.0.tar.gz | 3.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycalgo-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 MB
Release files / pycalgo-0.3.0.tar.gz
| Download URL | pycalgo-0.3.0.tar.gz |
|---|---|
| Size | 3.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef3204f42fdc0380cccc40edf7c4569433831221a9aad44829f222da822bef2e
|
|
BLAKE2b-256 checksum How to use checksums |
d54d522f48a88d05cf678cb7fe4afaa90dc3d2e618f9c8fecadc3c71e29a8a55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / pycalgo-0.3.0-py3-none-any.whl
| Download URL | pycalgo-0.3.0-py3-none-any.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d4837af3545625c746cc34e1d385d56202fae7af0560989dbfc4e3e47374c32
|
|
BLAKE2b-256 checksum How to use checksums |
e9bc4fee261137e7a58048973c0d94e84465c18934effaaba6d9f6bbe7c72c80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|