# 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
```bash
pip install pycalgo
```
## Quick Start
```python
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
Raw data
{
"_id": null,
"home_page": "https://github.com/Pranesh-2005/Go_plus_python_simple_calculator_package",
"name": "pycalgo",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "calculator, math, go, native, performance, cross-platform",
"author": "Pranesh",
"author_email": "praneshmadhan646@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d5/4d/522f48a88d05cf678cb7fe4afaa90dc3d2e618f9c8fecadc3c71e29a8a55/pycalgo-0.3.0.tar.gz",
"platform": null,
"description": "# PyCalGo\r\n\r\nA high-performance, cross-platform Python calculator library using Go-based native implementations.\r\n\r\n## Features\r\n\r\n### Basic Arithmetic\r\n- Addition, subtraction, multiplication, division\r\n- Integer operations with native Go performance\r\n\r\n### Scientific Functions\r\n- Square root, power, logarithm\r\n- Trigonometric functions (sin, cos, tan)\r\n- Double precision floating-point operations\r\n\r\n### Unique Fast Operations\r\n- Fast bit counting for 64-bit integers\r\n- Modular factorial computation\r\n- XorShift pseudo-random number generation\r\n\r\n## Installation\r\n\r\n```bash\r\npip install pycalgo\r\n```\r\n\r\n## Quick Start\r\n\r\n```python\r\nimport pycalgo\r\n\r\n# Basic arithmetic\r\nprint(pycalgo.add(10, 5)) # 15\r\nprint(pycalgo.mul(6, 7)) # 42\r\n\r\n# Scientific functions\r\nprint(pycalgo.sqrt(16)) # 4.0\r\nprint(pycalgo.sin(1.57)) # ~1.0\r\n\r\n# Fast operations\r\nprint(pycalgo.bitcount(15)) # 4 (binary: 1111)\r\nprint(pycalgo.factmod(5, 7)) # 1 (5! mod 7)\r\n\r\n# Random number generation\r\nrand, new_seed = pycalgo.xorshift(12345)\r\nprint(f\"Random: {rand}\")\r\n```\r\n\r\n## Platform Support\r\n\r\n- **Windows**: Uses `calculator.dll`\r\n- **Linux**: Uses `calculator.so`\r\n- **macOS**: Uses `calculator.dylib`\r\n\r\n## Requirements\r\n\r\n- Python 3.6 or higher\r\n- Native library automatically selected based on OS\r\n",
"bugtrack_url": null,
"license": null,
"summary": "A cross-platform Python calculator library using Go-based native implementations",
"version": "0.3.0",
"project_urls": {
"Homepage": "https://github.com/Pranesh-2005/Go_plus_python_simple_calculator_package"
},
"split_keywords": [
"calculator",
" math",
" go",
" native",
" performance",
" cross-platform"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "e9bc4fee261137e7a58048973c0d94e84465c18934effaaba6d9f6bbe7c72c80",
"md5": "8c27ae9aeed3eb3ad263a643d962c0fd",
"sha256": "7d4837af3545625c746cc34e1d385d56202fae7af0560989dbfc4e3e47374c32"
},
"downloads": -1,
"filename": "pycalgo-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8c27ae9aeed3eb3ad263a643d962c0fd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 3081213,
"upload_time": "2025-09-04T04:18:04",
"upload_time_iso_8601": "2025-09-04T04:18:04.761603Z",
"url": "https://files.pythonhosted.org/packages/e9/bc/4fee261137e7a58048973c0d94e84465c18934effaaba6d9f6bbe7c72c80/pycalgo-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "d54d522f48a88d05cf678cb7fe4afaa90dc3d2e618f9c8fecadc3c71e29a8a55",
"md5": "0d8991c3d6588ccc0993d28f5a1939a5",
"sha256": "ef3204f42fdc0380cccc40edf7c4569433831221a9aad44829f222da822bef2e"
},
"downloads": -1,
"filename": "pycalgo-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "0d8991c3d6588ccc0993d28f5a1939a5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3069998,
"upload_time": "2025-09-04T04:18:09",
"upload_time_iso_8601": "2025-09-04T04:18:09.294596Z",
"url": "https://files.pythonhosted.org/packages/d5/4d/522f48a88d05cf678cb7fe4afaa90dc3d2e618f9c8fecadc3c71e29a8a55/pycalgo-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-04 04:18:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Pranesh-2005",
"github_project": "Go_plus_python_simple_calculator_package",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pycalgo"
}