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.0.0.tar.gz (9.8 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.0.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: creation_module-2.0.0.tar.gz
  • Upload date:
  • Size: 9.8 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.0.0.tar.gz
Algorithm Hash digest
SHA256 5878e12adc8c6ed65665a0c18a49d7ddf4fcc4b6a4d65531f8a17307c92b98b9
MD5 e0f88944ae722194335c5c31fb7968cd
BLAKE2b-256 a778a12d8289caacf445b51e3bee69c63ea63dbe8914f58d524035f5f4aef857

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for creation_module-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92816b256bd22832fdfa1eafd3da437ce664149cbb8545622a828e016b38a831
MD5 d315ebf38a0d850205e9f75026a62c69
BLAKE2b-256 6a779b95ac0e5d794e0224339d3e126e8dd0ff5d74e5b73e74a965f17b61cb3b

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