2024-06-11 11:16:37 +08:00
# python-ragflow
# update python client
- Update "version" field of [project] chapter
2024-06-27 14:41:52 +08:00
- Build new python SDK
- Upload to pypi.org
- Install new python SDK
2024-06-11 11:16:37 +08:00
# build python SDK
```shell
rm -f dist/* & & python setup.py sdist bdist_wheel
```
# install python SDK
```shell
pip uninstall -y ragflow & & pip install dist/*.whl
```
This will install ragflow-sdk and its dependencies.
# upload to pypi.org
```shell
twine upload dist/*.whl
```
Enter your pypi API token according to the prompt.
2024-06-27 14:41:52 +08:00
Note that pypi allows a version of a package [be uploaded only once ](https://pypi.org/help/#file-name-reuse ). You need to change the `version` inside the `pyproject.toml` before building and uploading.
2024-06-11 11:16:37 +08:00
# using
```python
```
# For developer
```shell
pip install -e .
```