semvec/pypi-packages huggingface dataset:
py-gitignore-2 0.0.1
Python implementation of a gitignore parser and checker
Requires Python: >=3.8

# Python Template  Repository

This is a template repository for Python projects that provides a starting point for designing and developing Python applications. It includes a basic project structure, configuration for continuous integration, static analysis, code formatting, and more. You can use this template as a foundation for your Python projects.

## Features

- **Programming Language**: Python
- **Runtime environment**: Python v3.11.x
- **Testing Framework**: unittest
- **Continuous Integration**: GitHub Actions
- **Static Analysis**: Flake8
- **Code Formatting**: Black
- **Package Manager**: pip
- **License**: MIT License

## Getting Started

To use this template for your Python project, follow these steps:

1. **Fork this repository**: Click the "Fork" button at the top right of this page to create a copy of this template repository in your GitHub account.

2. **Clone your fork**: Use `git clone` to clone the repository to your local machine:

   ```sh
   git clone https://github.com/kimonk0299/python-template.git
   ```


3. **Set up virtual environment**: 
   ```sh
   python -m venv .venv
   source .venv/bin/activate
   ```


4. **Install Dependencies**:
   ```sh
   pip install -r requirements.txt
   ```


5. **Add your files to `src/` and unit tests to `tests/`**

6. **Format code**:
   ```sh
   black .
   ```


7. **Run static analysis**:
   ```sh
   flake8
   ```


8. **Run tests**:
   ```sh
   python -m unittest discover -s tests
   ```


9. **Push code on GitHub to run CI tests on GitHub Actions**
calculator-linpel-calc 0.1.4
Basic Python Calculator
Keywords: python,calculations



# Basic Calculator

A basic Python class for arithmetic calculations. `Calculator` performs simple arithmetic calculations:
- Addition / Subtraction
- Multiplication / Division
- Take (n) root of a number.

## Installation
You can incorporate the Calculator class into your Python project by importing it :

## Installation

You can incorporate the `Calculator` class into your Python project by importing it :

```bash
  pip install calculator_linpel_calc
```
    
## Usage/Examples
### Setting up a calculator
To set up `Calculator` calss by importing `Calculator` from `calculator_linpel_calc` and creating an instance.
```python
from Calculator.Calculator import Calculator

# Creata an instance of the Calculator
calculator = Calculator()
```
### Executing Calculator operations
The `Calculator` class able is able to perform calculations:
- `Addition(*arg: float)`: Sum numbers.
- `Subtraction(*arg: float)`: Subtract numbers.
- `Multiplication(*arg: float)`: Multiply numbers together.
- `Division(*arg: float)`: Divide numbers.
- `Root(nth_root: float, number: float)`: Take nth root of number.
Example of Usage
```python
calculator = Calculator()

calculator.Addition(1, 2, 3)    # Adds 1, 2, 3, result: 6.0
calculator.Subtraction(1, 2, 3) # Subracts 1, 2, 3 from self.memory = 0, result: -6.0
calculator.Multiplication(7, 3) # Multiplies 7 by 3, result: 21.0
calculator.Division(9, 3)       # Divides 9 by 3, result: 3.0
calculator.Root(2, 9)           # Takes n-th root (2) of 9, result: 3.0
```
### Error Handling
The `Calculator` class raises a `ZeroDivisionError` when attempting to divide by zero, or 0 root calculations.
### License
This code is released under the [MIT License](https://opensource.org/license/mit/)