semvec/pypi-packages huggingface dataset:
nipyproto 1.1.1
Post only client for Nostr, Activity Pub, and AT

A post only Python client for Nostr, Activity Pub, and BlueSky (AT), licensed GPLv3.

Dependencies: pynostr, mastodon.py, atproto, keyring

Please be aware this client is a work in progress written by somebody who's not a developer. For assistance or further reading please see my [GitHub Repo](https://github.com/0n4t3/nipy).
envx 1.0.2
便捷的环境文件读取

# envx
![](https://img.shields.io/badge/Python-3.8.6-green.svg)

#### 介绍

环境信息管理模块，适用于跨设备区分环境类型的情况

#### 安装教程

1.  pip安装
```shell script
pip3 install envx
```

2.  pip安装（使用淘宝镜像加速）
```shell script
pip3 install envx -i https://mirrors.aliyun.com/pypi/simple
```

#### 使用说明

1. 环境文件目录（如果没有对应目录，请创建对应的目录）
- Windows 系统
  ```text
  使用目录：C:\env\
  ```
    
- macOS 系统
  ```text
  使用目录：/Users/env/
  ```
    
- Linux 系统
  ```text
  使用目录：/env/
  ```
  
2. 环境文件案例
- 文件名：local.any.env
- 文件内容：
  ```text
  HOST=192.168.0.1
  PORT=6379
  ```
- 读取结果：
  ```json
  {
    "HOST": "192.168.0.1", 
    "PORT": "6379"
  }
  ```

3. 项目中使用代码
```python
import envx
local_any_env = envx.read('local.any.env')
```

- 建议使用环境类型标记文件：DEFAULT_ENV.env
```text
一般用来描述当前的环境信息，可以用来标记当前的环境类型，
然后后续使用时先去读当前默认的环境类型，再根据设定选取不同的环境文件，
即，会先从当前环境中读取DEFAULT_ENV.env中设定的环境类型，再读取settings.ini的具体设定，
然后根据当前环境类型取对应的环境文件；
注意：settings.ini文件必须和使用此代码的文件在同一目录，若为其他目录，需修改文件路径
```

- settings.ini
```text
[DEFAULT]
env=DEV
msg=在这里的env中设置将要使用哪个具体的环境

[DEV]
env_name=DEV-开发
env_file_name_mysql=dev.mysql.env
env_file_name_mongo=dev.mongo.env
silence_mysql=False

[TEST]
env_name=TEST-测试
env_file_name_mysql=test.mysql.env
env_file_name_mongo=test.mongo.env
silence_mysql=False

[PROD]
env_name=PROD-生产
env_file_name_mysql=prod.mysql.env
env_file_name_mongo=prod.mongo.env
silence_mysql=False
```

- 项目代码
```python
# ----------------- 读取配置信息 -----------------
import configparser
import platform
import os

if platform.system() == 'Windows':
    path_separator = '\\'
else:
    path_separator = '/'
config_dir = (os.path.dirname(os.path.realpath(__file__))) + path_separator + 'settings.ini'

config = configparser.ConfigParser()  # 类实例化
config.read(config_dir, encoding='utf-8')
default_config = config['DEFAULT']
default_env = default_config['env']
config_config = config[default_env]

# 从这里开始写需要读取为内容
env_file_name_mysql = config_config['env_file_name_mysql']
env_file_name_mongo = config_config['env_file_name_mongo']
silence_mysql = eval(config_config['silence_mysql'])
# ----------------- 读取配置信息 -----------------
```
itkwasm-downsample-cucim 0.2.0
Pipelines for downsampling images. cuCIM implementation.
Requires Python: >=3.8
Keywords: itkwasm,wasi,webassembly

# itkwasm-downsample-cucim

[![PyPI version](https://badge.fury.io/py/itkwasm-downsample-cucim.svg)](https://badge.fury.io/py/itkwasm-downsample-cucim)

Pipelines for downsampling images. [cucim](https://pypi.org/project/cucim/) implementation.

This package provides the NVIDIA RAPIDS cuCIM CUDA-accelerated implementation. It is usually not called directly. Please use [`itkwasm-downsample`](https://pypi.org/project/itkwasm-downsample/) instead.

## Installation

[Install cuCIM](https://github.com/rapidsai/cucim?tab=readme-ov-file#install-cucim), then

```sh
pip install itkwasm-downsample-cucim
```

## Development

```sh
pip install pytest itkwasm-image-io itkwasm-compare-images
pip install -e .
pytest

# or
pip install hatch
hatch run test
```
report-VOLO 0.0.8
A report generation package for results of Monaco 2018 Racing
Requires Python: >=3.11.4

# Formula 1 Monaco 2018 Racing Report Generator

This Python package provides a tool for generating reports based on the start and end data of the best lap for each racer of Formula 1 - Monaco 2018 Racing during the first stage of the qualification (Q1).

## Installation

To use the package, you need to install it first. You can do this using `pip`:

```UPDATE LATER
```

## Usage

The package provides a command-line interface with several options.

### Generating a Report

You can generate a report for the first 20 minutes of the Monaco 2018 Racing by providing the path to the folder containing the data files. The `--asc` or `--desc` flag allows you to specify the sorting order (default is ascending).

```bash (update later)
report.py --files <folder_path> [--asc | --desc]
```

### Driver Statistics

To get statistics about a specific driver, use the `--driver` option along with the folder path.

```bash
report.py --files <folder_path> --driver "Sebastian Vettel"
```

## Package Structure

The package consists of the following components:

- **`Record` Class:** Represents a racer record with start and end times.
- **`FileNotFound` Exception:** Raised when a specified file is not found.
- **`ReportInvalidOrder` Exception:** Raised for an invalid sorting order in the report.
- **`build_report` Function:** Compiles a report summarizing valid and invalid records.
- **`print_report` Function:** Prints a formatted report based on ordered results.
- **`cli` Function:** Parses command-line arguments and orchestrates the report generation process.

## Example

```python
import report.py
#(update later)
# Command-line interface
args = formula1_report.Record.cli()

# Build the report
good_records, bad_records = formula1_report.Record.build_report(args.files, args.sort)

# Filter records if a specific driver is provided
if args.driver:
    good_records = [rec for rec in good_records if rec.driver == args.driver]
    bad_records = [rec for rec in bad_records if rec.driver == args.driver]

# Print the report
print(report.Record.print_report(good_records, bad_records))
```

## License

This package is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.