eunomia-bpf / GPTtrace

Generate eBPF programs and tracing with ChatGPT
https://eunomia.dev/GPTtrace/
MIT License
226 stars 21 forks source link

[FEATURE] Adjust the project structure, and allow installation via pip #11

Closed try-agaaain closed 1 year ago

try-agaaain commented 1 year ago

Description

The structure of the project was reorganized in this PR. The main files of the current project are as follows:

.
├── LICENSE
├── README.md
├── data_save
│   ├── funcs.json
│   └── vector_database
├── gpttrace
│   ├── GPTtrace.py
│   ├── __init__.py
│   ├── __main__.py
│   ├── cmd.py
│   ├── config.py
│   ├── execute.py
│   ├── generate.py
│   └── utils
├── pyproject.toml
└── requirements.txt

The reorganized code structure has become clearer, and any further suggestions for improvement are welcomed.

Using the pyproject.toml file, gpttrace can be built using python -m build and uploaded to PyPI. Refer to https://packaging.python.org/en/latest/tutorials/packaging-projects/ for more information. #9

Currently, gpttrace can be installed using a more convenient way:

pip install gpttrace==0.1.2

I have tested the above command and it currently installs and runs the gpttrace command properly.

I have registered a PyPI account, and currently, gpttrace is hosted under my account. Additionally, I have applied for an organization named eunomia-bpf. Once this application is approved, I will transfer the gpttrace project to the eunomia-bpf organization.