用于与planga聊天服务器交互的包装器。
planga的Python项目详细描述
planga python包装器:
设置:
- 安装绳线:
pip install twine
要求:
生成并部署新包:
- 运行
python3 setup.py sdist bdist_wheel
- 运行
twine upload --repository-url https://test.pypi.org/legacy/ dist/* --skip-existing
安装新包:
- 运行
python -m pip install jwcrypto
- 运行
python -m pip install --index-url https://test.pypi.org/simple/ planga
仅当将planga包装程序上载到test.pypi.org时,才需要手动安装jwcrypto。安装工具还将尝试从test.pypi.org安装jwcrypto,但失败。预先安装jwcrypto可以成功完成planga包装器的安装。
deploy to live pypi:
- 运行
twine upload dist/* --skip-existing
有关如何为pipy打包的信息: https://packaging.python.org/tutorials/packaging-projects/
示例用法:
fromplangaimport*conf=PlangaConfiguration("foobar","kl9psH9VrLZ1hfsPY0b3-W","general","1234","Bob","my_container_div")snippet=Planga.get_planga_snippet(conf)