semvec/pypi-packages huggingface dataset:
requirements-manager 0.1.2
A tool to manage Python requirements files and their backups
Requires Python: >=3.7

# Requirements Manager

A Python package for managing requirements.txt files and their backups.
This will strip the @ file portion for any packages in the requirements.txt file. 
It will ask the user first if they want to strip these. If not, it will simply replicate 
running ```pip freeze > requirements.txt```

## Installation

```bash
pip install requirements-manager
```

## Usage

```python
from requirements_manager import handle_requirements_update, cleanup_old_backups

# Update requirements
handle_requirements_update('requirements.txt', 'new_requirements.txt')

# Clean up old backups
cleanup_old_backups(max_backups=5)
```

## CLI Usage

```bash
# Update requirements.txt or simply generate a new requirements.txt file.
reqmanager update

# Update requirements with optional flags
reqmanager update [--source <source_file>] [--destination <destination_file>]

# Clean up backups with optional flags
reqmanager cleanup --max-backups 5 [--backup-dir <backup_directory>]
```

## Clean up backups
```bash
reqmanager cleanup --max-backups 5
```
hartufo 0.6.6
A Python toolkit for data-driven HRTF research
Requires Python: >=3.8

# Hartufo
A Python toolkit for data-driven HRTF research

## Installation

The `hartufo` package is configured to be installable with `pip`, so you can simply run `pip install [--user] hartufo`.

## Mailing List

In order to be kept up to date with the latest developments and new releases, subscribe to the mailing list by sending an email to [sympa@qmul.ac.uk](mailto:sympa@qmul.ac.uk?subject=subscribe%20hartufo-users%20FirstName%20LastName) with subject `subscribe hartufo-users FirstName LastName` and an empty body (clicking on the email address will preformat this message for you). Don't forget to replace the placeholders with your own name.

### Development Setup
To contribute, it is best to check out the repo and install it in "editable mode" with the following procedure.

- `git clone https://github.com/jpauwels/hartufo/`
- `cd hartufo`
- `pip install [--user] -e .`

You can then simply update the package by calling `git pull` whenever the repo has been updated or even make your own edits and start contributing.
apopy 0.1.6
Simple Apollo Config Client for Python.
Requires Python: >=3.9

# apopy: Simple Apollo Config Client for Python. [![PyPI](https://img.shields.io/pypi/v/apopy)](https://pypi.org/project/apopy/)

```bash
pip install apopy
```

## Quick Start

> [!NOTE]
>
> - 示例里的配置信息仅供测试使用，请勿用于生产环境。
> - 具体的配置可能会变动，仅用于说明使用方法，具体的访问方式见
  > <https://www.apolloconfig.com/#/zh/README>

```python
from apopy import Client, NamespaceType

client = Client(
    config_server_url="http://81.68.181.139:8080",
    app_id="apollo-common",
    cluster_name="default",
    secret="5fdc723621054e0f945cb441561687eb",
    ip="192.168.1.4",
)

# 读取 Namespace 为 application 的配置（接口带缓存）
print(client.read_namespace_with_cache(namespace="application"))

# 读取 Namespace 为 application 的配置（接口无缓存）
print(
    client.read_namespace_without_cache(
        namespace="application", namespace_type=NamespaceType.PROPERTIES
    )
)

# 读取配置
print(client.get("test"))
```

### 配置轮训更新

Apopy 提供了内置的针对单独 namespace 配置轮训更新功能，可以通过以下方式实现：

> [!WARNING]
>
> Apopy 本身并没有配置单独的线程锁/进程锁，如果真的需要异步订阅更新，
> 请根据自己的需求在外层加上锁保护。

```python
import time
import threading


def start_background_update(client: Client):

    def _update():
        while True:
            try:
                client.read_notification_and_update(
                    namespace="application", namespace_type=NamespaceType.PROPERTIES
                )
            except Exception:
                pass
            finally:
                time.sleep(3)

    t = threading.Thread(target=_update)
    t.start()


start_background_update(client)
while True:
    print(client.read_namespace_with_cache(namespace="application"))
    time.sleep(5)
```