Metadata-Version: 2.4
Name: CounterAJM
Version: 0.1
Summary: basic counter class
Home-page: https://github.com/amcsparron2793-Water/CounterAJM
Download-URL: https://github.com/amcsparron2793-Water/CounterAJM/archive/refs/tags/0.1.tar.gz
Author: Amcsparron
Author-email: amcsparron@albanyny.gov
License: MIT License
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: download-url
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: summary

# CounterAJM

A basic Python counter class for simple incrementing and value tracking.

## Installation

```bash
pip install CounterAJM
```

## Usage

```python
from CounterAJM import Counter

# Initialize a counter
c = Counter(start=0, counter_name="MyCounter")

# Increment the counter
c.increment(5)
print(c.value)  # Output: 5

# String representation
print(c)  # Output: 5 (formatted)
print(repr(c))  # Output: MyCounter: 5

# Reset counter (using deleter)
del c.value
print(c.value)  # Output: 0
```

## Features

- **Custom Start Value**: Initialize the counter at any integer.
- **Counter Naming**: Assign a name to your counter for better logging/representation.
- **Safe Incrementing**: Prevents negative increments and non-integer values.
- **Easy Reset**: Use `del counter.value` to reset the count to 0.
- **Formatted Output**: Built-in `__str__` and `__repr__` for clean display.

## License

MIT License
