Saravanan666/pypi-org huggingface dataset:
Package: qPython3
qPython is a Python library providing support for interprocess communication between Python and kdb+ processes, it offers:Synchronous and asynchronous queriesConvenient asynchronous callbacks mechanismSupport for kdb+ protocol and types as of kdb+ v4.0Uncompression of the IPC data streamInternal representation of data via numpy arrays (lists, complex types) and numpy data types (atoms)Supported on Python 3.4/3.5/3.6 and numpy 1.8+For more details please refer to thedocumentation.InstallationTo install qPython from PyPI:$ pip install qpython3Please do not use old PyPI package name: qpython or exxeleron-qpython.Building packageDocumentationqPython documentation is generated with help ofSphinxdocument generator.
In order to build the documentation, including the API docs, execute:make htmlfrom the doc directory.Documentation is built into the:doc/build/html/directory.Compile Cython extensionsqPython utilizesCythonto tune performance critical parts of the code.Instructions:Execute:python setup.py build_ext--inplaceBuild binary distributionInstructions:Execute:python setup.py bdistTestingqPython uses py.test as a test runner for unit tests.Instructions:Make sure that top directory is included in thePYTHONPATHExecute:py.testRequirementsqPython requires numpy 1.8 to run.Optional requirements have to be met to provide additional features:tune performance of critical parts of the code:Cython 0.20.1support serialization/deserialization ofpandas.Seriesandpandas.DataFramepandas 0.14.0run Twisted sample:Twisted 13.2.0build documentation via Sphinx:Sphinx 1.2.3mock 1.0.1Required libraries can be installed usingpip.To install all the required dependencies, execute:pip install-rrequirements.txtMinimal set of required dependencies can be installed by executing:pip install-rrequirements-minimal.txt
Package: qPython-nocython
ATTENTION::This project is in maintenance mode. We may fix bugs, but no new features will be added in foreseeable future.qPythonqPython is a Python library providing support for interprocess communication between Python and kdb+ processes, it offers:Synchronous and asynchronous queriesConvenient asynchronous callbacks mechanismSupport for kdb+ protocol and types: v3.0, v2.6, v<=2.5Uncompression of the IPC data streamInternal representation of data via numpy arrays (lists, complex types) and numpy data types (atoms)Supported on Python 2.7/3.4/3.5/3.6 and numpy 1.8+For more details please refer to thedocumentation.InstallationTo install qPython from PyPI:$ pip install qpythonPlease do not use old PyPI package name: exxeleron-qpython.Building packageDocumentationqPython documentation is generated with help ofSphinxdocument generator.
In order to build the documentation, including the API docs, execute:make htmlfrom the doc directory.Documentation is built into the:doc/build/html/directory.Compile Cython extensionsqPython utilizesCythonto tune performance critical parts of the code.Instructions:Execute:python setup.py build_ext--inplaceBuild binary distributionInstructions:Execute:python setup.py bdistTestingqPython uses py.test as a test runner for unit tests.Instructions:Make sure that top directory is included in thePYTHONPATHExecute:py.testRequirementsqPython requires numpy 1.8 to run.Optional requirements have to be met to provide additional features:tune performance of critical parts of the code:Cython 0.20.1support serialization/deserialization ofpandas.Seriesandpandas.DataFramepandas 0.14.0run Twisted sample:Twisted 13.2.0build documentation via Sphinx:Sphinx 1.2.3mock 1.0.1Required libraries can be installed usingpip.To install all the required dependencies, execute:pip install-rrequirements.txtMinimal set of required dependencies can be installed by executing:pip install-rrequirements-minimal.txt
Package: qqbot-linger
玲儿自用 QQ 机器人。功能Bilibili 用户监控，参见：nonebot-plugin-bam跑团骰子，参见nonebot-plugin-7s-roll使用pipinstallqqbot-lingercd/a/path/you/want/store/config/and/database
vim.env# edit this file, see `.env.sample file` for a example# Start a IM Bot Client compatible with OneBot v11 protocol# Like go-cqhttp, cqhttp-mirai etclinger# start the bot注意：你需要一个支持连接 OneBot V11 协议的 IM 客户端的具体实现，并将其配置为连接到此机器人的 WS 端口，才能实际使用其功能。截图以后再弄。LICENSEUnlicense.
Package: qq-botpy
botpy是基于机器人开放平台API实现的机器人框架，目的提供一个易使用、开发效率高的开发框架。准备工作安装pipinstallqq-botpy更新包的话需要添加--upgrade注：需要python3.7+使用需要使用的地方import botpyimportbotpy兼容提示原机器人的老版本qq-bot仍然可以使用，但新接口的支持上会逐渐暂停，此次升级不会影响线上使用的机器人使用方式快速入门步骤1通过继承实现bot.Client, 实现自己的机器人Client步骤2实现机器人相关事件的处理方法,如on_at_message_create， 详细的事件监听列表，请参考事件监听.md如下，是定义机器人被@的后自动回复:importbotpyfrombotpy.types.messageimportMessageclassMyClient(botpy.Client):asyncdefon_ready(self):print(f"robot 「{self.robot.name}」 on_ready!")asyncdefon_at_message_create(self,message:Message):awaitmessage.reply(content=f"机器人{self.robot.name}收到你的@消息了:{message.content}")注意:每个事件会下发具体的数据对象，如`message`相关事件是`message.Message`的对象 (部分事件透传了后台数据，暂未实现对象缓存)步骤3设置机器人需要监听的事件通道，并启动clientimportbotpyfrombotpy.types.messageimportMessageclassMyClient(botpy.Client):asyncdefon_at_message_create(self,message:Message):awaitself.api.post_message(channel_id=message.channel_id,content="content")intents=botpy.Intents(public_guild_messages=True)client=MyClient(intents=intents)client.run(appid="12345",token="xxxx")备注也可以通过预设置的类型，设置需要监听的事件通道importbotpyintents=botpy.Intents.none()intents.public_guild_messages=True使用API如果要使用api方法，可以参考如下方式:importbotpyfrombotpy.types.messageimportMessageclassMyClient(botpy.Client):asyncdefon_at_message_create(self,message:Message):awaitself.api.post_message(channel_id=message.channel_id,content="content")示例机器人``examples`<./examples/>`_ 目录下存放示例机器人，具体使用可参考``Readme.md`<./examples/README.md>`_examples/
.
├── README.md
├── config.example.yaml          # 示例配置文件（需要修改为config.yaml）
├── demo_announce.py             # 机器人公告API使用示例
├── demo_api_permission.py       # 机器人授权查询API使用示例
├── demo_at_reply.py             # 机器人at被动回复async示例
├── demo_at_reply_ark.py         # 机器人at被动回复ark消息示例
├── demo_at_reply_embed.py       # 机器人at被动回复embed消息示例
├── demo_at_reply_command.py     # 机器人at被动使用Command指令装饰器回复消息示例
├── demo_at_reply_file_data.py   # 机器人at被动回复本地图片消息示例
├── demo_at_reply_keyboard.py    # 机器人at被动回复md带内嵌键盘的示例
├── demo_at_reply_markdown.py    # 机器人at被动回复md消息示例
├── demo_at_reply_reference.py   # 机器人at被动回复消息引用示例
├── demo_dms_reply.py            # 机器人私信被动回复示例
├── demo_get_reaction_users.py   # 机器人获取表情表态成员列表示例
├── demo_guild_member_event.py   # 机器人频道成员变化事件示例
├── demo_interaction.py          # 机器人互动事件示例（未启用）
├── demo_pins_message.py         # 机器人消息置顶示例
├── demo_recall.py               # 机器人消息撤回示例
├── demo_schedule.py             # 机器人日程相关示例更多功能更多功能请参考: [https://github.com/tencent-connect/botpy]
Package: qq-chat-history
QQ 聊天记录提取器简介从 QQ 聊天记录文件中提取聊天信息，仅支持txt格式的聊天记录。安装使用pip安装，要求Python 3.9或以上版本。>pipinstall-Uqq-chat-history使用最简单的启动方式如下，它会自动在当前目录下创建output.json进行输出（如果安装到虚拟环境请确保已激活）。>qq-chat-history/path/to/file.txt启动时输入--help参数查看更多配置项。>qq-chat-history--help或者，可以作为一个第三方库使用，如下：importqq_chat_historylines='''=========假装我是 QQ 自动生成的文件头=========1883-03-07 11:22:33 A<someone@example.com>Text A1Text A21883-03-07 12:34:56 B(123123)Text B1883-03-07 13:24:36 C(456456)Text C1883-03-07 22:00:51 A<someone@example.com>Text D'''.strip().splitlines()# 这里的 lines 也可以是文件对象或者以字符串或者 Path 对象表示的文件路径。formsginqq_chat_history.parse(lines):print(msg.date,msg.id,msg.name,msg.content)注意parse方法返回的是一个Body对象，一般以Iterable[Message]的形式使用。当然Body也提供了几个函数，虽然一般也没什么用。Tips如果当作一个第三方库来用，例如find_xxx方法，可以从数据中查找指定id或name的消息；save方法可以将数据以yaml或json格式保存到文件中，虽然这个工作一般都直接以CLI模式启动来完成。函数parse可以处理多样的类型。Iterable[str]：迭代每行的可迭代对象，如list或tuple等。TextIOBase：文本文件对象，如用open打开的文本文件，或者io.StringIO都属于文本文件对象。str,Path：文件路径，如./data.txt。这些参数都将以对应的方法来构造Body对象。
Package: qqddm
QQ's "Different Dimension Me" Animefier Python libraryPython wrapper forQQ's "Different Dimension Me" AIAPI, that applies an anime-theme to any given picture.InstallingThis package was developed & tested under Python 3.9. Available onPyPI:pipinstall--userqqddmUsageCheck theexamplecode.Known issues and limitations of the APIOnly pictures with human faces: since 2022-12-06, the QQ's API became stricter with the pictures being converted, and requires them to have a human face.Forbidden images: the QQ's API refuses to convert images with sensible or political content.ChangelogVersions 0.y.z are expected to be unstable, and the library API may change on Minor (y) releases.0.1.1Update to the new "overseas" API, which can be used from outside ChinaFix how images are downloaded using threads0.0.3Add new custom exceptionParamInvalidQQDDMApiResponseExceptionRefactor mapping of API response codes with custom exceptions, now done programatically, defining the corresponding response code on each exception class0.0.2Add newx-signheaders required by the API since 2022-12-06.Add new custom exceptions based on errors returned by the API:VolumnLimitQQDDMApiResponseException,AuthFailedQQDDMApiResponseException,NotAllowedCountryQQDDMApiResponseException,NoFaceInPictureQQDDMApiResponseException.0.0.1Initial release:Class-based interface.Pass an image (as bytes) and send it to QQ API, returning the resulting images URLs.Download the returned images URLs.Requests settings (different for QQ API and for downloading result images): request timeouts, proxy, user-agents.
Package: qqdm
qqdmA lightweight, fast and pretty progress bar for PythonDemoInstallationpip install qqdmUsageThe following is a simple example.importtimeimportrandomfromqqdmimportqqdm,format_strtw=qqdm(range(10),desc=format_str('bold','Description'))foriintw:loss=random.random()acc=random.random()tw.set_infos({'loss':f'{loss:.4f}','acc':f'{acc:.4f}',})time.sleep(0.5)For the demo gif shown above, you may refer totests/test.py.
Package: qqhrz
qqhrz对动手学深度学习pytorch版的代码实现和一些图神经网络的代码实现1. 简介这个包是对动手学深度学习pytorch版的代码实现和一些图神经网络的代码实现，由本人书写，存在着许多不足，希望大家见谅。写这个包既是对自己的练习，也是希望可以给同组师弟、师妹们一些帮助。2. 包的结构qqhrz包中包含两个模块：ztorch和zgnn2.1 ztorch深度学习pytorch版的代码实现。可以通过”from qqhrz import ztorch as qz“进行调用。2.2 zgnn对一些图神经网络的代码实现。可以通过”from qqhrz import zgnn as zg“进行调用。3. 依赖使用本包时，需要先安装pytorch==1.12.0和torchvision==0.13.0，cpu版和gpu版均可，建议安装gpu版本。4. 版本更新0.0.7：加入Transformer模型和BERT模型以及BERT模式输入数据的处理。0.0.8：解决了运行速度慢的问题，原因是其中有些张量是在cpu上的，导致在cpu上计算，速度慢。0.1.0：加入zgnn模块，包含对一些图神经网络的实现。0.1.1：加入GCN。0.1.2：加入GraphSAGE。0.1.3：给Transformer编码器和解码器增加max_len参数，即序列最大长度。0.1.4: 加入词表，修复一些问题。0.1.5: 修复了一些问题。0.1.6: 修复了生成bert输入数据中存在的一些问题。0.1.7: 修复了生成bert输入数据segment中存在的一些问题。5. 希翼希望自己能够不断完善，不断改进代码，提升自己的能力，给大家一些帮助。
Package: qqlog
qqlog installpipinstallqqlogqqlog example 1fromqqlogimportex,init,enterleave,traceinit()#init(path='./log/qqlog.log',level=logging.DEBUG)@ex()deftest1(a,b):returna/b@enterleave()deftest2(a,b):returna/b@trace()deftest3(a,b):returna/b@enterleave()deftest4(a,b,prefix='answer is'):val=a/bprint('%s%s'%(prefix,str(val)))returnvalclasstestclass(object):@enterleave()def__init__(self):print('init')@enterleave()defsum(self,a,b):returna+bimportpandasaspddf=pd.DataFrame(data={'1':[1,2,3],'b':['test1','test2','test3']},index=range(3))@enterleave()defdf_test(a,b,df):val=a+b+df['1'].sum()returnvalimportnumpyasnpd=np.array([[1,2,3],[4,5,6]])@enterleave()defnp_test(a,b,d):val=a+b+d.sum()returnvalimportlogginglogging.getLogger('newlogger')@enterleave(loggername='newlogger',level=logging.ERROR)defnew_logger_test(a,b):returna+btry:test1(1,0)test2(1,1)test3(1,0)test4(1,2,prefix='result:')df_test(1,2,df)np_test(1,2,d)testclass().sum(10,20)new_logger_test(5,15)exceptExceptionasex:print(ex)Console/qqlog.log2021-09-29 21:47:47 [ERROR] [MainThread] [RAISE]test1: division by zero2021-09-29 21:47:47 [DEBUG] [MainThread] [ENTER]test2(0:int=1, 1:int=1)2021-09-29 21:47:47 [DEBUG] [MainThread] [RETURN]test2(1.0)2021-09-29 21:47:47 [ERROR] [MainThread] [RAISE]test3TRACE STARTTraceback (most recent call last):File "E:\jupyter\projects\whl\qqlog\qqlog_init_.py", line 174, in func_warpreturn_val = func(*args, **kwargs)File "E:\jupyter\projects\whl\qqlog\example.py", line 15, in test3return a/bZeroDivisionError: division by zeroTRACE END2021-09-29 21:47:47 [DEBUG] [MainThread] [ENTER]test4(0:int=1, 1:int=2, prefix:str='result:')result: 0.52021-09-29 21:47:47 [DEBUG] [MainThread] [RETURN]test4(0.5)2021-09-29 21:47:47 [DEBUG] [MainThread] [ENTER]df_test(0:int=1, 1:int=2, 2:DataFrame=[3bb56549-ebe7-4a85-900f-50d8788d29d3.csv])
2021-09-29 21:47:47 [DEBUG] [MainThread] [RETURN]df_test(9)2021-09-29 21:47:47 [DEBUG] [MainThread] [ENTER]np_test(0:int=1, 1:int=2, 2:ndarray=[367eb5ed-73f8-45e8-8fcb-4d8781afc46a.ary])2021-09-29 21:47:47 [DEBUG] [MainThread] [RETURN]np_test(24)2021-09-29 21:47:47 [DEBUG] [MainThread] [ENTER]init()init2021-09-29 21:47:47 [DEBUG] [MainThread] [RETURN]init(None)2021-09-29 21:47:47 [DEBUG] [MainThread] [ENTER]sum(0:int=10, 1:int=20)2021-09-29 21:47:47 [DEBUG] [MainThread] [RETURN]sum(30)[ENTER]new_logger_test(0:int=5, 1:int=15)[RETURN]new_logger_test(20)# qqlog example 2
```python
from qqlog import ex,init,createCsvFileLogger,createConsoleFileLogger
import logging
init()

createCsvFileLogger('csv',level=logging.DEBUG,headers=['asctime','funcName','levelname','msg'],formatters=['asctime','funcName','levelname','msg'],path='debug.csv')
createConsoleFileLogger('consolefile',level=logging.DEBUG,path='./consolefile.log')

@ex(loggername='csv',rethrow=False)
def test_csv(a,b):
    return a/b

@ex(loggername='consolefile',rethrow=False)
def test_consolefile(a,b):
    return a/b

try:
    test_csv(1,0)
    test_consolefile(1,0)
except Exception as ex:
    print(ex)asctime,funcName,levelname,msg
"2021-10-23 21:32:26","func_warp","ERROR","[RAISE]test_csv: division by zero"2021-10-23 21:32:26,407 [RAISE]test_consolefile: division by zero
Package: qqmusicbox
# QQMusicBox![Build Status](https://travis-ci.org/lai-bluejay/qqmusicbox.svg?branch=master)
![PyPI](https://img.shields.io/pypi/v/qqmusicbox.svg?style=flat)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/lai-bluejay/qqmusicbox.svg)只要有声卡，命令行也能播放音乐看到一款[命令行的网易云🎵](https://github.com/darknessomi/musicbox/)，忍不住想照着开发一个同款的QQ音乐，整体代码结构还是参考darkness的版本，在此版本上微调。qq音乐api会和[meik-h](https://github.com/MeiK-h/QQMusicAPI)一起维护## 特性暂时只支持搜索音乐…….### 键盘快捷键Key   | Effect          |           |—– | ————— | ——— |j     | Down            | 下移        |k     | Up              | 上移        |h     | Back            | 后退        |l     | Forword         | 前进        |u     | Prev page       | 上一页       |d     | Next page       | 下一页       |f     | Search          | 快速搜索      |[    | Prev song       | 上一曲       |]     | Next song       | 下一曲       |=     | Volume +        | 音量增加      |-     | Volume -        | 音量减少      |Space | Play/Pause      | 播放/暂停     |m     | Menu            | 主菜单       |p     | Present/History | 当前/历史播放列表 |i     | Music Info      | 当前音乐信息    |⇧+p   | Playing Mode    | 播放模式切换    |⇧+a   | Enter album     | 进入专辑      |g     | To the first    | 跳至首项      |⇧+g   | To the end      | 跳至尾项      |## 安装### 必选依赖mpg123用于播放歌曲  自行搜索一下安装办法吧### PyPi安装$ pip install qqmusicbox### Git clone安装master分支$ git clonehttps://github.com/lai-bluejay/qqmusicbox.git&& cd qqmusicbox
$ python setup.py install### macOS安装$ pip install qqmusicbox
$ brew install mpg123### Linux安装#### Ubuntu/Debian$ (sudo) pip install qqmusicbox$ (sudo) apt-get install mpg123#### Centos/Red Hat$ (sudo) pip(3) install qqmusicbox
$ (sudo) wgethttp://mirror.centos.org/centos/7/os/x86_64/Packages/mpg123-1.25.6-1.el7.x86_64.rpm$ (sudo) yum install mpg123-1.25.6-1.el7.x86_64.rpm
Package: qqocr
QQOcrA package used for simple OCR.Github:https://github.com/SummerColdWindContact the author:jugking6688@gmail.comOur bilibili:https://space.bilibili.com/3493127383943735Examples are as follows：For learn:fromqqocrimportQQOcr# You must provide a method to binarize the characters in the picture# and import the external library in the function.defbinary(image):importnumpyasnpimportcv2low_range=np.array([0,0,0][::-1])high_range=np.array([100,100,100][::-1])returncv2.inRange(image,low_range,high_range)qq=QQOcr()# Dataset folder consists of many pictures and a 'label.txt'.# For 'label.txt', the format of each line is "[filename]\t[text]".# For example, it can be: "1.png   12345".qq.load_dataset('./dataset')qq.set_binary(binary)qq.learn()# The suffix must be '.qmodel'.qq.save_model('./1.qmodel')For predict:fromqqocrimportQQOcrimportcv2qq=QQOcr()qq.load_model('./1.qmodel')text=qq.predict(cv2.imread('test.png'))print(text)
Package: qqpusher
QQPUSHER本项目是QQPusher和QQPusherPro的Python SDKQQPusher的使用方法请参考http://qqpusher.yanxianjun.com/QQPusherPro的使用方法请参考http://qqpusherpro.yanxianjun.com/本项目的使用pip install qqpusherDemo这里的id可以是qq号也可是qq群号importqqpusherimporttimeToken="xxxxxxxxxxxxxxxx"Group_Id="xxxxxxxxxx"Private_Id="xxxxxxxxxx"if__name__=='__main__':qqpush1=qqpusher.qqpusher(token=Token,id=Private_Id,auto_escape=False)print(qqpush1.send_private_msg("测试私聊消息"))time.sleep(10)qqpush2=qqpusher.qqpusher(token=Token,id=Group_Id,auto_escape=False)print(qqpush2.send_group_msg("测试群组消息"))time.sleep(10)print(qqpush2.set_group_mute_all(True))time.sleep(10)print(qqpush2.set_group_mute(Private_Id,60))time.sleep(10)print(qqpush2.set_group_name("测试群名"))time.sleep(10)print(qqpush2.set_group_memo("测试群公告"))函数列表qqpushersend_private_msgsend_group_msgset_group_mute_allset_group_muteset_group_nameset_group_memoqqpusherproget_state_infosend_friend_msgsend_friend_jsonsend_friend_xmlsend_group_msgsend_group_jsonsend_group_xmladd_frienddelete_friendhandle_friend_eventjoin_groupquit_groupall_banbankick_group_memberadd_event鸣谢yanxianjun开发维护的QQPusher推送服务
Package: qq.py
✨ 用 Python 编写的用于 QQ频道机器人 的现代化、易于使用、功能丰富且异步的 API。 ✨主要特点使用async和await的现代 Pythonic API。优化速度和内存。安装需要 Python 3.8或以上的版本和一根接入互联网的网线。要安装库，你只需运行以下命令：pip3 install -U qq.py快速示例fromqqimport*classMyClient(Client):asyncdefon_ready(self):print('使用',self.user,'登陆')asyncdefon_message(self,message):# 不要回复自己ifmessage.author==self.user:returnif'ping'inmessage.content:awaitmessage.channel.send('pong')if__name__=='__main__':client=MyClient()client.run(token='app_id.token')Bot 示例importqqfromqq.extimportcommandsbot=commands.Bot(command_prefix='>',owner_id='你的用户ID')# owner_id 是 int 类型@bot.eventasyncdefon_ready():print(f'以{bot.user}身份登录（ID：{bot.user.id}）')print('------')@bot.command()asyncdefping(ctx):awaitctx.send('pong')bot.run('app_id.token')你可以在 example 目录中找到更多示例。链接文档QQ API帮助 QQ 群 - 583799186非官方 Discord 服务器
Package: qqqfome
# Thank you follow me - 谢谢你关注我呀！## 简介这是一个用于自动给知乎里你的新关注者发送一条信息的后台服务。技术栈什么的非常简单：- 以前写的 `zhihu-py3` 用于获取知乎信息- 用 `sqlite` 数据库保存老的关注者- `daemon.py` 用于在 *unix 环境下创建 daemon proc## 使用### 安装```bashsudo python3 install qqqfome```### 创建工作目录```bashcd /path/that/you/wantmkdir qqqfome_workcd qqqfome_work```### 初始化数据库```bashqqqfome -v init```然后根据提示登录知乎。过程中需要验证码……如果你是在VPS上部署的话，你得想办法把 `captcha.gif` 文件从远程服务器弄到本地来查看验证码……其实我更建议在本地用 `zhihu-py3` 生成 cookies 再弄到 VPS 上，这样就可以使用：```bashqqqfome -c /path/to/cookie -v init```来省略登录步骤。如果一切正常的话，你会得到一个 sqlite 数据库文件。名字是 `<your-zhihu-id>.sqlite3`### 启动```bashqqqfome -m $'I\'m {my_name}:\nThank you follow me.' -d start <your-zhihu-id>.sqlite3```（如果只是测试的话，可以去掉 `-d` 参数，让他在前台模式运行。）`-m` 参数后跟需要发送的信息。注意，如果你在消息内部使用了转义字符，那么单引号前的`$`符号是必需的。或者你可以将信息写在一个文件里，然后使用 `-M` 参数指定此文件。两个都没有指定的话，默认的消息是：```text你好{your_name}，我是{my_name}，谢谢你关注我，你是我的第{follower_num}号关注者哟！本消息由qqqfome项目自动发送。项目地址：https://github.com/7sDream/qqqfome{now}```程序支持的也就是例子里的这几个宏了……## 查看Log```bashtail -f <your-zhihu-id>.sqlite3.log```默认的 log 文件名是 `<your-zhihu-id>.sqlite3.log`还有一个是 `<your-zhihu-id>.sqlite3.pid` 这个文件不要删。### 停止如果不是后台模式，`Ctrl-C` 即可停止。如果是 Daemon 模式，则：```bashqqqfome stop <sqlite_file_name>```## 文档还没写，暂时用 `qqqfome -h` 凑合看吧。```textusage: qqqfome [-h] [-v] [-c FILE] [-p FILE] [-l FILE] [-t INTERVAL][-m MESSAGE | -M FILE] [-s NUM] [-d]{init,start,stop} [file]Thank-you-follow-me cli.positional arguments:{init,start,stop}     command that you want execfile                  database file that you want run on.optional arguments:-h, --help            show this help message and exit-v, --verbose         turn on this to print info-c FILE, --cookies FILEprovide cookies file if you have to skip login-p FILE, --pid-file FILEpid file location-l FILE, --log-file FILElog file location-t INTERVAL, --time INTERVALset the interval time-m MESSAGE, --message MESSAGEthe message that you want to send to your new follower-M FILE, --message-file FILEthe message that you want to send to your new follower-s NUM, --stop-at NUMfound NUM continuously old followers will stop pass-d, --daemon          work in daemon mode```## TODO- 增加 update 命令，用于更新数据库里的 cookies- 选项 `--mc` 或者类似的东西，用于随机从文件中选取一段文本（一行，或者以特定分隔符分隔的一段）用作 message。- 写个教程- 完善 readme 和 文档- 重构代码- 写测试## LICENSEEMIT.
Package: qqr
QQR - a python library for QR code restorationA blazingly fast QR code restoration library for Python.Controlling the version number with bumpversionWhen you want to increment the version number for a new release usebumpversionto do it correctly across the whole library.
For example, to increment to a new patch release you would simply runbumpversion patchwhich given the.bumpversion.cfgmakes a new commit that increments the release version by one patch release.
Package: qq-tr-free
qq-tr-freeQq translate for freeInstallationpip install qq-tr-free -UorInstall (pip or whatever) necessary requirements, e.g.pip install requests_cache jmespath fuzzywuzzyorpip install -r requirements.txtclone the repo (e.g.,git clone https://github.com/ffreemt/qq-tr-free.gitor downloadhttps://github.com/ffreemt/qq-tr-free/archive/master.zipand unzip) and change to the qq-tr-free folder and do apython setup.py developorpython setup.py installUsagefrom qq_tr import qq_tr
print(qq_tr('hello world'))  # -> '你好世界'
print(qq_tr('hello world', to_lang='de'))  # ->'Hallo Welt'
print(qq_tr('hello world', to_lang='fr'))  # ->'Bonjour à tous.'AcknowledgmentsThanks to everyone whose code was used
Package: qqwry-linux-python3
qqwry-linux-python3Linux下自动更新qqwry的工具安装pip3installqqwry-linux-python3更新 qqwry.dat原理从微信公众号文章中取出最新zip包地址并下载https://mp.weixin.qq.com/mp/appmsgalbum?__biz=Mzg3Mzc0NTA3NA==&action=getalbum&album_id=2329805780276838401zip地址如：https://www.cz88.net/soft/H50VASDc3-2023-06-21.zip解压zip得到setup.exe解压setup.exe得到qqwry.dat代码>>>fromqqwry.srcimportUpdateQQwry>>>uq=UpdateQQwry('./qqwry.dat')>>>uq.update()/usr/local/bin/innoextractisvalidhttps://www.cz88.net/soft/H50VASDc3-2023-06-21.zipDownloading...https://www.cz88.net/soft/H50VASDc3-2023-06-21.zipDownloadcompletedcopy/tmp/app/qqwry.datto/root/.nali/qqwry.datcompletedTrue使用 qqwry.dat>>>fromqqwry.srcimportQQwry>>>qw=QQwry()>>>qw.load_file('./qqwry.dat')True>>>print(qw.lookup('8.8.8.8'))('美国加利福尼亚州圣克拉拉县山景市','谷歌公司DNS服务器')
Package: qqwry-py2
用于在qqwry.dat里查找IP地址归属地。
﻿另提供一个从纯真网络更新qqwry.dat的小工具。是qqwry-py3模块的Python 2.7实现版，文档同该模块：https://pypi.org/project/qqwry-py3/
Package: qr
Full documentation(with example code) is at (http://github.com/tnm/qr/)QRQRhelps you create and work withqueue, capped collection (bounded queue),
deque, and stackdata structures forRedis. Redis is well-suited for
implementations of these abstract data structures, and QR makes it even easier to
work with the structures in Python.Quick SetupYou’ll need Redis (http://github.com/antirez/redis/) itself (QR makes use
of MULTI/EXEC, so you’ll need the Git edge version), and the current Python interface
for Redis, redis-py, (http://github.com/andymccurdy/redis-py). Putqr.pyin your PYTHONPATH and you’re all set.