Saravanan666/pypi-org huggingface dataset:
Package: daniels
DanielsInside, you'll find Daniel. Daniel is Harvested Financial's open source contribution. He's the slack bot we use for all of our monitoring -- you can import him and have him talk to various channels in slack, alerting people he needs to talk with.A few potential use cases include pipeline monitoring, event alerts, and production error notifications. For small teams who don't have time to watch everything at once but also can't just wait until they notice things have broken, Daniel can be invaluable.He's written in python and can be installed via:pip install danielsYou'll also need to install a slack bot verision of Daniel. We have our own, but can't release him just yet. All you need foryourdaniel-enabled workspace is to add in a slack bot API token for a bot you've made, add the bot to the relevant channels you want to hear code updates from, and reference the slack_token in the code. You can refernce the token via environment variables (recommended), or by directly passing in token in the code (not recommneded for production). If no token is passed, Daniel searches via os for a "slack_token" exported variable and throws an error if he can't find one.A sample use of him is:importdanielsdaniel=daniels.Daniel(token='your-token-here',channel='target-channel',emoticon=" :dollar: ")msg="Hi, I'm Daniel."daniel.say(msg)# n.b. must pass string# we like passing dollars on either side of a Daniel's message to identify it quickly, you don't have tomsg_two="Here's a message with no emoticons around it."daniel.say(msg_two,enders=False)# uploading is supported toofile_path='some_path/some_file.txt'daniel.upload_file('title of file',file_path)
Package: danielutils
danielutils v=0.9.6A utils library for things that I find useful for my coding workflow.Feel free to use and / or contribute / improve my code :)THIS PACKAGE IS IN DEVELOPMENT AND SUBJECT TO CHANGE, USE AT YOUR OWN RISK!ShowcaseInthisfolder you can check out some more in depth showcase of some of the topics I have covered in this packageisoftype--"Boost your type checking game withisoftype: Effortlessly verify object types and subtypes, handle complex data structures, and tackle union types in Python!"Support for Parametrized Generics@overload--"Manage function overloads with ease: Introducing@overloadto handle specific resolutions and simplify function overloading in Python!"Support for function overloading@validate--"Safeguard your code with@validate: Protecting against type-related disasters and ensuring type safety in Python functions!"Runtime argument type validation for functionstlist--"Elevate your list safety withtlist: Empower your code with runtime type safety, seamless list operations, and enhanced control over list elements!"Likelistbut with runtime type validationInterface--"Unlock the Power of Interfaces in Python: Create Your Own Metaclass for Interface-Like Behavior and Enhance Your Object-Oriented Programming Skills!"Learningmetaclassesby implementing anInterface(andAbstract Classes) for python in python
Package: danilov0x33-vector
The Vector SDK gives you direct access to Vector’s unprecedented set of advanced sensors, AI capabilities, and robotics technologies including computer vision, intelligent mapping and navigation, and a groundbreaking collection of expressive animations.It’s powerful but easy to use, complex but not complicated, and versatile enough to be used across a wide range of domains including enterprise, research, and entertainment. Find out more athttps://developer.anki.comVector SDK documentation:https://developer.anki.com/vector/docs/Official developer forum:https://forums.anki.com/Requirements:Python 3.6.1 or later
Package: danish
danish.. image::https://codecov.io/gh/jmeyers314/danish/branch/main/graph/badge.svg?token=MW3K14XI9T:target:https://codecov.io/gh/jmeyers314/danishGeometric donut engineBased onJanish, R.,  "An algorithm for rapid measurement of aberrations in pairs of out-of-focus images", 2012, MIT undergraduate thesis.https://dspace.mit.edu/handle/1721.1/78543
Package: danitonapi
DanitonAPIA global Artificial Intelligence Network called DanitonAPI endpoint: api.daniton999.mlCurrently AvailableChatBotUsepip install danitonapifromdanitonapiimportapiapi.token=<TOKEN>ChatBotNormalcb=api.ChatBot(id,username,language)cb.getAnswer(message)cb.reset()Asynccb=api.ChatBot(id,username,language)awaitcb.getAsyncAnswer(message)cb.reset()
Package: dankapi-py
This is an API Wrapper for the API DankAPI @https://dankapi.github.io. It is designed to make the API very easy to use.It is beginner friendly, documented, asynchronous and object oriented.About the API: The API is designed to show information on the famous Discord Bot Dankmemer (https://dankmemer.lol).
The API currently shows the shop sale the bot has and the bot’s economy system’s items.
Package: dankbot
DankbotA Slack Bot that scrapes memes from subreddits and posts them to slackSteps to runClone into directorycd /opt
sudo mkdir dankbot && sudo chown <user>:<user> dankbot
git clone git@github.com:DankCity/dankbot.gitSetup INI filecd /opt/dankbot
cp dankbot/dankbot.sample.ini dankbot/dankbot.iniEdit the INI file to fill in the missing token, username, and password fields:(.venv35)➜  dankbot git:(master) ✗ cat dankbot/dankbot.sample.ini
[dankbot]
# Leave directory blank and dankbot will determine the best place to
# log to your platform
log_to_file: true
directory:
file_name: dankbot.log
backups: 5
max_bytes: 1000000

