Saravanan666/pypi-org huggingface dataset:
Package: efb-mp-instantview-middleware
MPInstantViewMiddleware: A middleware for EFBNoticeMiddleware ID:catbaron.mp_instantviewThe middleware ID wascatbaron.mp_instanceviewbefore version 0.3.0. Please take care of it, especially please remeber to update the configure file of EFB ($HOME/.ehforwarderbot/profiles/default/config.yaml).MPInstantViewMiddlewareis a middleware of EFB enable instant view for articles of official accounts.How it worksThis middleware generates a telegraph page for links sent by official accounts of wechat, which will enable the instant view. Thus you need anaccess_token(introduced below).DependensePython >= 3.6EFB >= 2.0.0PyYamlbs4requests[sock]Install and configurationInstallpip install efb-mp-instantview-middlewareEnableRegister to EFB
Followingthis documentto edit the config file. The config file by default is$HOME/.ehforwarderbot/profiles/default. It should look like:master_channel:foo.demo_masterslave_channels:-foo.demo_slave-bar.dummymiddlewares:-foo.other_middlewares-catbaron.mp_instantviewYou only need to add the last line to your config file.Configure the middlewareThe config file by default is$HOME/.ehforwarderbot/profiles/default/catbaron.mp_instantview/config.yaml.
Please create the config file if there is not one. You need to have a telegraph token and save it here. You can get a token followingthe document. Theaccess_tokenis what you need.This middleware need access tohttps://telegra.ph, add the proxy url to the configure file if necessary.# Token of telegraphtelegraph_token:ACCESS_TOKEN# Optional. Proxy url.# Example:#  proxy_url: socks5://<user>:<pass>@<host>:<port>#  proxy_url: socks5://<host>:<port>#  proxy_url: http://<host>:<port>proxy_url:PROXY_URLRestart EFB.
Package: efb-msg-blocker-middleware
MessageBLocker: A middleware for EFBNoticeMiddleware ID:catbaron.message_blockerMessageBLockeris a middleware forEFB, to manage filters and block some specific messages.Note:I rewrite most parts of this middleware in the last update. Please read theusagesection to check the change. Because the structer of database is changed, you may need to delete the database file in order to make it work (usually it's at~/.ehforwarderbot/profiles/default/catbaron.msg_blocker/ftdata.db).Note:If you are looking for a way to block all messages from so calledOfficial Accounts(公众号), this plugin is not what you need. Here are some advices:Don't subscribe any official accounts. They don't worth it.Link all official accounts to one chat, and block the chat. Refer towiki of EWS.DependensePython >= 3.6EFB >= 2.0.0b28ETM >= 2.0.0b45.dev1 (if you are using it)EWS >= 2.0.0a41.dev2 (if you are using it)peeweePyYamlInstallInstallpip install efb-msg_blocker-middlewareRegister to EFB
Followingthis documentto edit the config file. The config file by default is~/.ehforwarderbot/profiles/default. It should look like:master_channel: foo.demo_master
slave_channels:
- foo.demo_slave
- bar.dummy
middlewares:
- foo.other_middlewares
- catbaron.msg_blockerUsually you just need to add the last line to your config file.Restart EFB.UsageThree commands are supported by this middleware, namelylist,addanddel. To avoid conflict to other channels' command, all the commands MUST follow\msg_blocerand a space, as shown below.\msg_blocker list: List all the filters you have added to one chat. You can reply this command to a message, then only filters applied to the author of the target message will be listed. You will seeid,chat_name,user_nameandmsg_typefor each filter.idis the unique ID for this filter. You need it to delete a filterchat_nameshould be the name of current chat where you send the command.user_nameis the user whose message will be filteredmsg_typeis type of messages to filter out.\msg_blocker del {id}: Delete a filter with filterid.\msg_blocker add {msg_type}: Add filters. There are some ways to add filters.msg_typeis one of anytypesupported byEFB(includingUnsupportedtype), so that all the messages in the specific type will be blocked. Check all of the supported typeshere. For example\msg_blocker add imageadds a filter to block all the image messages.You cloud reply\msg_blocker add imageto a message.MessageBLockerwill get the author of the replied message, and only block image message from the author.If you reply to a message with\msg_blocker add, without themsg_typeargument, all the message from the author will be blocked.
Package: efb-notice-middleware
NoticeMiddleware: A middleware for EFBNoticeMiddleware ID:notice.NoticeMiddlewareNoticeMiddlewareis a middleware for EFB, to notice by @ in muted telegram group.Be aware that this is a very early develop version. Please let me know if you found any problem.You need to useNoticeMiddlewareon top ofEFB. Please check the document and install EFB first.DependensePython >=3.6EFB >=2.0.0PyYamlInstallInstallpip3installefb-notice-middlewareRegister to EFB
Followingthis documentto edit the config file. The config file by default is~/.ehforwarderbot/profiles/default. It should look like:master_channel:foo.demo_masterslave_channels:-foo.demo_slave-bar.dummymiddlewares:-foo.other_middlewares-notice.NoticeMiddlewareYou only need to add the last line to your config file.Restart EFB.UsageCreate config fileconfig.yamlin~/.ehforwarderbot/profiles/default/notice.NoticeMiddlewarenotices:-取件通知-超期提醒-取出通知-取件成功通知tags:-取件通知-超期提醒:取件通知
Package: efb-online-middleware
Main FunctionCheck if WeChat is still onlineUsageCreate fileconfig.yamlunder document~/.ehforwarderbot/profiles/default/online.OnlineMiddlewareecho_mp:'XXXXXX'# mp nameping:'PING'# keywordpong:'PONG'# response with keywordinterval:1800# interval(s)MP needs to open auto response function, sendPING, response withPONGInstallpip3installefb-online-middleware~/.ehforwarderbot/profiles/default/config.yamlfile add configuration to enable middlewaremaster_channel:blueset.telegramslave_channels:-blueset.wechatmiddlewares:-online.OnlineMiddleware
Package: efb-patch-middleware
Patches to enhance EFB functionalityMain FunctionTelegram administrator can send messagesAutomatically mark read on WeChat (received messages on telegramwill mark read)In a group, only one note is displayed when the note has the same name (or one is included by the other)/update_info command adds WeChat group member information to telegram group description(supported)Establish a database to save the tg group and WeChat chat/group name mapping. When there is no binding, try to find a group with the same name and automatically bind (two-way)Delete unnecessary messages when receiving pictures, videos, files, for example: sent a picture.[1]Applet sharing adds "Applet:" title prefix to distinguish regular linksUserm`to reply to the message sent by yourself (telegram message cannot be edited )compatible versionEFB 2.1.0
ETM 2.2.4
EWS 2.0.4UsageThe/update_infocommand will bind the current group to the WeChat chat one-to-one correspondenceThe/relate_groupcommand binds the WeChat group to the current telegram group, and can be associated with multiple WeChat chats; repeated use will clear the previous binding relationshipThe/release_groupcommand will delete all WeChat sessions bound to the telegram groupAdd the following configuration underblueset.telegram/config.yaml, and send the public account message to the-12334557group (view the id through the/infocommand)tg_mp:-12334557# telegram group idConfigfile path~/.ehforwarderbot/profiles/default/patch.PatchMiddleware/config.yamlauto_mark_as_read:True# auto mark as read in wechat phone clientremove_emoji_in_title:True# wouldn't remove emoji in telegram group title if this is set Falsestrikethrough_recall_msg:True# strikethrough instead of replying to a recall messageInstallationpip3installefb-patch-middleware~/.ehforwarderbot/profiles/default/config.yamlfile add to configuration enable middlewaremaster_channel:blueset.telegramslave_channels:-blueset.wechatmiddlewares:-patch.PatchMiddlewareData BackupData is saved under.ehforwarderbot/profiles/default/patch.PatchMiddleware/tg_group.dbDifference between/update_infoand/relate_group/update_infois the original command of efb, which will update the WeChat session avatar and name to the tg group, and only supports binding a WeChat session. Now this command has been extended to synchronize the WeChat session name with the tg group ID. Binding one-to-one correspondence. After the link fails, replace the original failed link with the latest one/relate_groupis a new command for middleware. The application scenario is that tg group is used when binding multiple WeChat sessions. (Usually when multiple public accounts are bound to a tg group.)A message needs to be answered when used[1]: Forward picture-type messages received by WeChat end usually with author name, remove picture title when forwarding such messages
Package: efb-patch-middleware-itchat-uos
Patches to enhance EFB functionalityMain FunctionTelegram administrator can send messagesAutomatically mark read on WeChat (received messages on telegramwill mark read)In a group, only one note is displayed when the note has the same name (or one is included by the other)/update_info command adds WeChat group member information to telegram group description(supported)Establish a database to save the tg group and WeChat chat/group name mapping. When there is no binding, try to find a group with the same name and automatically bind (two-way)Delete unnecessary messages when receiving pictures, videos, files, for example: sent a picture.[1]Applet sharing adds "Applet:" title prefix to distinguish regular linksUserm`to reply to the message sent by yourself (telegram message cannot be edited )compatible versionEFB 2.1.0
ETM 2.2.4
EWS 2.0.4UsageThe/update_infocommand will bind the current group to the WeChat chat one-to-one correspondenceThe/relate_groupcommand binds the WeChat group to the current telegram group, and can be associated with multiple WeChat chats; repeated use will clear the previous binding relationshipThe/release_groupcommand will delete all WeChat sessions bound to the telegram groupAdd the following configuration underblueset.telegram/config.yaml, and send the public account message to the-12334557group (view the id through the/infocommand)tg_mp:-12334557# telegram group idConfigfile path~/.ehforwarderbot/profiles/default/patch.PatchMiddleware/config.yamlauto_mark_as_read:True# auto mark as read in wechat phone clientremove_emoji_in_title:True# wouldn't remove emoji in telegram group title if this is set Falsestrikethrough_recall_msg:True# strikethrough instead of replying to a recall messageInstallationpip3installefb-patch-middleware~/.ehforwarderbot/profiles/default/config.yamlfile add to configuration enable middlewaremaster_channel:blueset.telegramslave_channels:-blueset.wechatmiddlewares:-patch.PatchMiddlewareData BackupData is saved under.ehforwarderbot/profiles/default/patch.PatchMiddleware/tg_group.dbDifference between/update_infoand/relate_group/update_infois the original command of efb, which will update the WeChat session avatar and name to the tg group, and only supports binding a WeChat session. Now this command has been extended to synchronize the WeChat session name with the tg group ID. Binding one-to-one correspondence. After the link fails, replace the original failed link with the latest one/relate_groupis a new command for middleware. The application scenario is that tg group is used when binding multiple WeChat sessions. (Usually when multiple public accounts are bound to a tg group.)A message needs to be answered when used[1]: Forward picture-type messages received by WeChat end usually with author name, remove picture title when forwarding such messages
Package: efb-qq-slave
Channel ID:milkice.qq软件依赖Python >= 3.6EH Forwarder Bot >= 2.0.0ffmpeglibmagicpillow安装与启用本项目目前仍是 Alpha 版本，仍不稳定，且功能可能随时变更。现阶段，请按照以下步骤安装此软件包并开始测试。安装依赖及 EH forwarder botpip3 install ehforwarderbotpip 安装 efb-qq-slave 及 efb-telegram-masterpip3 install-Ugit+https://github.com/milkice233/efb-qq-slavepip3 installefb-telegram-master配置EFB在当前配置文件夹 (Profile)<profiledirectory>/config.yaml的config.yaml中启用主端blueset.telegram与附端milkice.qq当前配置文件夹的位置会根据用户的设定而改变。(EFB 2.0.0a1 中，默认的配置文件夹位于~/.ehforwarderbot/profiles/default)配置 efb-telegram-master ，详情请见这里为milkice.qqEQS从端 创建配置文件config.yaml来指定 QQ 客户端各种QQ客户端的详细配置步骤如下。客户端们:酷Q:酷Q API通用配置教程go-cqhttp:go-cqhttp 配置教程Mirai:Mirai 客户端配置教程IOTBot:IOTBot 客户端配置教程FAQs以下内容通用 针对所有客户端有效Q - 如何在 主端(Telegram) 撤回消息？A - 如果 QQ 客户端支持该操作，请回复该消息/rm即可在QQ端撤回该消息 同时请注意发出的消息仅能在发出后2分钟内撤回Q - 如何在 主端(Telegram) 编辑消息？A - 直接使用 Telegram 的编辑消息功能即可 (目前Mirai客户端的兼容模式暂不支持)注意事项目前项目并不稳定，欢迎提交Issue
Package: efb-search-msg-middleware
SearchMessage: A middleware for EFBNoticeMiddleware ID:catbaron.search_msgSearchMessageis a middleware for EFB, to search message from the chat history.SearchMessage是用来搜索历史消息的中间件.Usually, you may have trouble to search messages withChinseskey words in Telegram clients,
thus here is the middleware could help you out.由于 Telegram 对中文没有做分词，关键词搜索几乎不可用。所以写了个中间件用来搜索消息。Be aware that this is a very early develop version. Please let me know if you found any problem.注意，这是初期版本可能会不稳定。（也可能没有稳定版本了）You need to useSearchMessageon top ofEFB. Please check the document and install EFB first.请先装 EFB。DependensePython >=3.6EFB >=2.0.0peeweePyYamlpython-dateutilInstallInstallpip install efb-search_msg-middlewareRegister to EFB
Followingthis documentto edit the config file. The config file by default is~/.ehforwarderbot/profiles/default/config.yaml. It should look like:装完之后需要在 EFB 的配置文件注册一下中间件。默认在这~/.ehforwarderbot/profiles/default/config.yamlmaster_channel: foo.demo_master
slave_channels:
- foo.demo_slave
- bar.dummy
middlewares:
- foo.other_middlewares
- catbaron.search_msgYou only need to add the last line to your config file.基本上只要加上最后一行就够了。Config the middleware这个中间件提供了一些选项。第一个基本上不用改。第二个是每次展示的搜索结果数量。改成 0 是没有限制。The config file by default is$HOME/.ehforwarderbot/profiles/default/catbaron.search_msg/config.yaml.
Please create the config file if thers is not one.  Edit it as:# The name of master channel
master: 'blueset.telegram'

# The max number of message the middleware would show you. 
# Set it to 0 for no limitation.
max_num: 15Restart EFB.How to useThe command:\sr [key_word] [from:datetime] [to:datetime]key_word: text without whitespace charactersdatetime: Datetime string, such as1989-6,2008-8-8 12:0. Note thatfrom:andto:are necessary and there should be no space in this argument. Messages of last 15 days will be searched by default.key_word: 搜索用的关键字datetime: 表示时间的字符串， 比如1989-6, 或者2008-8-8 12:0.from:和to:表示搜索的时间范围。注意所有参数内部都不要有空白字符。UsageSent command to a chat （直接发命令）There should be at least one of the three arguments三个参数至少要有一个Reply the command to an message （回复一条消息）Search message sent by the author of the replied message用来搜索某个人发出的消息Some times the author is saved asNonein the database, so it's not always reliable.因为有时候 EFB 会拿不到消息作者的信息，所以这个功能并不总是可靠。（下图里面拿到的就是 None）To locate the message in Telegram, you can: 如果你想在 Telegram 里面定位到某条消息，你可以在用关键字搜索到消息内容只后：Search the full message in Telegram搜索消息全文Search some segment of message splitted by non-chinese characters.搜索被符号隔开的部分For instance, say you have a message这是一条被空格分开  的消息, to locate this message, you coulde search the entire message,这是一条被空格分开or的消息in Telegram.比如你找到这条消息这是一条被空格分开  的消息, 你可以再 Telegram 里面搜索整条消息多全文，或者搜索这是一条被空格分开或者的消息.
Package: efb-telegram-slave
EFB Telegram SlaveEH Forwarder Botis an extensible message
tunneling chat bot framework.It is sometimes useful if we have a Telegram slave channel for EFB. So there is
one, primarily based ontelethon.Channel ID:sharzy.telegramInstallationInstall the latest version from GitHub (recommended because this project is not stable yet):pip3 install git+https://github.com/SharzyL/efb-telegram-slaveInstall from PyPI:pip3 install efb-telegram-slaveTo make EFB work, you need to configure some master channel and some slave
channels.  For complete usage guide, refer toEFB user
guide.ConfigurationRunehforwaderbot --profile <your-profile-name>to run an interactive guide to
complete the configuration.By default, configuration file is located in~/.ehforwarderbot/profiles/<your-profile-name>/sharzy.telegram/config.yaml.
The following is an exemplary configuration.# you should apply for a pair of api_hash and api_id in https://my.telegram.org/api_hash:12349061a3e1383920c2e05c1830a774api_id:1234567# in case you need a proxy to access telegramproxy:protocol:http# http / socks5 / socks4host:localhostport:1234Features not supported yetRich textLess used message types, such as LocationMessage edit and recallSend sticker as.webpNotification control
Package: efb-voice-recog-middleware
VoiceRecogMiddleware: A middleware for EFBNoticeMiddleware ID:catbaron.voice_recogVoiceRecogMiddlewareis a middleware for EFB to recognize content of voice message.
This middleware is modified based onehForwarderBot 1.0BaiduDeprecated for now because my Baidu account is limited by Baidu由于我的Baidu账号不能正常登陆，因此对百度引擎的支持暂时停止。API from Baidu is available for free.You need to getAPI_KEYandSECRET_KEYfollowinghttp://ai.baidu.com/docs#/ASR-API-PRO/topAzure Cognitive ServiceAzure Cognitive Service offers 5 audio hours per month for free.You need to getKey1andEndpointfromhttps://portal.azure.com/IFlyTekIFlyTek offers 500 queries per day fro free to new users. Additional free bundles are available from 50,000 queries/90 days to 100,000 queries/year.You need to getAPPID,APISecretandAPIKeyfromhttps://console.xfyun.cn/services/iatTencentTencent offers 15,000 queries for free per month.Chinese ID verification is required to use free service.You need to getSecretIDandSecretKeyfromhttps://console.cloud.tencent.com/cam/capiYou need to useVoiceRecogMiddlewareon top ofEFB. Please check the
document and install EFB first.DependensePython >= 3.6EFB >= 2.0.0b15pydubInstall and configurationInstallpip install efb-voice_recog-middlewareEnableRegister to EFB
Followingthis documentto edit the config file. The config file by default is$HOME/.ehforwarderbot/profiles/default/config.yaml. It should look like:master_channel:foo.demo_masterslave_channels:-foo.demo_slave-bar.dummymiddlewares:-foo.other_middlewares-catbaron.voice_recogYou only need to add the last line to your config file.Configure the middlewareThe config file by default is$HOME/.ehforwarderbot/profiles/default/catbaron.voice_recog/config.yaml.
Please create the config file if thers is not one.  Edit it as:speech_api:baidu:api_key:API_KEYsecret_key:SECRET_KEY# supported language:#   zh, zh-x-en, en, zh-yue, zh-x-sichuan, zh-x-farfieldlang:zhazure:key1:KEY_1endpoint:ENDPOINT# supported language:#   ar-EG, ar-SA, ar-AE, ar-KW, ar-QA, ca-ES,#   da-DK, de-DE, en-AU, en-CA, en-GB, en-IN,#   en-NZ, en-US, es-ES, es-MX, fi-FI, fr-CA,#   fr-FR, gu-IN, hi-IN, it-IT, ja-JP, ko-KR,#   mr-IN, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT,#   ru-RU, sv-SE, ta-IN, te-IN, zh-CN, zh-HK,#   zh-TW, th-TH, tr-TRlang:zhtencent:secret_id:SECRET_IDsecret_key:SECRET_KEY# supported language: en, zhlang:eniflytek:app_id:APP_IDapi_secret:API_SECRETapi_key:APP_KEY# supported language: zh, enlang:enauto:trueReplace the section with all-caps to your own ones.Note that you may omit the section that you do not want to enable.Turn offautoif you want to disable auto recognition to all voice
messages. Alternatively, you may replyrecog`to a voice
message to recognise it.Restart EFB.
Package: efb-wechat-basic-slave
Channel ID:jogle.wechatSoftware dependenciesPython >= 3.6EH Forwarder Bot >= 2.0.0ffmpeglibmagicpillowIntroductionThis is a self-use EFB WeChat slave.WeChat slave to master channel is fully supported, but only text mesage can send to WeChat slave.This project is still in Alpha, use at your own risk.
Package: efb-wechat-comwechat-slave
教程地址dockerpullhonus/efb-wechat-comwechat-slave:latest部分已经支持的命令：/search - 按关键字匹配好友昵称搜索联系人

/addtogroup - 按wxid添加好友到群组

/getmemberlist - 查看群组用户wxid

/at - 后面跟wxid，多个用英文,隔开，最后可用空格隔开，带内容。

/sendcard - 后面格式'wxid nickname'

/changename - 修改群组名称

/getstaticinfo - 可获取friends, groups, contacts信息
Package: efck
EF*CK Chat KeyboardEmoji Filter / Unicode Chat Keyboard— Official websiteFind prebuilt downloads in theReleasessidebar.Contributing guidelines / hackingFeaturesFully cross-platform desktop on-screen emoji keyboard based on
Python and PyQt6/5+Keyboard-first navigationBuilt-in tabs for:Emoji filtering by emoji name and common marksTransforming input text into various segments of Unicode
(extendable with own scripts)Searching for meme GIFs with support for drag-and-drop
into your chosen windowExtensible architecture with support for custom homemade tabs.The selected emoji/filter/gif/... is typed/pasted into the
previously active desktop window ...... and/or saved into clipboard
Package: efesto
EfestoA micro REST API meant to be used almost out of the box with other
microservices.It kickstarts you by providing a simple way to build a backend and expose it.
Efesto uses PostgreSQL and JWTs for authentication.Efesto follows the UNIX principle of doing one thing and well, leaving you the
freedom of choice about other components (authentication, caching, rate-limiting,
load balancer).InstallingInstall efesto, possibly in a virtual environment:pipinstallefestoCreate a postgresql database and export the database url:exportDB_URL=postgres://postgres:postgres@localhost:5432/efestoExport the jwt secret:exportJWT_SECRET=secretPopulate the db:efestoinstallCreate an admin:efestocreateuserstofu--superuserNow you can start efesto, with either uwsgi or gunicorn:gunicorn"efesto.App:App.run()"Efesto should now be running:curlhttp://localhost:8000/versionRead the completedocumentationto find out more.DockerDocker images are available in the hub:strangemachines/efesto:lateststrangemachines/efesto:latest-meinheldstrangemachines/efesto:2.3strangemachines/efesto:2.3-meinheldstrangemachines/efesto:2.2strangemachines/efesto:2.1PerformanceEfesto performs at about 300 requests/second on the smallest digital ocean
droplet, for requests that include JWT authentication, fetching data and
printing out JSON.You have seen 100k requests benchmarks, but don't be fooled:
most benchmarks from authors are made so that their package comes to the top
and do not reflect real conditions.
Package: eff
EffEff is a Python library to work with algebraic effects.Algbraic effects are all side-effects of a piece of code, like reading a user input, writing a text on the screen, doing network requests, reading a file etc. Eff allows to easily handle such effects making the code cleaner and testing easier.Features:Easy to understand. You don't need to read long scientific papers to understand how to use the library and what it does.Easy to integrate. If you decided to add a logger into a function, changes will be minimal, no need to pass the logger down through the whole call stack.Fast. The classic approach for handling algebraic effects is using coroutines or exceptions. This library uses global shared state instead which doesn't require to unwrap the whole call stack at runtime.Type-safe. Effect handlers container is just a class. Annotate effect handlers type to make their usage type-safe.Installationpython3-mpipinstall--usereffUsagefromioimportStringIOfromtypingimportCallableimporteffclassEff(eff.ects):show:Callable# Use global effects manager in a function.defgreet(username:str)->None:Eff.show(f'Hello,{username}!')# Provide actual side-effects handlers# for the project prod entry point.defmain()->None:withEff(show=print):greet('World')# Mock side-effects in tests.deftest_greet()->None:stream=StringIO()withEff(show=stream.write):greet('World')stream.seek(0)assertstream.read()=='Hello, World!'if__name__=='__main__':main()Further readingYou don't have to read it but it's a good reading for better understanding of the motivation behind the library.Why PLs Should Have Effect HandlersAlgebraic Effects for the Rest of UsWhat does algebraic effects mean in FP?Eff programming language