Skip to main content

to search es client and record log

Project description

本项目介绍如何把项目封装成一个依赖包,使其可通

过pip install 安装

1、根目录创建setup.py

格式参考 https://packaging.python.org/tutorials/packaging-projects/#uploading-your-project-to-pypi

pip install test-zingfront-pypi --index-url https://pypi.python.org/pypi

2、根目录下创建__init__.py 维护可被导入的信息

比如该依赖包为test_zingfront_pypi 控制其可被 from test_zingfront_pypi import 的内容和 import的内容

3、保证根目录下生成requirements.txt依赖文件

其中包含依赖包需要的依赖

在别的项目pip安装该依赖包时,可把依赖包的依赖自动安装

安装

pip install git+https://github.com/xx/xx.git

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

test_search_es_client-1.1.0.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file test_search_es_client-1.1.0.tar.gz.

File metadata

  • Download URL: test_search_es_client-1.1.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4

File hashes

Hashes for test_search_es_client-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1eeb71ac0604c66b9afe819aed0529663dd61837ee6ee46a672a4197e2d1aa02
MD5 df2428c6addccd008d24a7beb6aaa21c
BLAKE2b-256 d33cf21fc8b608f909541c59417a16121050f8b1638887b5c094516012eee111

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