[slack]
# Follow instructions at https://my.slack.com/services/new/bot
token: <put here>
channel: #random

[reddit]
# r/dankmemes, r/funnygifs, etc
subreddits: dankmemes, funnygifs

[imgur]
# Register at https://api.imgur.com/oauth2/addclient
# Select Anonymous usage
client_id: <your client ID>
client_secret: <your client secret>

[misc]
include_nsfw: false
max_memes: 3Create and activate a virtual environmentcd /opt/dankbot
virtualenv --python=`which python3` env
source env/bin/activateInstall the python packagecd /opt/dankbot
source env/bin/activate
pip install -e .Add an entry to your crontabEdit the crontab with your favorite editorsudo vi /etc/crontabAnd add an entry like so:# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the 'crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow usernamecommand
*/5 09-17 * * 1-5 root cd /opt/dankbot && source env/bin/activate && dankbot .This will run dankbot once every 5 minutes, Monday to Friday, between 9 AM and
5 PM CST
Package: dankcli
dankcli is a CLI Image Captioning Tool or Meme Generator which automatically adds white space and text to the top of your image.Installation$pipinstalldankcliUsage$python-mdankcli"path/to/image""Meme text you want to add"[-f"final_image_name_without_extension"]The text gets automatically wrapped according to width of image but you can also have intentional \n in your text.
The image is saved in the current folder with the name as the current date and time, the name can be changed with the optional-for--filenameargument, specifying a file name without the file extension.ExampleExample 1 (showing \n functionality)$python-mdankcli"templates/yesbutno.jpg""Mom at 2am: Are you awake?\n\nMe:"turns thisto thisExample 2 (showing auto textwrap)$python-mdankcli"mymemes/helpmeme.jpg""When you make a meme generator but now you can't stop making memes"turns thisto this
Package: dankdb
DankDB - Simple DatabaseThis simple, yet useful module allows the user to create a database for small scale projects; the user can easily add values to the database while simultaneously retrieving values.Features:â€¢    create_table - Takes in a table name and multiple column names then creates a table.
â€¢    insert_row - Takes in a row of values and adds them into the table.
â€¢    delete_rows - Removes all rows from table.
â€¢    fetch_table - Retrieves all values within the table.
â€¢    export_csv - Export table into a csv file with given table name.
â€¢    read_csv - Prints out all values in table with given table name.
â€¢    close - Closes connection to database.How to installpip install dankdbHow to useExample codefromdankdbimportDatabasedb=Database()db.create_table('example','column1 TEXT','column2 TEXT','column3 TEXT')db.insert_row('value1','value2','value3')db.insert_row('value4','value5','value6')print(db.fetch_table())db.close()Feature requestIf there is a feature that you would like implemented, open an issue, and I will work on it.
Package: danker
danker - Compute PageRank on large graphs with off-the-shelf hardware.Standalone with any input graph:$ pip install danker
$ python -m danker -h
   usage: python -m danker [-h] [-r RIGHT_SORTED] [-p OUTPUT_PRECISION] [-i]
                           left_sorted damping iterations start_value

   danker - Compute PageRank on large graphs with off-the-shelf hardware.

   positional arguments:
     left_sorted           A two-column, tab-separated file sorted by the left
                           column.
     damping               PageRank damping factor(between 0 and 1).
     iterations            Number of PageRank iterations (>0).
     start_value           PageRank starting value (>0).

   optional arguments:
     -h, --help            show this help message and exit
     -r RIGHT_SORTED, --right_sorted RIGHT_SORTED
                           The same file as left_sorted but sorted by the right
                           column.
     -p OUTPUT_PRECISION, --output_precision OUTPUT_PRECISION
                           Number of places after the decimal point.
     -i, --int_only        All nodes are integers (flag)

