Skip to main content

No project description provided

Project description

# py-common-util

### Specifics - init version: 0.0.1

### Dependencies - datetime

### ENV 1. 本地开发环境:pycharm + python3.6.1 + local cpu 2. 远程测试环境:pycharm + remote ssh + gpu 3. 线上环境:待定

### 相关链接 如何将自己的Python代码打包发布到pypi上 https://blog.csdn.net/wdxin1322/article/details/56685094 发布你自己的轮子 - PyPI 打包上传实践 https://juejin.im/entry/58c612e2128fe100603dfc9c

### 上传到pypi的相关命令 # 第二章 - 将你的扩展包在PyPI上发布 http://www.wbh-doc.com.s3.amazonaws.com/Python-OpenSource-Project-Developer-Guide/Chapter2%20-%20PyPI.html 1. 升级__version__ 2. 删除build,dist,egg-info目录 2. $ python3 setup.py install (生成build,dist,egg-info目录) # 创建zip安装包 3. 打包 $ python3 setup.py sdist (生成dist,egg-info目录,并install到本机pythonx.x/site-packages/的类库中;也可以在IDEA的其它项目中依赖该项目模块而改动代码不必打包) # 或者创建全版本通用的wheel安装包 # $ python setup.py bdist_wheel –universal #3. 安装twine $ sudo pip3 install twine #注册包 $ twine register dist/py-common-util-0.0.1.tar.gz -r pypi 4. 打包并上传 $ python3 setup.py sdist upload -r pypi 可以访问公网查看:https://pypi.org/search/?q=py-common-util #上传到pypi $ twine upload dist/* $ pip3 search py-common-util 其它项目安装py-common-util依赖 $ sudo pip3 install py-common-util 或 sudo pip3 install -U py-common-util 或者$ easy_install py-common-util #### 使用 py-common-util from py_common_util import DateUtils from py_common_util.tensorflow import TFUtils print(DateUtils.now())

### .pypirc [distutils] index-servers=pypi [pypi] repository=https://upload.pypi.org/legacy/ username=<username> password=<password>

### jarfile stanford-segmenter-3.9.1.jar https://nlp.stanford.edu/software/segmenter.shtml#Download 1.进入到解压后的文件目录中,输入下面代码 ./segment.sh pku test.simp.utf8 UTF-8 0

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

py-common-util-0.0.19.tar.gz (54.0 kB view hashes)

Uploaded Source

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