semvec/pypi-packages huggingface dataset:
timing-utils 0.1.3
Simple utilities to time synchronous and asynchronous Python functions.
License: MIT
Requires Python: >=3.8

# timing-utils

Simple utilities to time the execution of synchronous and asynchronous Python functions.

## Installation

```bash
pip install timing-utils
```

## Usage

```python
from timing_utils import timeit, async_timeit

@timeit
def fast_func():
    return sum(range(10000))

@async_timeit
async def slow_async_func():
    import asyncio
    await asyncio.sleep(1)

# Example of running the async function (in an async environment):
# await slow_async_func()
```

## Contributing

Contributions are welcome! To contribute:

1. Fork the repository
2. Create a new branch: `git checkout -b feature/your-feature-name`
3. Make your changes and add tests if needed
4. Run tests locally: `make test`
5. Submit a pull request

Please follow the existing coding style and include relevant documentation if applicable.

## License

This project is licensed under the [MIT License](LICENSE).
iteroo 0.0.1
Object orientated iterator wrapper.
License: MIT
Requires Python: >=3.8
Keywords: functional, iterators

# iteroo

Object-oriented iterator wrapper for Python


## Description

**iteroo** provides a functional, object-oriented interface for working with iterators in Python. It wraps any iterable and exposes a rich set of methods for chaining, transformation, and collection, inspired by functional programming and modern iterator libraries.

- Chainable, lazy iterator operations
- Functional-style methods: `map`, `filter`, `takewhile`, `dropwhile`, `flatten`, etc.
- Collect results as lists, sum, count, and more
- 100% test coverage, MIT licensed

## Features

- `it`: Main iterator wrapper class
- `map`, `filter`, `enumerate`, `takewhile`, `dropwhile`, `flatten`, `pairwise`, `select`, `zip`, `cycle`, `diff`, `inmap`, `alltrue`, `allfalse`, `equal`, `allequal`, `sum`, `count`, `max`, `take_n`, `take_every_nth`
- Utility functions: `range`, `count`, `repeat`

## Installation

```bash
pip install iteroo
```
Or for development:
```bash
uv pip install -e '.[test]'
```

## Usage

```python
from iteroo import it

# Basic usage
nums = it([1, 2, 3, 4, 5])
even = nums.filter(lambda x: x % 2 == 0).collect()  # [2, 4]

# Chaining
result = (
    it.range(10)
      .filter(lambda x: x % 2)
      .map(lambda x: x * 10)
      .take_n(3)
      .collect()
)
# result: [10, 30, 50]

# Flattening
nested = it([[1, 2], [3, 4]])
flat = nested.flatten().collect()  # [1, 2, 3, 4]

# Pairwise difference
seq = it([1, 4, 9, 16])
diffs = seq.diff().collect()  # [3, 5, 7]

# Inmap (apply multiple functions to each element)
a = it([[1, 1], [2, 2], [3, 3]])
b = a.inmap([lambda x: x + 1, lambda x: x + 2]).collect()  # [[2, 3], [3, 4], [4, 5]]

# Utilities
from iteroo.it import repeat
assert repeat('a', 3).collect() == ['a', 'a', 'a']

```

## Testing

To run the tests and check coverage:

```bash
uv pip install -e '.[test]'
pytest --cov=src/iteroo --cov-report=term-missing
```

To generate an HTML coverage report:

```bash
pytest --cov=src/iteroo --cov-report=html
# Open htmlcov/index.html in your browser
```

## License

MIT License. See [LICENSE](LICENSE).
stupa 0.1.2
A Django API toolkit for response utilities, exceptions, middleware, and alert handlers.
License: MIT
Requires Python: >=3.8

# stupa

A Django API toolkit for response utilities, exceptions, middleware, and alert handlers.

_Open source version of Skillspe's stupa package_

## Features

- **Response Utilities**: Standardized response classes with consistent structure
- **API Exceptions**: Custom exception handling for better error management
- **Exception Middleware**: Middleware for graceful API error handling
- **Alert Handlers**: Multi-platform alert system (Discord, Slack, Email)

## Installation

```bash
pip install stupa
```

## Requirements

- Python >= 3.7
- Django

## License

MIT License

## Links

- [GitHub Repository](https://github.com/ramsuthar305/stupa)
- [Issue Tracker](https://github.com/ramsuthar305/stupa/issues)