Saravanan666/pypi-org huggingface dataset:
Package: dinf
Dinf is discriminator-based inference for population genetics.
It uses a neural network to discriminate between a target dataset
and a simulated dataset.
Inference is done by finding simulation parameters that produce
data closely matching the target dataset.
Dinf provides a Python API for creating simulation models,
and a CLI for discriminator training and inference.See the documentation for details.https://racimolab.github.io/dinf/
Package: ding0
DING0DIstribution Network GeneratOr -- A tool to generate synthetic medium and low
voltage power distribution grids based on open (or at least publicly available)
data.Installation and usageDing0 is provided through the package management toolpip. Install it bypip install ding0Further details regarding the installation including dependencies are provided
in thedocumentationAset of examplesis provided to show how to use Ding0.An overview on versions of data already generatedcan be found in the wiki.LICENSECopyright (C) 2017-2021 openego project groupThis program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
details.You should have received a copy of the GNU General Public License along with
this program. If not, seehttps://www.gnu.org/licenses/.
Package: dingapi
描述基于钉钉开放平台封装的 轻量级Python-Sdk因目前个人需求 只需要发送工作通知到钉钉,所以目前只封装了工作通知消息的接口和部分用户相关的接口安装pip install -U dingapi使用from dingapi.client import DingApi

AppKey = 'xxxxx'
AppSecret = 'xxxxx'
AgentId = 'xxxxx'
# 创建一个客户端
dingApi = DingApi(AppKey, AppSecret, AgentId)

# 获取用户信息
r = dingApi.user.get(user_id)
print(r)

# 发送工作通知给钉钉用户
r = dingApi.message.asyncsend_v2({
"msgtype": "text",
"text": {
"content": "消息内容",
},
},
userid_list='' # 用户 id列表
)
print(r)
Package: dingdb
Dingdb, a thingdb like storage & retrieval Python APISimple implementation ofThingdb, calledDingdb(German for'thing')
Currently expects a sqlite3 database.Inspired by:http://web.archive.org/web/20080109204022/http://pharos.infogami.com/tdbhttps://github.com/reddit-archive/reddit/blob/master/r2/r2/lib/db/ding.pyhttps://github.com/itslukej/ding/tree/master/dingdbhttps://www.reddit.com/r/webdev/comments/30ycc1/has_anyone_built_a_reddit_clone_if_so_any_tips_on/http://www.reddit.com/r/webdev/.jsonhttps://www.youtube.com/watch?v=hB-M8oH4K4wInstallationgit clone git@github.com:chrisjsimpson/dingdb.git
cd dingdb/
pip3 install ./
python3 dingdb/migrations/1-create-dingdb-schema.py -up -db ./data.dbUsagefrom dingdb import dingdb
from uuid import uuid4

dingdb.help() # See help

# Connect and insert data
tdb = dingdb(database='./data.db')
# Put things
tdb.putDing(1, 'person', 'person', data=[{'key':'name', 'value': 'Sam'}, {'key':'age', 'value':30}])
# Get a thing
person = tdb.getDing(1)
person.name 
'Sam'
person.age
'30'
person.age = 31
person.save()

# Get things by type
tdb.getDingsByType('person')

# More..

# Use a uuid for ids:
tdb.putDing(str(uuid4()), 'person', 'person', data=[{'key':'name', 'value': 'Sam'}, {'key':'age', 'value':30}])
Package: dingding
在线安装pip install dingding例子from dingding import DingDing
access_token="xxxxxxxxxxxxxxxxxxxxxxxxxx"
ding = DingDing(access_token)
# @所有人
ding.send_text('hello', at_all=True)

# @手机号为1333333333的人
ding.send_text('hello', ['13333333333'])

ding.send_link('title', 'text', 'message_url')

ding.send_markdown('title', 'text')

