semvec/pypi-packages huggingface dataset:
ost-skg-if-api-tools 0.1.4
This project merges multiple OpenAPI specifications extensions into a single core specification for SKG IF.
Requires Python: >=3.12

# OpenAPI merge spec

### Installation
```shell
uv add ost-skg-if-api-tools
#or
pip install ost-skg-if-api-tools
```

### Usage
1. as a command line tool:
```shell
source .venv/bin/activate
merge merge/API/core/skg-if-api.yaml merge/API/ext/service.yaml
```
**there can be more than one extension file, e.g. `merge/API/ext/service.yaml merge/API/ext/another.yaml`**
2. as a python module:
```python
from merge.merge import load_and_merge
load_and_merge(
    core_file="merge/API/core/skg-if-api.yaml",
    ext_files=["merge/API/ext/service.yaml", "merge/API/ext/another.yaml"]
)
```
3. as a web service:
TBD



Specify what should be changed in/added to the SKG-IF OpenAPI YAML, which supports the core SKG-IF data model, for an extension. RThis document will use an example __server__ extension.

## Header

Identify the extension. Potentially specify which extension(s) it extends and should already have been merged in the core OpenAPI YAML.

```yaml
extension: service
# depends-on: foo
# depends-on: bar
skg-if-api:
```

## Add tags
Add one or more tags. Each tag key, e.g. `tag-service`, should be unique. The `+` prefix tells the merger to add the tag.

```yaml
  +tag-service:
    name: Service
    description: Lorem ipsum dolor sit amet. 
  #+tag-another:
```

## Add schemas

Add one or more schemas. Each schema key, e.g. `path-service`, should be unique. The `+` prefix tells the merger to add the schema.

```yaml
  +path-service:
    '/services/{local_identifier}':
      get:
        tags:
            - Service
  ...
  +path-services:
    '/services':
      get:
        tags:
            - Service
  ...
```

### Modify a schema

Modify an existing (core) schema. Add the `~` prefix to the key of the schema to modify. Then copy all the steps that are needed to get to where a field has to be added or modified. In the example below its up to `properties`, to which `services` is added indicated by the `+` prefix. To step into the right item of a list the right position can be achieved with empty `-` items. The `~enum` showcases a modification of its value list, i.e. adding the `portal` value.

```yaml
~schema-venue:
    Venue:
      allOf:
        -
        - type: object
          properties:
            type:
              ~enum: portal
            +services:
              type: array
              items:
                $ref: '#/components/schemas/Service'
```
resolve-hosts 0.3.2
Resolve list of DNS hostnames.

# resolve-hosts
Resolve list of DNS hostnames.

This is a Python module designed to fit the need of a simple app that can
query an input list of DNS names and output their resolved IP addresses. It
defaults to using the local system resolver for lookups, but can instead
use a list of one or more custom DNS resolvers supplied on the command line.

## Installation
This is a setuptools package; install using pip:

```
pip install resolve-hosts
```

It's recommended to use [pipx](https://pypa.github.io/pipx/) for easy setup and
isolation:

```
pipx install resolve-hosts
```

## Usage
The module installs a command line tool called `resolve-hosts` that should be
in your `PATH`. For a usage overview, see the output of `resolve-hosts -h`. 

Feed it a newline-separated list of names as a parameter. To read from
standard input, omit the parameter or use `-` for the input.

A file with a few sample names to resolve is in the `tests/` folder.

Example using the local system resolver:

```
$ resolve-hosts tests/testnames.txt 
www.example.com             93.184.216.34
blocked.test.on.quad9.net   NXDOMAIN
mxs.mail.ru                 94.100.180.31 217.69.139.150
magnolia.ns.cloudflare.com  172.64.34.214 108.162.194.214 162.159.38.214
```

