mirror of
https://github.com/HKUDS/CLI-Anything.git
synced 2026-10-31 10:59:21 +08:00
Add a complete CLI harness for AnyGen (https://www.anygen.io), an AI-powered content generation platform that produces slides, documents, websites, diagrams, and more via a cloud REST API. Built following the HARNESS.md methodology with the standard directory structure: - anygen_backend.py wraps the full AnyGen OpenAPI (create/poll/download/upload/prepare) - Click CLI with task, file, config, and session command groups - Unified REPL interface via repl_skin.py - 40 unit tests (mocked HTTP) + E2E tests (real API, verified PPTX download) - File format verification for OOXML, PDF, PNG, SVG, drawio, JSON outputs Also updates README.md (demos 8→9, tests 1298→1361) and .gitignore whitelist. Made-with: Cursor
55 lines
1.7 KiB
Python
55 lines
1.7 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
setup.py for cli-anything-anygen
|
|
|
|
Install with: pip install -e .
|
|
Or publish to PyPI: python -m build && twine upload dist/*
|
|
"""
|
|
|
|
from setuptools import setup, find_namespace_packages
|
|
|
|
with open("cli_anything/anygen/README.md", "r", encoding="utf-8") as fh:
|
|
long_description = fh.read()
|
|
|
|
setup(
|
|
name="cli-anything-anygen",
|
|
version="1.0.0",
|
|
author="cli-anything contributors",
|
|
author_email="",
|
|
description="CLI harness for AnyGen OpenAPI - Generate docs, slides, websites and more via AnyGen cloud API. Requires: ANYGEN_API_KEY",
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
url="https://github.com/HKUDS/CLI-Anything",
|
|
packages=find_namespace_packages(include=["cli_anything.*"]),
|
|
classifiers=[
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
"Topic :: Office/Business",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
],
|
|
python_requires=">=3.10",
|
|
install_requires=[
|
|
"click>=8.0.0",
|
|
"requests>=2.28.0",
|
|
"prompt-toolkit>=3.0.0",
|
|
],
|
|
extras_require={
|
|
"dev": [
|
|
"pytest>=7.0.0",
|
|
"pytest-cov>=4.0.0",
|
|
],
|
|
},
|
|
entry_points={
|
|
"console_scripts": [
|
|
"cli-anything-anygen=cli_anything.anygen.anygen_cli:main",
|
|
],
|
|
},
|
|
include_package_data=True,
|
|
zip_safe=False,
|
|
)
|