semvec/pypi-packages huggingface dataset:
otime 0.1.3
A package for analyzing time complexity of functions
Requires Python: >=3.8

# OTime: Time Complexity Analyzer
A Python package for empirically analyzing the time complexity of functions.

## Installation
```bash
pip install otime
```

## Usage
```python
from otime import analyze_time_complexity

def my_function(data):
    # Your function here
    pass

sizes = [100, 200, 400, 800, 1600]
complexity, r_squared = analyze_time_complexity(
    my_function,
    lambda x: list(range(x)),  # Input generator
    sizes
)
print(f"Time complexity: {complexity}")
print(f"R-squared: {r_squared}")
```

## More examples
```python
from otime import analyze_time_complexity

# Example usage
def example_input_generator(size):
    """Generate a list of given size for testing."""
    return size

def func(n):
    for i in range(n):
        j = i * i
        while j > 0:
            j //= 4

sizes = [100, 200, 400, 800, 1600, 3200]
complexity, r_squared = analyze_time_complexity(
    func, 
    example_input_generator,
    sizes,
    save_plot=True
)
print(f"\nResults:")
print(f"Detected time complexity: {complexity}")
print(f"R-squared value: {r_squared:.4f}")
```

## Features
- Automatic time complexity detection
- Visual plotting of results
- Support for common complexity classes
- Robust numerical analysis

## License
MIT License
Paolog-Pynecraft 0.1.1.post2
A Minecraft recreation made with Ursina

# Pynecraft
Welcome to Pynecraft !!!

## What is this?
Pynecraft is my first programming project, made in Python. His goal is to make a moddable minecraft recreation, using the Ursina Engine

## How can I install this?
You can install Pynecraft with
```bash
python3 -m pip install Paolog_Pynecraft
```

If you have already an outdated version of Pynecraft, you can upgrade it by doing:
```bash
python3 -m pip install Paolog_Pynecraft -U
```

## How can I launch this?
You can launch Pynecraft with:
```bash
python3 -m Paolog_Pynecraft
```
aiolang2 0.0.1
Translate Google Framework For Python
Keywords: python, translate


<p align="center">
<img src="https://raw.githubusercontent.com/S5W1n72/aiolang/refs/heads/main/icon.png" alt="icon" width="128">
<br>

<b> Translate Google Framework For Python</b>
</p>

## aiolang

> Simple, modern, asynchronous for API building use or normal user use.

---

### Example Usage
#### Muddle 1
```python
import asyncio
from aiolang import Translate

async def main():
    async with Translate() as translate:
        request = await translate.translate("Hello, World!", "KO")
        print(request)

if __name__ == "__main__":
    asyncio.run(main())
```
#### Muddle 2
```python
import asyncio
from aiolang import Translate

async def main():
    translate = Translate()
    request = await translate("Hello, World!", "KO")
    print(request)

if __name__ == "__main__":
    asyncio.run(main())
```
---

### Key Features

- API:
>No key needed. Google translator public API is used.

- Easy:
>Simple appearance and syntax for novice users.

- Async:
>Written asynchronously for greater flexibility.

---

### Install

```bash
pip3 install -U aiolang
```