$ wget https://raw.githubusercontent.com/athalhammer/danker/master/test/graphs/test.links
$ python3 -m danker test.links 0.85 30 1
   1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.
   Computation of PageRank on 'test.links' with danker took 0.00 seconds.
   C	3.18985350447380434
   B	3.55722134157057246
   A	0.30410528185694391
   D	0.36260066319290651
   F	0.36260066319290651
   E	0.75035528185694389
   G	0.15000000000000002
   H	0.15000000000000002
   I	0.15000000000000002
   K	0.15000000000000002
   L	0.15000000000000002As Python library for computing PageRank on large graphs:$ pip install danker
$ python
>>> import dankerMore information on this option can be found athttps://danker.rtfd.org.More information on the project:Compute PageRank on the Wikipedia graph
Package: danksearch
danksearchdanksearch is an async library to search youtube without using any API's.InstallationUse the package managerpipto install danksearch.pipinstalldanksearchUsageGeneral usage looks likeimportdanksearch,asyncioasyncdefsearchvideo():video=danksearch.Video()awaitvideo.search("spooky scary skeletons")print(video.url)asyncio.run(searchvideo())For grabbing a list of video urls(max 40)importdanksearch,asyncioasyncdefgetvideos():videolist=danksearch.VideoList()awaitvideolist.search("yes")print(videolist.videos)asyncio.run(getvideos())BetterVideo(Beta)BetterVideo is a new feature in danksearch that aims to be faster and extinguishes the need of retrying.importdanksearch,asyncioasyncdefgetvideos():video=danksearch.BetterVideo()awaitvideo.search("yes")print(video.url)#also has video.links for a full list of resultsasyncio.run(getvideos())ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: danling
DanLingIntroductionDanLing (丹灵) is a high-level library to help with running neural networks flexibly and transparently.DanLing is meant to be a scaffold for experienced researchers and engineers who know how to define a training loop, but are bored of writing the same boilerplate code, such as DDP, logging, checkpointing, etc., over and over again.Therefore, DanLing does not feature complex Runner designs with many pre-defined methods and complicated hooks.
Instead, the Runner of DanLing just initialise the essential parts for you, and you can do whatever you want, however you want.Although many attributes and properties are pre-defined and are expected to be used in DanLing, you have full control over your code.DanLing also provides some utilities, such as [NestedTensor][danling.NestedTensor], [LRScheduler][danling.optim.LRScheduler], [catch][danling.utils.catch], etc.InstallationInstall the most recent stable version on pypi:pipinstalldanlingInstall the latest version from source:pipinstallgit+https://github.com/ZhiyuanChen/DanLingIt works the way it should have worked.LicenseDanLing is multi-licensed under the following licenses:The UnlicenseGNU Affero General Public License v3.0 or laterGNU General Public License v2.0 or laterBSD 4-Clause "Original" or "Old" LicenseMIT LicenseApache License 2.0You can choose any (one or more) of these licenses if you use this work.SPDX-License-Identifier: Unlicense OR AGPL-3.0-or-later OR GPL-2.0-or-later OR BSD-4-Clause OR MIT OR Apache-2.0
Package: danmakuC
danmakuCFaster conversion for larger Danmaku to Ass format. Core conversion part is written in C++ while with
user-friendly Python api and cli.Currently, support types:bilibiliprotobufniconicoprotobuf since 0.3.1Why danmakuC?.ass format can be recognized by your local video player,
whileDanmaku2ASSandbiliassprovides
a great tool to convert danmaku to ass format, the conversion of large danmaku isincredibly slowsince it's a heavy
CPU bound task for Python🥲. danmakuC refactor those two repos and provide a much faster C++ implementation to speed up
conversion. Let's see how fast it is:test_dm.bin (218 comments)test_dm_large.bin (59,003 comments)Danmaku2ASS/biliass0.0105 s47.0650 sdanmakuC0.0009 s0.2077 sResults are obtained in M1 arm64 chip mac with python3.10 danmakuC v0.1a0, danmaku file is downloaded from bilibili bybilix.As you can see, over 100 times faster in large conversion. For video with more viewer and comments
(like movie and tv play), a fast tool like danmakuC is just what you need✊.InstallpipinstalldanmakuCUsageIn python, you can use danmakuC like:fromdanmakuC.bilibiliimportproto2asswithopen("test_dm_large.bin","rb")asf:ass_text=proto2ass(f.read(),1920,1080)If you prefer to use cli, you can use danmakuC like:danmakuCsrc.bin-otgt.assfor more feature, you can check-hdanmakuC-h

