Skip to main content

AI 驱动:将 .py 文件一键转为标准 Python 模块

Project description

crme

使用本工具即表示您已阅读、理解并同意以下条款:

  1. 本工具生成的代码由 AI 自动生成,可能存在错误、安全漏洞、恶意逻辑或版权问题。
  2. 您必须自行审查、测试、修改并确认代码安全后方可使用。
  3. 作者不对任何直接或间接的损失(包括但不限于数据丢失、系统损坏、法律纠纷)承担责任。
  4. 您输入的代码将经由 API 发送给第三方 AI 服务商(如 OpenAI),请勿输入任何敏感信息
  5. 本工具不存储、不收集、不上传您的本地文件内容,但无法控制 AI 服务商的数据处理行为。

如不同意以上条款,请立即停止使用并卸载本工具。


AI 驱动的 Python 文件转模块工具。
把你的 .py 脚本拖进来,AI 自动生成完整的模块结构(__init__.pycore.pysetup.pyREADME.md)。

安装

pip install crme

使用

  1. 配置 API(以 OpenAI 为例)
crme set api https://api.openai.com/v1/chat/completions
crme set key sk-xxx
crme set model gpt-3.5-turbo
crme set dir ~/my_modules
  1. 转换模块
crme my_script.py mymodule
  1. 查看配置
crme show
  1. 重置配置
crme reset

安全审计流程

· 静态扫描(危险函数 / 密钥模式) · AI 审计(只看结构,不看原始代码,防策反) · 代码预览 · 用户最终确认(y / n / v)

依赖

· shiroko_netai · text_discoloration

开源协议

MIT

作者

shiroko

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

creation_module-2.2.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

creation_module-2.2.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file creation_module-2.2.1.tar.gz.

File metadata

  • Download URL: creation_module-2.2.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for creation_module-2.2.1.tar.gz
Algorithm Hash digest
SHA256 fb56234183be11eed23b5fa2e57e6330bd0ee07b26f4f3b16e9330a3c52da7f7
MD5 ce9c6ea16c8471e4ef21f59c8c690df5
BLAKE2b-256 9fb856ed4833a86c6149de0515c15eb233449cb359a4f7431a45a7c74cb70a76

See more details on using hashes here.

File details

Details for the file creation_module-2.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for creation_module-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 09e772d91238f29c27707e6cabeac9d525184706b190e70390dc595355b662ff
MD5 5796823c4786aad74cc9bf945b42158a
BLAKE2b-256 1f4578917048bac9795bc38668a5e70e91038e3eeaf2bc7f8d82aa9610bf8fbb

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