semvec/pypi-packages huggingface dataset:
exposepy 0.1.1
Minimalist decorator for exposing public APIs
Requires Python: >=3.8

# exposepy

[![PyPI](https://img.shields.io/pypi/v/exposepy.svg)](https://pypi.org/project/exposepy/)
[![CI](https://github.com/El3ssar/exposepy/actions/workflows/ci.yml/badge.svg)](https://github.com/El3ssar/exposepy/actions/workflows/ci.yml)
[![Docs](https://img.shields.io/badge/docs-online-brightgreen.svg)](https://El3ssar.github.io/exposepy/)

Minimalist decorator for exposing public APIs in Python.

---

## 💡 What is this?

`exposepy` lets you declaratively define your public API using `@expose` and `reexpose()`.  
No more manual `__all__`, no more forgotten exports. Refactor-proof and clean.

---

## 🚀 Installation

```bash
pip install exposepy
```

---

## 🛠️ Basic Usage

```python
from exposepy import expose

@expose
def foo():
    return 42

@expose(name="bar_alias")
def bar():
    return "bar"
```

Your module’s `__all__` and `dir()` now only show `foo` and `bar_alias`.

---

## 🔁 Cross-module Re-Export

```python
from module_a import foo
from exposepy import reexpose

reexpose(foo)  # Now foo is part of module_b.__all__
```

---

## 🧠 Why Use exposepy?

- Refactor-proof exports
- Auto-maintained `__all__`
- Cleaner introspection via patched `__dir__`
- Declarative, not imperative
- Cross-module reexports with aliasing

---

## 📚 Documentation

→ [https://El3ssar.github.io/exposepy](https://El3ssar.github.io/exposepy)

---

## 🤝 Contributing

Contributions welcome!  
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines and how to get started.
opsanyctl 0.1.10
OpsAny's command-line tool!
Requires Python: >=3.6

OpsAny's command-line tool


### 1. 下载

```
python3 -m pip install opsanyctl
```

### 2. 配置

```
# 1. 获取配置模板
opsctl config
# 2. 在家目录创建文件
mkdir /root/.opsanyctl/
# 3. 创建配置文件 修改 url 和 bk_app_secret为OpsAny地址和cmdb的secret_key(开发中心获取https://DOMAIN/saas/cmdb/info/)
vim /root/.opsanyctl/config
# 4. 可以根据配置修改指定模型的简写
```

### 3. 使用
```
# 获取到当前支持的资源类型
opsctl api-resources
# 获取云主机数据
opsctl get CLOUD_SERVER
# 获取 云主机 第一页数据 每页5条
opsctl get CLOUD_SERVER -p 1 -l 5
# 获取数据 54586 字段配置文件中可指定 resourceIdDefaultField(为字段后缀 忽略模型code)
opsctl get net 54586
```