semvec/pypi-packages huggingface dataset:
mirrorctl 0.1.0
Manage mirror sources for common development tools
Requires Python: >=3.9

﻿# mirrorctl

用于管理主流开发工具镜像源的 CLI。

## 安装（本地）

```bash
pip install -e .
```

## 支持的工具

- pip
- npm
- pnpm
- yarn
- cargo
- gem
- go
- maven
- conda

## 用法

```bash
# 查看已支持工具及当前镜像
mirrorctl list

# 查看内置 provider（目前只有 official）
mirrorctl providers

# 设置镜像（自定义 URL）
mirrorctl set pip --url https://pypi.org/simple
mirrorctl set npm --url https://registry.npmjs.org/

# 查看当前镜像
mirrorctl current pip

# 重置为官方镜像
mirrorctl reset pip

# 一键设置清华 TUNA 镜像
mirrorctl tuna

# 批量设置某个 provider
mirrorctl set-all --provider tuna
```

## 说明

- mirrorctl 会修改对应工具的用户级配置文件（例如 `~/.npmrc`、`~/.cargo/config.toml`）。
- 如果你需要公司/校园镜像，请使用 `--url` 指定对应地址。
reqstool-python-decorators 0.0.9
Reqstool Python Decorators
Requires Python: >=3.10


[![Commit Activity](https://img.shields.io/github/commit-activity/m/Luftfartsverket/reqstool-python-decorators?label=commits&style=for-the-badge)](https://github.com/Luftfartsverket/reqstool-python-decorators/pulse)
[![GitHub Issues](https://img.shields.io/github/issues/Luftfartsverket/reqstool-python-decorators?style=for-the-badge&logo=github)](https://github.com/Luftfartsverket/reqstool-python-decorators/issues)
[![License](https://img.shields.io/github/license/Luftfartsverket/reqstool-python-decorators?style=for-the-badge&logo=opensourceinitiative)](https://opensource.org/license/mit/)
[![Build](https://img.shields.io/github/actions/workflow/status/Luftfartsverket/reqstool-python-decorators/build.yml?style=for-the-badge&logo=github)](https://github.com/Luftfartsverket/reqstool-python-decorators/actions/workflows/build.yml)
[![Static Badge](https://img.shields.io/badge/Documentation-blue?style=for-the-badge&link=docs)](https://luftfartsverket.github.io/reqstool-python-decorators/reqstool-python-decorators/0.0.1/index.html)

# Reqstool Python Decorators

## Description

This provides decorators and collecting of decorated code, formatting it and writing to yaml file.

## Installation

The package name is `reqstool-python-decorators`.

* Using pip install:

```
$pip install reqstool-python-decorators 
```

## Usage

### pyproject.toml

* Hatch

```
dependencies = [
    "reqstool-python-decorators == <version>"
]
```

* Poetry

```
[tool.poetry.dependencies]
reqstool-python-decorators = "<version>"
```

### Decorators

Import decorators:

```
from reqstool-decorators.decorators.decorators import Requirements, SVCs
```

Example usage of the decorators:

```
@Requirements("REQ_111", "REQ_222")
def somefunction():
```

```
@SVCs("SVC_111", "SVC_222")
def test_somefunction():
```

### Processor

Import processor:

```
from reqstool.processors.decorator_processor import DecoratorProcessor
```

Main function to collect decorators data and generate yaml file:

```
process_decorated_data(path_to_python_files, output_file)
```

`path_to_python_files` is the directories to search through to find decorated code.

(Optional) `output_file` is output file(path) the yaml file is stored to. Default is `/build/reqstool/annotations.yml`.


## License

This project is licensed under the MIT License - see the LICENSE.md file for details.