usage:danmakuC[-h][-oOUTPUT][-sSIZE][-rbRESERVE_BLANK][-fnFONT][-fsFONTSIZE][-aALPHA][-dmDURATION_MARQUEE][-dsDURATION_STILL][-flFILTER][-r][-v]file

danmakuCcliversion0.2a0

positionalarguments:fileCommentfiletobeprocessed

options:-h,--helpshowthishelpmessageandexit-oOUTPUT,--outputOUTPUTOutputfile-sSIZE,--sizeSIZEStagesizeinpixels[default:1920x1080]-rbRESERVE_BLANK,--reserve-blankRESERVE_BLANKReserveblankonthebottomofthestage[default:0]-fnFONT,--fontFONTSpecifyfontface[default:sans-serif]-fsFONTSIZE,--fontsizeFONTSIZEDefaultfontsize[default:25.0]-aALPHA,--alphaALPHAAlpha[default:1.0]-dmDURATION_MARQUEE,--duration-marqueeDURATION_MARQUEEDurationofscrollingcommentdisplay[default:5.0]-dsDURATION_STILL,--duration-stillDURATION_STILLDurationofstillcommentdisplay[default:5.0]-flFILTER,--filterFILTERRegularexpressiontofiltercomments-r,--reduceReducetheamountofcommentsifstageisfull-v,--versionshowprogram'sversionnumberandexit
Package: danmaku-tools
Bilibili Live Danmaku Tools 哔哩哔哩直播弹幕处理工具本工具可用于处理 B站录播姬 产生的弹幕 XML。具体功能有：分切 弹幕 XML合并 弹幕 XML分析 弹幕 XML 中的弹幕数量以及礼物价格分析 弹幕 XML 中的高能点（主要用于生成录播）安装pip3installdanmaku_tools典型使用例子合并根据 flv 文件的长度合并 XMLpython3-mdanmaku_tools.merge_danmakuvideo_1.xmlvideo_2.xmlvideo_3.xml--video_time".flv"--outputvideo_combined.xml经常和类似这样的视频合并命令同时使用echo"file video_1.flv\n file video_2.flv">video_input.txt
ffmpeg-fconcat-safe0-ivideo_input.txt-ccopyvideo_combined.flv根据 XML 开始时间合并 XMLpython3-mdanmaku_tools.merge_danmakuvideo_1.xmlvideo_2.xmlvideo_3.xml--outputvideo_combined.xml剪切从 123.45 秒开始剪切 XMLpython3-mdanmaku_tools.cut_danmaku--start_time123.45video_input.xml--outputvideo_output.xml从 123.45 秒到 567.89 开始剪切 XMLpython3-mdanmaku_tools.cut_danmaku--start_time123.45--end_time567.89video_input.xml--outputvideo_output.xml经常和类似这样的视频剪切命令同时使用ffmpeg-ss123.45-to567.89-ivideo_input.flvvideo_output.flv分析流水python3-mdanmaku_tools.analyze_danmakuvideo.xml输出如下：弹幕：46541条
醒目留言：15294.0元
礼物：7366.440000000309元
大航海：10116.0元
大航海类别：{'舰长': 41, '提督': 1}
总流水 32776.44000000031元分析高能python3-mdanmaku_tools.danmaku_energy_mapvideo.xml`# 输入 XML 文件` \--graphvideo.he.png`# 高能进度条 png` \--he_maphe_list.txt`# 高能列表` \--sc_listsc_list.txt`# 醒目留言列表` \--sc_srtsc.srt`# 醒目留言字幕` \--he_timehe_time.txt`# 最高能时间点` \--he_rangehe_range.txt`# 最高能时间段`
Package: danmu
Chinese Versiondanmu is Chinese translation of chat message.It is an open source chat message api for live platforms like douyu, panda, huya, zhanqi.Using this, even without programming basis, you will have an easy access to chat messages.With less than 30 lines of code, you may develop further with chat messages.Douyu, panda, Zhanqi, Quanmin, bilibili are all supported.It supports multi versions of python and platforms, making it available for all developers and amateurs.Once started, it will auto connect when anchor showed up and re-connect when anchor connect again.With good optimization and abstract structure, almost all chat messages will be catched and the whole program is easy to be modified.DocumentsYou may find documenthere.InstallationYou may use this script to install danmu:pipinstalldanmuSimple usesThe following is a simple demo of how to use danmu.importtime,sysfromdanmuimportDanMuClientdefpp(msg):print(msg.encode(sys.stdin.encoding,'ignore').decode(sys.stdin.encoding))dmc=DanMuClient('http://www.douyu.com/lslalala')ifnotdmc.isValid():print('Url not valid')@dmc.danmudefdanmu_fn(msg):pp('[%s]%s'%(msg['NickName'],msg['Content']))@dmc.giftdefgift_fn(msg):pp('[%s] sent a gift!'%msg['NickName'])@dmc.otherdefother_fn(msg):pp('Other message received')dmc.start(blockThread=True)Advanced usesSet default chat message dealerMessages are split into three types to be registered: danmu, gift, other.Which means: ordinary chat messages, gift messages, other messages.fromdanmuimportDanMuClientdmc=DanMuClient('http://www.douyu.com/lslalala')@dmc.defaultdefdefault_fn(msg):pp('[%s]%s'%(msg['NickName'],msg['Content']))Cancel message dealer registeredUsing the following codes, you can cancel a message dealer registered.fromdanmuimportDanMuClientdmc=DanMuClient('http://www.douyu.com/lslalala')dmc.default(None)dmc.gift(None)FAQQ: What’s the message type of chat messages?A: A dictionary with at least three keys, NickName, Content, MsgType.CommentsIf you have any problem or suggestion, feel free to contact me through thisIssue.Or through gitter:
Package: danmu-abc
danmu-abc获取哔哩哔哩直播、斗鱼直播、虎牙直播以及个人项目 YjMonitor自定义的弹幕推送，详细可见examples部分。可选用 websocket 协议与 tcp 协议，其中 websocket 协议使用了aiohttp的 api。接口：run_forever是程序核心，使用一个while循环实现掉线的自动重连（掉线后，close掉现在的连接，重开一个新的）。每次的连接分三步，建立并OAUTH(即 _one_hello)、心跳和接受部分启动并永久执行直到异常或主动关闭、异常或主动关闭后的清理工作。清理完后，重新开启新的连接。close_and_clean用于永久地关闭连接。pause用于暂停连接，暂停后，连接是断开的。直到resume唤醒。版权问题：本代码 fork 自blivedm，由于与原作者一些观点不同，并未走向一致，后由于一些原因，在于原作者协商后切断 fork 关系。LICENSE 也进行相应变动。
Package: danoliterate
Are LLMs Danoliterate?A benchmark tool for Generative Large Language Models in Danish.Note: This repository is currently work-in-progress while the master's thesis is finished.
Implementations are subject to change.InstallationThe package has been developed and used with Python 3.11.
To install the package in a base version, enabling model execution, installpip install danoliterateTo install it with the entire suite of dependencies that were used in thesis, runmake installUsagepython -m danoliterate do=evaluate
Package: danrerlib
Danio rerio Library, danRerLibDescriptiondanRerLib, short for Danio rerio library, is a comprehensive toolkit designed in Python specifically for zebrafish researchers, focusing on transcriptomics.DocumentationThe documentation for the library is currently being hosted onSan Diego State University's Computational Toxicology Laboratory website. The full GitHub repository is locatedhere.InstallationThe package requires Python>3.9 and < 3.13; we recommend Python 3.9. Please see the documentationinstallation guidefor more information.Via pip:pip install danrerlibVia conda:conda install sdsu_comptox::danrerlibExamplesCheck out our in depthtutorialson the documentation page for step-by-step instructions on how to use danRerLib to its full potential.You can also look at our results directory to replicate a stand-alone workflow.Project HistoryThis project repository was started in July 2023 byAshley Valentina Schwartzwith the first version ofdanRerLibbeing developed in September 2023. The project is maintained byAshley Valentina Schwartzand theSDSU Computational Toxicology Laboratory. The release of danRerLib occurred in early 2024 and is an evolving repository.Folder Descriptionsresults/This folder contains a reproducible workflow for the package that replicates the published findings in the associated publication.src/danrerlib/This folder contains the source code and database for the package.tests/This folder contains tests, developed with pytest, to test the functionality of the package to maintain a stable repository.sphinx/This folder contains the workable documentation for the repository including tutorials and the API reference.This is build usingspinx documentation builder.docs/This folder contains the documentation that is present on the website.This is a duplicate ofsphinx/_build/html/.File Map (partial)danRerLib/
│   README.md
|   pyproject.toml
|   poetry.tock
|   Makefile
│   LICENSE
|   CONTRIBUTING.md
|   CONDUCT.md
|   CHANGELOG.md
└───src/
│   └───danRerLib
│       │   __init__.py
│       │   mapping.py
│       │   KEGG.py
│       │   GO.py
│       │   enrichment.py
│       │   enrichplots.py
│       │   utils.py
│       │   settings.py
|       └───database/
└───tests/
└───sphinx/
└───docs/
Package: danse.ins.dsm
Data stream model helps developers to build "chains" of connectedcomputing nodes and run them.A computing node has input/ouput sockets, and the "dsm runner"is responsible to carry "data streams" through the "chains"and feed "data streams" to computing nodes.Usage:Please read the main function in Composite.py for an example.Notes:1. Developers are responsible to* build computing nodes (with i/o sockets)2  Developers or Users are responsible to* specify connections of computing nodesHints for developers:1. Read tests in source codes to understand how to use dsm.Start with Composite.py and Runner.py is a good ideaLimitations:1. No loops are allowed.2. Currently only a trivial implementation of "runner" exists. So data streamsare limited in one physical machine.
Package: danski-utils
danski-utilsA collection of utils that I use oftenFree software: MIT licenseDocumentation:https://danski-utils.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-03-23)First release on PyPI.
Package: dans-netbox-plugins
Here I am creating two plugins:
1) Animal Sounds.
2) Patch Tracker.Animal Sounds is the NetBox plugin from the documentation.Patch Tracker is Dan’s NetBox plugin for tracking pre-patches inside Pilot’s instance of NetBox.Documentation of this process are [[https://roamresearch.com/#/app/dans_life/page/0F1dqbyqT][beingwritten here, in Roam.]]