ding.send_action_card('title', 'text', [('title1', 'url1'), ('title2', 'url2')])ding.send_text('我就是我, 是不一样的烟火', ['13333333333'])ding.send_link('时代的火车向前开', '这个即将发布的新版本，创始人陈航（花名“无招”）称它为“红树林”。 而在此之前，每当面临重大升级，产品经理们都会取一个应景的代号，这一次，为什么是“红
    树林”？', 'https://mp.weixin.qq.com/s?__biz=MzA4NjMwMTA2Ng==&mid=2650316842&idx=1&sn=60da3ea2b29f1dcc43a7c8e4a7c97a16&scene=2&srcid=09189AnRJEdIiWVaKltFzNTw&from=timeline&isappinstalled=0&key=&ascene=2&uin=&devicetype=android-23&version=26031933&nettype=WIFI')ding.send_feed_card([('学vue','https://cn.vuejs.org/','https://cn.vuejs.org/images/logo.png'),
                     ('哪家强', 'https://cn.vuejs.org/', 'https://cn.vuejs.org/images/logo.png')])添加签名秘钥d=DingDing("https://oapi.dingtalk.com/robot/send?access_token=tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt")# 如果使用了签名秘钥,需要添加下面这条语句d.set_secret("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS")d.send_text("hello")返回结果如果发送正常{'errcode': 0, 'errmsg': 'ok'}
