Skip to main content

Adam Community Tools and Utilities

Project description

Adam Community

Adam Community 是一个 Python 工具包,提供了 CLI 命令行工具和 Python 模块,用于解析和构建 Python 项目包。

安装

pip install -e .

使用方式

CLI 命令行

查看帮助:

adam-cli --help

初始化新项目:

adam-cli init

解析 Python 文件生成 functions.json:

adam-cli parse .

构建项目包:

adam-cli build .

更新 CLI 到最新版本:

adam-cli update

Python 模块导入

from adam_community.cli.parser import parse_directory, parse_python_file
from adam_community.cli.build import build_package

# 解析目录下的 Python 文件
classes = parse_directory(Path("./"))

# 构建项目包
success, errors, zip_name = build_package(Path("./"))

功能特性

  • Python 文件解析: 自动解析 Python 类和函数的文档字符串
  • JSON Schema 验证: 将 Python 类型转换为 JSON Schema 并验证
  • 项目构建: 检查配置文件、文档文件并创建 zip 包
  • 类型检查: 支持多种 Python 类型注解格式
  • 自动更新: 智能检查和更新到最新版本,支持用户配置

开发

安装依赖:

make install

运行测试:

make test

构建包:

make build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adam_community-1.0.17.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adam_community-1.0.17-py3-none-any.whl (44.2 kB view details)

Uploaded Python 3

File details

Details for the file adam_community-1.0.17.tar.gz.

File metadata

  • Download URL: adam_community-1.0.17.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for adam_community-1.0.17.tar.gz
Algorithm Hash digest
SHA256 a2eb56a95b0da8e70342e8cd2d790eb5ddfd4e13be8d9c9d4437c2a3f0a2f479
MD5 cfb0eb4829e63553903aed20f6870f48
BLAKE2b-256 328e492d27f7d5233092ffd41ce21dd6ab5c0aeb7dff5abb2126a6cb61a48093

See more details on using hashes here.

File details

Details for the file adam_community-1.0.17-py3-none-any.whl.

File metadata

File hashes

Hashes for adam_community-1.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 30e6f3476564bfb2dd7546dc576532000230b7298ec7d483909eca6aaf1c662f
MD5 63463fbbbec8a9b2619ae120086fe2b2
BLAKE2b-256 028d6d89fcdd0163ba8199ddb8cb45de9f0339562e9d80b86474c58eee94e2ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page