semvec/pypi-packages huggingface dataset:
2rage-py-challenges 0.1.3
Some python challenges
License: MIT
Requires Python: <4.0,>=3.12

# py_challenges



## Prerequisites

- Python package manager: `pipx` (recommended) or `pip`
- For building the app: `poetry`


## Installation 

```bash
pipx install 2rage-py-challenges
```

or

```bash
pip install 2rage-py-challenges
```

## Run

- `search-methods` 
- `lixical-analyzer`


## Docs


| Path | Content |
| ---- | ------- |
| `lixical_analyzer/*` | Implementation of a Lexical Analyzer Based on Finite Automata |
| `search_methods/*` | Performance analysis of linear probing and binary search tree |
tracing-py3 0.1.1
Superset of python internal logging module
License: MIT
Requires Python: <4.0,>=3.11
Keywords: logging, monitoring, tracing, debugging, python, superset, module, library

# `tracing-py3` - Superset for Python logging

> **DISCLAIMER:**
>
> This library is under active development, expect things to break or not to work as expected.
> Creating an issue for bugs you encounter would be appreciated. Documentation is currently work in
> progress.

## Table of Contents

- [Getting Started](#getting-started)
- [Documentation](#documentation)
- [License (_BSD 3-Clause License_)](#license-bsd-3-clause-license)

## Getting Started

Install using `pip`:

```
pip install tracing-py3
```

Install using `poetry` CLI:

```
poetry add tracing-py3
```

or using `pyproject.toml`:

```toml
[tool.poetry.dependencies]
tracing-py3 = "^0.1.0"
```


## Documentation

Work in Progress...


## License (_BSD 3-Clause License_)

Copyright (c) 2024, Hendrik Böck <<hendrikboeck.dev@protonmail.com>>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
typehints-cleo2 1.0.0
Type-Hinted, Type-Enforced classes for cleo 2.x
License: MIT
Requires Python: <4.0,>=3.11

# Typehinted Classes for Cleo 2.x

The authors of the excellent [Cleo](https://github.com/python-poetry/cleo) library have declared a plan to overhaul Typing in Cleo 3.x, amongst the many other improvements listed in their [Writeup](https://github.com/python-poetry/cleo/issues/415).

In the meantime, some of the projects that I work on make use of Cleo 2.x, whose `Command.option()` and `Command.argument()` methods are annotated with `t.Any` and don't enforce returned types.

This library adds type-hinted, type-enforced wrappers for these methods as a holdover until Cleo 3.x is ready for use.

**If Cleo 3.x is out by the time you're reading this: You should probably be using that instead!**

# PyPi
https://pypi.org/project/typehints-cleo2/

# Installation
### With Poetry:
`poetry add typehints_cleo2`

### With pip:
`pip install typehints_cleo2`

# Example Usage
Modified example from Cleo's [README.md](https://github.com/python-poetry/cleo/blob/cca07a75f8e8cc9095221ab6e3e246baedaecf31/README.md?plain=1#L18)

```python
from cleo.helpers import argument, option

# Instead of `from cleo.commands.command import Command`
from typehints_cleo2 import TypeHintedCommand


# use TypeHintedCommand as a drop-in replacement for cleo's Command class
class GreetCommand(TypeHintedCommand):

    ...

    def handle(self):
        name: str = self.argument_str("name")  # Type-Hinted argument_str guarantees a string return
        ...

    ...

```

## Optional Arguments & Options

```python
class TestCommand(TypeHintedCommand):

    name = "test"
    description = "Test Command"
    arguments = [
        argument("test_argument", description="A test argument", optional=False),
        argument("test_argument2", description="A test argument", optional=True),
    ]
    options = [option("test_option", description="A test option")]

    ...

    def handle(self):
        arg1: str = self.argument_str("test_argument")
        arg2: str | None = self.argument_str_optional("test_argument2")
        opt1: str | bool = self.option_str("test_option")
        self.line(f"Test Command! -- Arg1: '{arg1}' -- Arg2: '{arg2}' -- Opt1: '{opt1}'")

    ...

```
```bash
poetry run python -m my_application test a_test_val

Output: Test Command! -- Arg1: 'a_test_val' -- Arg2: 'None' -- Opt1: 'False'
```