Package: dingdinghelper
dingding-helperUsagepip install dingdinghelperExamplefromdingdinghelperimportDingDingHelperif__name__=="__main__":ding=DingDingHelper()ding.username='13712345678'ding.password='xxxpassword'ding.corpid='...'ding.corpsecret='...'ding.msgurl='https://oapi.dingtalk.com/robot/send?access_token=...'ding.send_msg('DingDingHelper Test')ding.cookie='...'ding.upload_file("E:/xxx.zip",483476421,'/xxx/')Publish to PyPIpip install --user --upgrade setuptools wheel twine
python setup.py sdist bdist_wheel
python -m twine upload dist/*
Package: dingdingrobot
功能发送消息到钉钉机器人。支持所有钉钉机器人消息类型。钉钉机器人支持多种安全设置，建议在设置时选择IP地址。钉钉机器人开发文档安装1.安装该模块
pipinstalldingdingrobot使用获取钉钉机器人的access_token创建机器人时，会返回一个webhook的地址，如https://oapi.dingtalk.com/robot/send?access_token=053e5481723dbe9b2e7765ece20118fa5963909d50f05ea6ae58214e9，则access_token为053e5481723dbe9b2e7765ece20118fa5963909d50f05ea6ae58214e9使用key='053e5481723dbe9b2e7765ece20118fa5963909d50f05ea6ae58214e9'importdingdingrobotdtrobot=dingdingrobot.DingdingRobot(key)发送文本消息# 签名dtrobot.send_text(content,at_mobiles=None)# content 为要发送的文本内容# at_mobiles 需要 @ 人的手机号，可以是列表或字符串。如果要 @所有人，则设置 at_mobiles='all'。# @ 多个人时，指定 at_mobiles=['18600000000', '18600000001'] 或 at_mobiles='18600000000,18600000001'发送markdown消息# 签名dtrobot.send_markdown(title,contents,at_mobiles=None)# title     指定markdwon消息显示的标题# contents  为可迭代对象，如列表、元组等。每一行为一个 markdown 格式的字符串。# at_mobiles    需要@人的手机号，参考 send_text 中的 at_mobiles# 支持的格式参考：https://ding-doc.dingtalk.com/document#/org-dev-guide/qf2nxq/9e91d73c发送link类型# 签名dtrobot.send_link(title,text,jump_url,picurl=None)# title     消息标题# text      消息内容# jump_url  点击消息跳转的url# picurl    图片的url发送actionCard# 签名dtrobot.send_actioncard(title,text,btn_info,btns=False,btn_orientation=0)# title     指定 action card的标题# text      指定 action card的文本内容# btn_info  指定 button 的信息。格式为：[{'btn_title': 'title', 'btn_url': 'button url'}]# btns      False整体跳转, True 独立跳转。默认是 False# btn_orientation   button的排列方式。0按钮竖直排列，1按钮水平排列发送feedCard# 签名dtrobot.send_feedcard(links)# links     格式为：[{'link_title': 'link title', 'message_url': 'message url', 'pic_url': 'pictur url'}]示例key='you access token'dtrobot=dingdingrobot.DingdingRobot(key)# 发送 text 消息dtrobot.send_text('123'))# 发送 markdown 消息dtrobot.send_markdown(title='123',contents=['# hello world','> 1','> 2','> 3','4'],at_mobiles='18600010001,18655750614,all')# 发送 link 消息dtrobot.send_link(title='MAKA做出好设计',text='MAKA做出好设计',jump_url='https://www.maka.im',picurl='https://img1.maka.im/template/T_XM3SO6TE_t1.jpg'))# 发送 actionCarddtrobot.send_actioncard(title='MAKA做出好设计',text='MAKA做出好设计',btn_info=[{'btn_title':'MAKA官网','btn_url':'https://www.maka.im'},{'btn_title':'MAKA做出好设计','btn_url':'https://maka.im'}],btns=True),1)# 发送 feedCarddtrobot.send_feedcard([{'link_title':'MAKA做出好设计','message_url':'https://www.maka.im','pic_url':'https://res.maka.im/platV5Cms/homepage/icon/Group22%402x.png?x-oss-process=image/format,webp'},{'link_title':'link title','message_url':'https://www.maka.im/muban','pic_url':'https://img1.maka.im/template/T_XM3SO6TE_t1.jpg'}])
Package: dingding-webhook
dingding webhookThis is a simple python api package to send your own message by dingding robot.#Installationpipinstalldingding_webhook#Usagesend msgimportdingding_webhook.webhookasdingding_webhookwebhook_url="xxx"# your dingding robot webhookcontent="test text msg"dingding_webhook.send_text(webhook_url,content,atMobiles=[],isAtAll=False)###Examplestext类型# text类型# 参数     参数类型   必须    说明# msgtype   String   是     消息类型，此时固定为：text# content   String   是     消息内容# atMobiles Array    否    被@人的手机号(在content里添加@人的手机号)# isAtAll   bool     否    @所有人时：true，否则为：falsesend_text(post_url, content, atMobiles=[], isAtAll=False)link类型# 参数     参数类型   必须    说明# msgtype   String    是    消息类型，此时固定为：link# title     String    是    消息标题# text      String    是    消息内容。如果太长只会部分展示# messageUrl String   是    点击消息跳转的URL# picUrl    String    否 图片URLsend_link(post_url, title, text, picUrl, msgUrl)markdown类型# 参数     参数类型   必须    说明# msgtype   String   是     消息类型，此时固定为：markdown# title     String   是     首屏会话透出的展示内容# text      String   是     markdown格式的消息# atMobiles Array    否    被@人的手机号(在content里添加@人的手机号)# isAtAll   bool     否    @所有人时：true，否则为：falsesend_markdown(post_url, title, text, atMobiles=[], isAtAll=False)整体跳转ActionCard类型# 参数      类型      必选      说明# msgtype   string    true    此消息类型为固定actionCard# title     string    true    首屏会话透出的展示内容# text      string    true    markdown格式的消息# btns.btnOrientation  string  false  "0"-按钮竖直排列，"1"-按钮横向排列# btns.buttons    [{               "title": "内容不错",         "actionURL": "https://www.dingtalk.com/"            },#           {       "title": "不感兴趣",                "actionURL": "https://www.dingtalk.com/"         }      ]# hideAvatar      string  false  "0"-正常发消息者头像，"1"-隐藏发消息者头像send_actionCard(post_url, title, text, btns, hideAvatar="0")FeedCard类型# FeedCard类型# 参数      类型      必选      说明# msgtype string      true    此消息类型为固定feedCard# cardList array      true## cardList[0].title   string      true    单条信息文本# cardList[0].messageURL  string  true    点击单条信息到跳转链接# cardList[0].picURL  string      true    单条信息后面图片的URLsend_feedCard(post_url, cardList)###Documentationmore docs seedingding doc
Package: dingdong-sonos
DinDongAdd some flair to your office routine with the charm of nostalgia. Have you ever yearned for those good old school days when the bell signalled a break? Now, with dingdong-sonos, you can recreate that same anticipation in your office environment. Just one command transforms your Sonos system into a school bell, reminding everyone to take that well-deserved pause. Rediscover the joy of break time with dingdong-sonos 🔔!How to use itpip install dingdong-sonos
dingdongYou can adjust the volume or set the sonos_ip:dingdong --sonos_ip <ip-of-your-sonos> --volume 80
Package: dinglebop
Easy enums for Python.>>>RGB=StringEnum(['Red','Green','Blue'])>>>RGB.Red'Red'Contents1Installation2Features3Use4Contributing4.1Installing for development4.2Running the tests4.3Adding documentation5Credits1InstallationInstallezenumwith:pipinstallezenum2FeaturesPure Python.Compatible with Python 3.5+.Easy creation of usefull enum objects.String enums with unified value and name attributes.3UseStringEnumEasilly get a string enum from a string list.4ContributingPackage author and current maintainer is Shay Palachy (shay.palachy@gmail.com); You are more than welcome to approach him for help.4.1Installing for developmentClone:gitclonegit@github.com:shaypal5/ezenum.gitInstall in development mode with test dependencies:cdezenumpipinstall-e".[test]"4.2Running the testsTo run the tests, use:python-mpytest--cov=ezenum4.3Adding documentationThis project is documented using thenumpy docstring conventions, which were chosen as they are perhaps the most widely-spread conventions that are both supported by common tools such as Sphinx and result in human-readable docstrings (in my personal opinion, of course). When documenting code you add to this project, please followthese conventions.5CreditsCreated by Shay Palachy (shay.palachy@gmail.com).
Package: dinglingling
dinglinglingdinglingling, your program is over!
The code referenceshttps://github.com/light8lee/dingdong. The web weChat now is not work, so I refact the code by theServer Chan.Requirementspython >= 3.6Installationclone the whole project from git and installgitclonehttps://github.com/PeijiYang/dinglingling.gitcddinglingling
pythonsetup.pyinstallinstall from pypipipinstalldinglinglingUsageFirst, you need to register an account fromhttp://sc.ftqq.com/3.version. Then you will get a SCKEY.Just like the examples in test.py, you need to add the decorator ahead of your function:fromdinglinglingimportwx_reminderSCKEY=""# the sckey you get from http://sc.ftqq.com/3.versionproxy=""# if you needn't proxy, ignore it.# remind_started: if you need remind you when the function# stated, make remind_started = True@wx_reminder(SCKEY=SCKEY,proxy=proxy,remind_started=False)deftest_correct_func():print("hello world")use demo:————————————————ThanksServerChanlight8lee
Package: dingmsgapi
python封装钉钉Webhook机器人消息发送逻辑，目前仅支持python2。安装pip install dingmsgapi初始化实例from ding_msg_api import MsgClient
# Webhook机器人access_token
msgClient = MsgClient("****************")发送Text消息from ding_msg_api import TextMsg

# @群里所有人发文本消息
txtMsg = TextMsg()
txtMsg.set_text(txt="text message")
txtMsg.set_at_all(True)
msgClient.send_message(txtMsg)

# @某个人发文本消息
txtMsg = TextMsg()
txtMsg.set_text(txt="text message")
txtMsg.add_at_user(telephone="***********")
msgClient.send_message(txtMsg)发送Link消息from ding_msg_api import LinkMsg

linkMsg = LinkMsg()
linkMsg.set_title(title="link message")
linkMsg.set_text(txt="test")
linkMsg.set_picUrl(pic_url="")
linkMsg.set_messageUrl(message_url="")
msgClient.send_message(linkMsg)发送Markdown消息from ding_msg_api import MarkdownMsg

markDownMsg = MarkdownMsg()
markDownMsg.set_title(title="markdown message")
markDownMsg.set_text(txt="### test")
msgClient.send_message(markDownMsg)发送ActionCard消息from ding_msg_api import ActionCardMsg

actionCardMsg = ActionCardMsg()
actionCardMsg.set_title(title="actioncard message")
actionCardMsg.set_text(txt="test")
actionCardMsg.set_singleTitle(single_title="test")
actionCardMsg.set_singleURL(single_url="")
msgClient.send_message(actionCardMsg)发送FeedCard消息from ding_msg_api import FeedCardMsg

feedCardMsg = FeedCardMsg()
for i in range(5):
    feedCardMsg.add_feed_link(title="test%d" % i, message_url="messageURL%d" % i, pic_url="picUrl%d" % i)
msgClient.send_message(feedCardMsg)参考文档钉钉开放平台群机器人祝您工作愉快！！！
Package: dingo
dingois aDjangoapplication which extends theDjango Adminto allow the easy creation of additional views for Model classes and
instances.  dingo also allows you to customize the Admin of third
party applications, without subclassing or modifying the original
source tree.FeaturesEasily create new views for your Model Admin, either at the Model or
object level.Inject customizations into the admin declaration of a third
party application without modifying the original code base.UsageTo use dingo, ensure that it’s on the Python path, and add it to yourINSTALLED_APPSsetting insettings.py.  Note that dingomustbe installedbeforedjango.contrib.admin, as it replaces the
defaultAdminSitewith one which will instrument theModelAdminclasses registered.dingo requires Django 1.2 or later.Models vs. Objectsdingo can be used to register views for Models or Objects.  Views
registered for Models are not specific to any instance of the model;
they can be thought of as similar to Django admin actions with an
[potentially] empty queryset.  Instance views operate on single model
instances; you can think of them as similar to admin actions that
operate on a single object instead of a queryset.dingo views differ fromadmin actionsin a couple of subtle ways.
The most important difference is that they may be injected into third
party applications wihthout sub-classing or modifying the application
code.  dingo views also have a different user interface by default.
dingo includes replacement admin templates which show dingo views as
buttons in the upper right hand area of the change list and change
form views.Adding ViewsIf you want to use dingo to add model or object views to your Model’s
admin, you can define them either as functions or as methods on the
ModelAdmin.For example, to define the view as a function:import dingo
import dingo_test.models

@dingo.object_view(dingo_test.models.RstDocument)
@dingo.short_description("Render")
def render(model_admin, request, object_id):

    from django.shortcuts import redirect
    document = dingo_test.mdoels.RstDocument.objects.get(id=object_id)

    return Response()The same view may also be a method on the ModelAdmin:class RstDocumentAdmin(ModelAdmin):

    @dingo.object_view(dingo_test.models.RstDocument)
    @dingo.short_description("Render")
    def render(self, request, object_id):
        passNote that the use of theshort_descriptiondecorator defines the
label used in the admin user interface, and is optional in this case.
If no description is provided, dingo will format the function or
method name, similar to how Django formats default verbose names for
models.Adding Views to Third Party ApplicationsSo long as dingo is listed inINSTALLED_APPSbeforedjango.contrib.admin, the function-based example above will work
as desired.  Note that the code needs to be imported to ensure that
registration occurs properly.Missing Features / BugsModel views are significantly less developed than Instance views.Different actions for Models in different AdminSites are not
currently supported.  To accomodate this, a site-local action
registry will need to be used.
Package: dingo-enets
dingo-enetsThis reposity contains the embedding networks from [1], which are trained for the purpose of gravitational wave parameter estimation. If you find this code useful please cite [1].Note: This is only a partial release of the code used in [1]. A more comprehensive package will be released in the near future. The present repository will not be maintained once the full package is publicly available.UsageBuild a virtual environment and installdingo-enets.$python3-mvenvvenv
$sourcevenv/bin/activate
$pipinstalldingo-enetsUsedingo-enetsto download and build a trained embedding network for a particular observing run. The model will be saved in</path/to/model_directory>.>fromdingo_enetsimportbuild_enet>enet=build_enet(run="O1",detectors=["H1","L1"],model_dir="</path/to/model_directory>")>importtorch>input=torch.rand(10,2,3,8033)>output=enet(input)>print(output.shape)The functionbuild_enetrecognises whether a suitable model is present in the model directory, in which case it is not downloaded but instead loaded directly from disk.References[1] M. Dax, S.R. Green, J. Gair, J.H. Macke, A. Buonanno, B. Schölkops,Real-Time Gravitational Wave Science with Neural Posterior Estimation, Phys.Rev.Lett. 127 (2021) 24, 241103.[arXiv][inspirehep]
Package: dingo-gw
DingoDingo (Deep Inference for Gravitational-wave Observations)is a Python program for analyzing gravitational wave data using neural posterior
estimation. It dramatically speeds up inference of astrophysical source parameters from
data measured at gravitational-wave observatories. Dingo aims to enable the routine
use of the most advanced theoretical models in analyzing data, to make rapid predictions
for multi-messenger counterparts, and to do so in the context of sensitive detectors with
high event rates.The basic approach of Dingo is to train a neural network to represent the Bayesian
posterior conditioned on data. This enablesamortized inference: when new data are
observed, they can be plugged in and results obtained in a small amount of time. Tasks
handled by Dingo includebuilding training datasets;training normalizing flows to estimate the posterior density;performing inference on real or simulated data; andverifying and correcting model results using importance sampling.InstallationPipTo install using pip, run the following within a suitable virtual environment:pipinstalldingo-gwThis will install Dingo as well as all of its requirements, which are listed inpyproject.toml.CondaDingo is also available from theconda-forgerepository.
To install using conda, first activate a conda environment, and then runcondainstall-cconda-forgedingo-gwDevelopment installIf you would like to make changes to Dingo, or to contribute to its development, you
should install Dingo from source. To do so, first clone this repository:gitclonegit@github.com:dingo-gw/dingo.gitNext create a virtual environment for Dingo, e.g.,python3-mvenvdingo-venvsourcedingo-venv/bin/activateThis creates and activates avenvfor Dingo
calleddingo-venv. In this virtual environment, install Dingo:cddingo
pipinstall-e."[dev]"This command installs an editable version of Dingo, meaning that any changes to the Dingo
source are reflected immediately in the installation. The inclusion ofdevinstalls
extra packages needed for development (code formatting, compiling documentation, etc.)UsageFor instructions on using Dingo, please refer to thedocumentation.ReferencesDingo is based on the following series of papers:https://arxiv.org/abs/2002.07656: 5D toy modelhttps://arxiv.org/abs/2008.03312: 15D binary black hole inferencehttps://arxiv.org/abs/2106.12594: Amortized inference and group-equivariant neural posterior estimationhttps://arxiv.org/abs/2111.13139: Group-equivariant neural posterior estimationhttps://arxiv.org/abs/2210.05686: Importance samplinghttps://arxiv.org/abs/2211.08801: Noise forecastingIf you use Dingo in your work, we ask that you please cite at leasthttps://arxiv.org/abs/2106.12594.Contributors to the code are listed inAUTHORS.md. We thank Vivien Raymond
and Rory Smith for acting as LIGO-Virgo-KAGRA (LVK) review chairs. Dingo makes use of
many LVK software tools, includingBilby,bilby_pipe, andLALSimulation, as well as third
party tools such asPyTorchandnflows.ContactFor questions or comments please contactMaximilian DaxorStephen Green.
Package: dingonyms
CLI tool to extract synonyms/antonyms from online services, which formats
them into dict structures (word|alt :: definition; etc.) suitable fording.It's fairly basic, and not all result sets are structured alike.
Furthermore the extraction schemes aren't likely to last for long (web
scraping is typically a maintenance task).Only scans for singular words (most services wouldn't return results
otherwise). And might yield error messages for charset issues as well.SYNTAXdingonyms --merriamwebster "find"ParameterAliasesClass--thesaurus-t --thesEN--merriamwebster-mw --merr --webster --merwebEN--synonym-s --syn --synonym.comEN--reverso--rev  //  -fr -es -it -pt -nl -ru -jpEN/**--wordhippo-hippo --wordhipEN--mobythesaurus-mby --mobyEN--urban-u --urb --ubnLEXICON--dictcc--en-es --en-it --de-fr --en-ptDICT--openthesaurus-ot --othes --openDE--woxikon-wx --woxiDE--synonyme_de-sd --desynDE--all(-t -mw -syn -rev -ot -wx -urban)MIXED--en(-t -mw -syn -rev)MIXED--de(-ot -wx -sd)MIXED--no-antonyms-naFLAG--no-headers-nhFLAG--async--parallel --ioFLAGFlags can be abbreviated and also combined:--thes --merrwebwould query two
services at once, or--alleven all. While--enor--derun through language-
specific functions. (See the man page for more details. There is a man page.)CONFIG IN ~/.dingrc (take care to change3to available index)set searchmeth(3,name) {Synonyms}
set searchmeth(3,type) {3}
set searchmeth(3,dictfile) {}
set searchmeth(3,separator) { :: }
set searchmeth(3,language1) {Group}
set searchmeth(3,language2) {Synonyms}
set searchmeth(3,grepcmd) {dingonyms}
set searchmeth(3,grepopts) {--async --thesaurus --merriamwebster --synonyms}
set searchmeth(3,maxlength) {30}
set searchmeth(3,maxresults) {200}
set searchmeth(3,minlength) {2}
set searchmeth(3,shapedresult) {1}
set searchmeth(3,foldedresult) {0}You might want to add one entry for each search backend even.
(Unique index, title/name, and grepopts --parameter each.)SETUP (pip3 install -U dingonyms)You might have to symlink~/.local/bin/dingonymsinto~/binafter
installation. pip-package binaries are often only picked up in
terminal/interactive shells.Hijack as moduleObviously this is priamrily a CLI tool, but can be utilized per monkeypatching:import dingonyms
ls = []
dingonyms.out.alternatives = lambda *x: ls.append(x)