Metadata-Version: 2.4
Name: riddscal
Version: 0.1.0
Summary: A simple calculator library with basic mathematical operations
Home-page: https://github.com/yourusername/riddscal
Author: Riddhi Roy
Author-email: riddhi.roy@gmail.com
Project-URL: Bug Reports, https://github.com/yourusername/riddscal/issues
Project-URL: Source Code, https://github.com/yourusername/riddscal
Project-URL: Documentation, https://github.com/yourusername/riddscal/wiki
Keywords: calculator math arithmetic
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-python
Dynamic: summary

# Ridds Calculator

A simple, lightweight calculator library for Python with basic mathematical operations.

## Features

- Addition
- Subtraction
- Multiplication
- Division (with zero-division protection)
- Power/Exponentiation

## Installation

```bash
pip install riddscal
```

## Usage

```python
from riddscal.calculator import add, subtract, multiply, divide, power

# Addition
result = add(5, 3)  # Returns 8

# Subtraction
result = subtract(10, 4)  # Returns 6

# Multiplication
result = multiply(6, 7)  # Returns 42

# Division
result = divide(20, 4)  # Returns 5.0

# Power
result = power(2, 3)  # Returns 8
```

## Error Handling

The `divide()` function raises a `ValueError` if you attempt to divide by zero:

```python
from riddscal.calculator import divide

try:
    result = divide(10, 0)
except ValueError as e:
    print(f"Error: {e}")  # Error: Division by zero
```

## Requirements

- Python 3.7 or higher

## License

MIT License

## Author

Your Name (your.email@example.com)

## Contributing

Contributions are welcome! Please feel free to submit a pull request.

## Changelog

### Version 0.1.0
- Initial release with basic calculator functions
