Skip to main content

ZhiYan Python SDK

Project description

libzymod-python

智眼Python SDK

单元测试

基于 test 文件夹中的 \\__init__.py -> load_tests 自动发现:

python -m unittest tests

安装SDK

从 pip 安装

pip install -U zymod

使用方法

使用

比如:

from zymod import upload

本地打包安装

打包

安装依赖包:

pip install -U setuptools wheel

生成 requirements.txt:

python zy_env_marker.py

运行:

rm -rf build/ dist/ zymod.egg-info/ && python setup.py bdist_wheel

dist 目录下会生成类似 zymod-1.0.0-py3-none-any.whl 的安装包。

本地安装

全局安装:

sudo pip install -U dist/zymod-*-py3-none-any.whl

用户目录安装:

pip install --user -U dist/zymod-*-py3-none-any.whl

卸载

pip uninstall zymod

上传至PyPI

配置文件

~/.pypirc

[distutils]
index-servers=
    pypi

[pypi]
username: 
password: 

安装上传工具

pip install -U twine

上传

twine upload dist/*

如果使用国内镜像源,需要等一两天国内服务器才会同步官方源。

可以临时指定官方源安装:

python3 -m pip install -i https://pypi.org/simple/ example-pkg

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

zymod-0.0.2.3-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file zymod-0.0.2.3-py3-none-any.whl.

File metadata

  • Download URL: zymod-0.0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for zymod-0.0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4a800de490bce7e3093c2d9863feac8181808f6b10da81626bb71fb6138acf7a
MD5 22868216d29c2ed2eb0a6a53a8dee817
BLAKE2b-256 21a425653dadaea17ba6448d6aabb98107572779de4c75a2a4e04edb6c9c111b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page