### support
- [email](mailto:aiolang.python@gmail.com)
- [telegram](https://t.me/aiolang)

<p align="center">
<img src="https://raw.githubusercontent.com/S5W1n72/aiolang/refs/heads/main/cover.png" alt="cover", width="360">
</p>
pytest-stochastics 0.4.4
pytest plugin that allows selectively running tests several times and accepting *some* failures.
Requires Python: <4.0,>=3.10

# pytest-stochastics

A pytest plugin for running stochastic tests with configurable policies.

> Definition: Stochastic Test - A test that may occasionally fail due to the non-deterministic character of the test subject. Evaluated by an `at_least` of out `out_of` model.

## Features

- Run stochastic tests multiple times with customizable pass/fail criteria
- Configure different test plans with fallback options

## Installation

You can install pytest-stochastics using pip:

```bash
pip install pytest-stochastics
```

## Usage

### Configuration

Create a `pytest_stochastics.json` file in your project root with your test configuration:

```json
{
    "test_plans": [
        {
            "plan": "weak",
            "policy_tests": [
                {
                    "policy": "always",
                    "tests": [
                        "tests/test_abc/test_1", 
                    ]
                },
                {
                    "policy": "mostly",
                    "tests": [
                        "tests/test_abc/test_2",
                        "tests/test_abc/test_3"
                    ]
                }
            ]
        },
        {
            "plan": "strong",
            "policy_tests": [
                {
                    "policy": "always",
                    "tests": [
                        "tests/test_abc/test_2"
                    ]
                }
            ]
        }
    ],
    "policies": [
        {
            "policy": "always",
            "at_least": 3,
            "out_of": 3
        },
        {
            "policy": "mostly",
            "at_least": 2,
            "out_of": 3
        }
    ],
    "plan_fallbacks": [
        {
            "plan": "strong",
            "overrides": "weak"
        }
    ]
}
```

### Running Tests

Run your tests as usual with pytest:

```bash
pytest
```
> **You may override the default behaviour by defining a custom plan named `default`.**

To specify a plan:

```bash
pytest --plan="name of plan"
```
NyxianXD 1.0.2
Library Python untuk uploader Nyxian Network.
Requires Python: >=3.6

# NyxianXD
NyxianXD adalah pustaka Python untuk berinteraksi dengan endpoint uploader Nyxian tanpa perlu mengungkapkan URL endpoint.

## Instalasi
```
pip install NyxianXD
```

## Contoh Penggunaan
```python
from NyxianXD import NyxianXD

# Inisialisasi dengan API Key Anda
client = NyxianXD("API_KEY_ANDA")

# Mendapatkan informasi pengguna
user_info = client.get_user_info()
print(user_info)

# Mengunggah file
url = client.upload_file("path/to/your/file.jpg")
print("File URL:", url)
```
idcrockford 0.1.2
Crockford Base32 ID generation and validation
Requires Python: >=3.12

# IDCrockford

Crockford Base32 ID encoder/decoder with FastAPI dependency injection support for validation and generation of Crockford Base32 IDs.

`idcrockford` has 3 interfaces:

- CLI
- Library
- FastAPI dependency

## Installation

```bash
pip install idcrockford
```

or using [uv](https://docs.astral.sh/uv/):

```bash
uvx idcrockford
```

## CLI

```bash
uvx idcrockford --help

usage: idcrockford [-h] [--checksum] [--split SIZE] [--padding] [--strict] {encode,decode,normalize,generate} [input]

Crockford Base32 Utility

positional arguments:
  {encode,decode,normalize,generate}
                        Operation to perform
  input                 Input to process. For encode: integer or string. For generate: size (optional)

options:
  -h, --help            show this help message and exit
  --checksum            Add/validate checksum symbol
  --split SIZE          Split encoded string with hyphens (chunk size, default: no splitting)
  --padding             Add padding characters (=) to output
  --strict              Strict mode for normalize command - error if normalization needed
```

## Library

```python
from idcrockford import Base32Crockford

crockford = Base32Crockford(
    checksum=True,
    split=4,
    padding=True,
)

# Encode and decode
crockford.encode(1234567890) # 14SC-0PJV
crockford.decode("14SC-0PJV") # 1234567890

# Generate
crockford.generate() # 16 random characters
crockford.generate(size=10) # 10 random characters
crockford.generate(size=10, checksum=True, split=4, padding=True) # 10 random characters with checksum, split and padding

# TODO: add normalize
crockford.normalize("14SC-0PJV") # 14SC0PJV
```

## FastAPI Dependency

```python
from fastapi import FastAPI, Depends
from idcrockford import CFIdentifierConfig

IdentifierConfig = CFIdentifierConfig(checksum=True, size=16)

app = FastAPI()

@app.get("/items/{id}")
def read_item(id: str = Depends(IdentifierConfig.validate)):
    return {"id": id}

@app.post("/items/")
def create_item(id: str = Depends(IdentifierConfig.generate)):
    return {"id": id}
```

## Roadmap

- [ ] Add `normalize` method to `CFIdentifierConfig`
- [ ] Support Pydantic custom type for Crockford Base32 ID validation and generation

## License

MIT

### Other packages

- [inveniosoftware/base32-lib](https://github.com/inveniosoftware/base32-lib) - Python Base32 encoder/decoder with no padding
- [jbittel/base32-crockford](https://github.com/jbittel/base32-crockford) - JavaScript Base32 encoder/decoder with Crockford checksum
- [DrSLDR/krock32](https://github.com/DrSLDR/krock32) - Kotlin Base32 encoder/decoder with Crockford checksum
- [pat-jpnk/Crockford-Base32](https://github.com/pat-jpnk/Crockford-Base32) - JavaScript Base32 encoder/decoder with Crockford checksum
nipcat 0.2.0
ip calculator
Requires Python: <4.0,>=3.10

<div align="center">
  <img src="./logo.png" alt="nipcat Logo" width="200">
  <h1>NipCat</h1>
  <p>TCP/IP Swiss Army Knife</p>
  <a href="https://github.com/walidsa3d/actions/workflows/test.yml">
    <img src="https://img.shields.io/github/actions/workflow/status/walidsa3d/nipcat/test.yml?branch=main&style=flat-square" alt="Test Status">
  </a>
  <a href="https://github.com/walidsa3d/nipcat/blob/main/LICENSE">
    <img src="https://img.shields.io/github/license/walidsa3d/nipcat?style=flat-square" alt="License">
  </a>
</div>

NipCat is a TCP/IP Swiss Army Knife.

## 🚀 Features


## Installation
```
pip install nipcat
```

## Usage
```
nipcat -i
nipcat 192.168.0.1/22
```

## 🧑‍💻 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## 📄 License
This project is licensed under the MIT License. See the LICENSE file for more details.
gitignore-find 1.2.0
Find all paths in the specified directory that are ignored by .gitignore files
Requires Python: >=3.9
Keywords: git, gitignore, ignore

# gitignore-find

查找指定目录下所有被`.gitignore`文件忽略的路径，功能与`git check-ignore **/*`类似：

* 允许指定多个目录并检查其中所有的`.gitignore`文件
* 被`.gitignore`文件忽略的路径会尝试合并避免路径过多
* 超级快！

常见的用法是找出home目录下所有git仓库下忽略的目录用于从备份目录中排除

## 安装

目前只提供python扩展，使用pip从pypi安装

```sh
pip install gitignore-find
```

>提供了一个简单的命令行程序find但只能使用源码构建`cargo build --example find -r`

### 运行

```python
import gitignore_find
import logging

logging.basicConfig(level=5)
# logging.basicConfig(level=logging.DEBUG)

ignoreds = gitignore_find.find_ignoreds(
    ["."],
    excludes=["**/.git/**", "**/.cargo", "**/.vscode*", "**/.env"],
)

print("\n".join(ignoreds))
```

## 性能

在6核9750H SSD设备 wsl debian中运行下面是测试示例从home目录60万个路径中的1061个`.gitignore`文件找出忽略路径的用时是5秒左右，如果有缓存可以减少到2秒不到

```console
$ hyperfine --warmup 3 'target/release/examples/find ~'
Benchmark 1: target/release/examples/find ~
  Time (mean ± σ):      1.813 s ±  0.072 s    [User: 9.317 s, System: 3.497 s]
  Range (min … max):    1.743 s …  1.945 s    10 runs

$ hyperfine --prepare 'sync; echo 3 | sudo -n tee /proc/sys/vm/drop_caches' 'target/release/examples/find ~'
Benchmark 1: target/release/examples/find ~
  Time (mean ± σ):      5.167 s ±  0.179 s    [User: 12.203 s, System: 11.762 s]
  Range (min … max):    4.875 s …  5.557 s    10 runs

$ echo 3 | sudo -n tee /proc/sys/vm/drop_caches >/dev/null; time target/release/examples/find ~ >/dev/null
[2024-12-01T04:46:54.270Z DEBUG gitignore_find] Finding git ignored paths with exclude globs [] in 1 paths: ["/home/navyd"]
[2024-12-01T04:46:54.270Z DEBUG gitignore_find] Finding all paths in /home/navyd
[2024-12-01T04:46:54.270Z TRACE gitignore_find] Traversing paths in directory /home/navyd
[2024-12-01T04:46:57.577Z TRACE gitignore_find] Found 611706 paths for /home/navyd
[2024-12-01T04:46:57.984Z DEBUG gitignore_find] Finding ignored paths with 1061 gitignores and exclude pattern GlobPathPattern { patterns: [] } in /home/navyd
[2024-12-01T04:46:58.831Z DEBUG gitignore_find] Found 120054 ignored paths for all paths "/home/navyd"
[2024-12-01T04:46:58.851Z TRACE gitignore_find] Getting sub paths from 120054 ignoreds paths
[2024-12-01T04:46:59.241Z TRACE gitignore_find] Traversing all sub paths of 1061 .gitignore paths
[2024-12-01T04:46:59.252Z DEBUG gitignore_find] Merging 120054 ignored paths
[2024-12-01T04:46:59.330Z DEBUG gitignore_find] Found 984 ignored paths for ["/home/navyd"]
target/release/examples/find ~ > /dev/null   11.92s  user 11.44s system 460% cpu 5.074 total
avg shared (code):         0 KB
avg unshared (data/stack): 0 KB
total (sum):               0 KB
max memory:                207 MB
page faults from disk:     33
other page faults:         2994
```
siften 0.1.0
A Python library for Siften.
Requires Python: >=3.8

# Siften

A Python library for Siften.

## Installation

```bash
pip install siften
```

## Quick Start

```python
from siften import execute_strategy

# Execute a trading strategy
strategy_result = execute_strategy(
    user_id="user123",
    agent_id="agent456",
    symbol="BTCUSDT",
    quantity=0.001,
    exchange="Binance",
    strategy="Trend Following",
    stop_loss=0.02,  # 2% stop loss
    profit_take=0.05  # 5% take profit
)
```

## Trading Strategy Execution

The `execute_strategy` function allows you to implement trading strategies with customizable parameters:

| Parameter   | Type  | Description                          |
| ----------- | ----- | ------------------------------------ |
| user_id     | str   | User identifier                      |
| agent_id    | str   | Agent identifier                     |
| symbol      | str   | Trading pair symbol                  |
| quantity    | float | Trading quantity                     |
| exchange    | str   | Exchange name                        |
| strategy    | str   | Strategy name                        |
| stop_loss   | float | Stop loss percentage                 |
| profit_take | float | Take profit percentage               |
| time_left   | int   | Remaining execution time (optional)  |
| request_id  | str   | Unique request identifier (optional) |

## Development

```bash
# Create virtual environment
python -m venv venv
source venv/bin/activate

# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest
```