The above system is clearly configured to use [Quad9](https://www.quad9.net/)
resolvers, as the local resolver returned NXDOMAIN for the test FQDN.

Using specified resolvers and debug output enabled:

```
$ resolve-hosts -s 8.8.4.4 -s 8.8.8.8 -d tests/testnames.txt 
[DEBUG] configured to use resolver(s): ['8.8.4.4', '8.8.8.8']
[DEBUG] effective resolver address(es): ['8.8.4.4', '8.8.8.8']
www.example.com             93.184.216.34
blocked.test.on.quad9.net   127.0.0.1
mxs.mail.ru                 217.69.139.150 94.100.180.31
magnolia.ns.cloudflare.com  172.64.34.214 108.162.194.214 162.159.38.214
```

JSON output from data on stdin:

```
$ resolve-hosts -j < tests/testnames.txt 
{
    "data": [
        {
            "www.example.com": [
                "93.184.216.34"
            ]
        },
        {
            "blocked.test.on.quad9.net": [
                "NXDOMAIN"
            ]
        },
        {
            "mxs.mail.ru": [
                "217.69.139.150",
                "94.100.180.31"
            ]
        },
        {
            "magnolia.ns.cloudflare.com": [
                "162.159.38.214",
                "108.162.194.214",
                "172.64.34.214"
            ]
        }
    ]
}
```
whitespaces 0.1.0
A tool to remove empty lines and clean up whitespace in Python files
Requires Python: >=3.8

# whitespaces
https://pypi.org/project/whitespaces/
A Python tool to remove empty lines and clean up whitespace in Python files, with a special focus on removing unnecessary empty lines within functions.

## Installation

Simply run:
```bash
pip install whitespaces
```

That's it! All dependencies will be automatically installed.

## Usage

You can use whitespaces either as a command-line tool or as a library in your Python code.

### Command Line Usage

```bash
# Clean a single file
whitespaces run file.py

# Clean multiple files
whitespaces run file1.py file2.py

# Clean all Python files in a directory
whitespaces run .
```

### Python Usage

```python
from whitespace import clean_file

# Clean a single file
clean_file("path/to/your/file.py")
```

## Features

- Removes empty lines within functions
- Preserves necessary whitespace for Python syntax
- Maintains code readability while reducing unnecessary spacing
- Supports both single file and directory processing
- Can be used as a CLI tool or Python library

## Dependencies

All of these will be installed automatically when you install the package:
- click>=8.0.0 - For command line interface
- loguru>=0.7.0 - For logging
- pydantic>=2.0.0 - For data validation
- typing-extensions>=4.0.0 - For type hints
- rich>=13.0.0 - For beautiful terminal output

## License

MIT License
file-splitter-harsh 1.0.6
A simple Python library to split large text files into smaller parts.
Requires Python: >=3.6

# file-splitter-harsh

A Python library to efficiently split large text files into smaller chunks and perfect for preprocessing large datasets, logs, or CSV files.

---

## Installation

Install using pip:

```bash
pip install file-splitter-harsh


## Example
from filesplitter.splitter import FileSplitter

# Initialize the splitter
splitter = FileSplitter(
    file_path="large_file.txt",     # Path to the input file
    lines_per_file=1000,            # Number of lines per output file
    output_dir="output",            # Directory to save split files
    file_prefix="chunk"             # Prefix for output file names
)

# Start splitting the file
splitter.split()

| Parameter        | Type | Default        | Description                                     |
| ---------------- | ---- | -------------- | ----------------------------------------------- |
| `file_path`      | str  | Required       | Path to the input file                          |
| `lines_per_file` | int  | `1000`         | Number of lines each output file should contain |
| `output_dir`     | str  | `"output"`     | Directory where output files will be saved      |
| `file_prefix`    | str  | `"split_part"` | Prefix to use for each generated file name      |

#Example Output
If your input file has 2500 lines and lines_per_file=1000, you'll get:
output/
-chunk_1.txt  (1000 lines)
-chunk_2.txt  (1000 lines)
-chunk_3.txt  (500 lines)

Logging Example
2025-06-12 10:00:00 - INFO - File splitting complete! 3 files created in 'output'
whitespacerun 0.1.0
A tool to remove empty lines and clean up whitespace in Python files
Requires Python: >=3.8

# whitespacerun

A Python tool to remove empty lines and clean up whitespace in Python files, with a special focus on removing unnecessary empty lines within functions.

## Installation

Simply run:
```bash
pip install whitespacerun
```

That's it! All dependencies will be automatically installed.

## Usage

You can use whitespacerun either as a command-line tool or as a library in your Python code.

### Command Line Usage

```bash
# Clean a single file
whitespacerun run file.py

# Clean multiple files
whitespacerun run file1.py file2.py

# Clean all Python files in a directory
whitespacerun run .
```

### Python Usage

```python
from whitespace import clean_file

# Clean a single file
clean_file("path/to/your/file.py")
```

## Features

- Removes empty lines within functions
- Preserves necessary whitespace for Python syntax
- Maintains code readability while reducing unnecessary spacing
- Supports both single file and directory processing
- Can be used as a CLI tool or Python library

## Dependencies

All of these will be installed automatically when you install the package:
- click>=8.0.0 - For command line interface
- loguru>=0.7.0 - For logging
- pydantic>=2.0.0 - For data validation
- typing-extensions>=4.0.0 - For type hints
- rich>=13.0.0 - For beautiful terminal output

## License

MIT License