Skip to main content

老赵分享给所有Python爱好者的包包

Project description

大家读我

尽管一直以来我坚守着 Python2 这个阵地,但如今我也离她而去了。

所以,我推荐大家和我一样将 Python3.6 作为 2018 年的新起点!

也因此本包使用了某些 Python3.6 的特性,且仅发布了 Python3 的版本。

包包简介

可能您会觉得这个包里面东西五花八门,但我真心希望其中的某些代码对您有用。

比如,如果您可能也使用**小米路由器**,可能您也发现它会不时掉线,只有手动断开ADSL并重新拨号才能恢复上网?

那么,您可以试试 zhao.xin_api.MiWiFi 对象,在自己家的服务器上编写一个脚本,并设为每分钟执行一次的计划任务:

from zhao.xin_api import MiWiFi

MIWIFI = MiWiFi(password='您自己的小米路由器WEB登录密码')

if MIWIFI.is_offline:
    if MIWIFI.reconnect():
        printf('自动重新拨号成功')
    else:
        printf('自动重新拨号失败')

又或者,您也有百度开发者帐号,想使用**百度语音API**进行**语音识别**或**语音合成**?

那么,您可以试试我包里面的 zhao.xin_api.BaiduYuyin 对象!

>>> from zhao.xin_api import BaiduYuyin
>>> baiduyuyin = BaiduYuyin(api_key='您自己的百度开发者API_KEY', secret_key='您自己的百度开发者SECRET_KEY')
>>> baiduyuyin.tts_setup(speed=3, person=4)
>>> baiduyuyin.tts(text='我是百度语音的丫丫')

如何安装

pip3 install zhao

如何升级

本包会不时添加或更新内容,所以建议常常执行:

pip3 install -U zhao

Project details


Release history Release notifications | RSS feed

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

zhao-0.0.22-py3-none-any.whl (32.9 kB view hashes)

Uploaded Python 3

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