Saravanan666/pypi-org huggingface dataset:
Package: disease-ontology
Toolkits for DiseaseOntologyInstallationpython3-mpipinstalldisease_ontologySub Commands1buildbuild/update the database# examples# build from websitedisease_ontologybuild# build from local filedisease_ontologybuild-odoid.obo2versionshow the version of database# examplesdisease_ontologyversion3queryget the DOID from database# examples# default querydisease_ontologyquery"heart disease"# query with limit and score_cutoff paramsdisease_ontologyquery"heart"-l10-s90Disease Ontologydownloadsreleasesdoid.obodoid.owl
Package: diself
diselfThis is a selfbot module created by lululepu.DescriptionThe selfbot module provides functionality for interacting with the Discord API using a selfbot.InstallationInstall the selfbot module usingpip:pipinstalldiselfSetupObtain your Discord user token. You can follow the steps below to get your token:Open Discord in your web browser.PressCtrl + Shift + Ito open the Developer Tools.Go to the "Network" tab.Send a message in any channel.Look for a network request that starts withmessagesand contains your user ID. Click on it.In the request headers, find theauthorizationfield. Your user token is the value afterBearer.Create a Python script and import theselfbot_module:importdiselfInstantiate theClientclass with your Discord user token:client=diself.Client("YOUR_USER_TOKEN")Implement your desired functionality using the provided methods and events.Usageimportdiself@diself.eventdefon_message(msg):print(msg)# print the raw message jsonprint(msg.content)# print the message contentprint(msg.channel)# print the message channelprint(msg.guild)# print the message guildchid=msg.channel# Get the channelmessage=chid.send("hey")# Send the message "key" to the channelmessage.delete()# Delete the message@diself.eventdefon_message_delete(msg):print(msg)# print the raw message json (only the id/channel id)print(msg.channel)# print the message channel@diself.eventdefon_ready():print(f"Connected to '{client.username}#{client.discriminator}' ({client.id})")# Print this in the cmd when the client is readyclient=diself.Client("YOUR_USER_TOKEN")LiscenseMIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Package: diseloryaPdf2md
pdf2mdConvert PDF to Markdown and TXT, especially for obsidian.Get content:Convert text pdf.Convert picture pdf by ocr.Higher OCR recognition accuracy.Save pictures and insert to markdown by obsidian way.Fix broken sentences. (most but not 100%)Need to optimize based on more samples.AI assisted recognition of sentence breaks.Add headings:Convert pdf bookmarks to headings.Use page number as headings for picture pdf.Fetch first sentence for page number headings.Compare the headers, catalog, and page numbers to identify the levels of headings.Filename handling:Fix unsupported characters in filename.Replace characters conflicting with obsidian in filename.Character encoding problem handling:Normalise the same character but different unicode, which can't read by TTS.Batch convert.Catalog: Replace catalog to obsidian way. (little significance)
Package: disentangle
Quickly create disentanglement pipelines for machine learning research.This has prebuilt and functionality for tensorflow function wrappers, to make changing the architecture easy. Though it is not too hard to use keras, viewing the whole architecture on one page and making comparisons between different archtectures might be a bit of a pain and prone to errors.Though this library can be used to wrap any tensorflow (or custom) keras module, making it useful for a variety of different fields of deep learning research. This library is called disentangle as my main focus of research is on disentanglement and much of the functionality (such as visualization tools, prebuilt architectures, etc) are biased towards that.There are a few parts of this which use functionality from disentanglement_lib, so please take a look at their work. This code is contained in other_library_tools.Other than tensorflow wrappers, this library contains useful functionality for datasets (custom, if needed), visualizations, and general useful tools such as timers and path managers.Thanks to ionelmc’s cookiecutter-pylibrary for the generation of a pypi library with many good practices. So I could easily convert this library to be deployable to pypi.Free software: MIT licenseInstallationpip install disentangleYou can also install the in-development version with:pip install https://github.com/yukunchen113/disentangle/archive/master.zipDocumentationhttps://disentangle.readthedocs.io/DevelopmentTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.0.0 (2020-08-16)First release on PyPI.
Package: disentangler
Simple dependency tree builder, handles forward and reverse dependencies,
returning an ordered tree with its nodes ordered from root towards leafs.Example:>>> from disentangler import Disentangler
>>> inst = Disentangler.new()
>>> inst.add('a', {})
>>> inst.add('b', {'depends_on': ['d', 'c']})
>>> inst.add('c', {})
>>> inst.add('d', {'depends_on': ['a']})
>>> ordered = inst.solve()
>>> print(ordered)
OrderedDict([('a', {}),
             ('c', {}),
             ('d', {'depends_on': ['a']}),
             ('b', {'depends_on': ['d', 'c']})])
Package: disentpy
disentpyPython client for Disent's API framework.InstallationInstall usingpippipinstalldisentpyUsageimportdisent# get AAPL vol surface (list of dicts)model="DEMO_EQD_VOLS"ticker='AAPL'model_args={'ticker':ticker}df=disent.hub(model,model_args)print(df)# get AAPL vol surface (pivoted on K)model_args={'ticker':ticker,'pivot':'T_DATE,K,IV'}df=disent.hub(model,model_args)print(df)# lambdify disent call for any tickerf_vols=lambdai:disent.hub(model,{'ticker':i})print(f_vols('SPX'))print(f_vols('RTY'))DocumentationLatest documentation is hosted onread the docs.RequirementsUsing disentpy requires the following packages:pandas>=1.0requests>=2.19.0Install latest development versionpipinstallgit+http://github.com/disentcorp/disent_pip.gitorgitclonepipinstallhttps://github.com/disentcorp/disent_pip.gitcddisentpy
pythonsetup.pyinstall
Package: disfluency-constituency-parser
Joint Disfluency Detection and Constituency ParsingA joint disfluency detection and constituency parsing model for transcribed speech based onNeural Constituency Parsing of Speech Transcriptsfrom NAACL 2019, with additional changes (e.g. self-training and ensembling) as described inImproving Disfluency Detection by Self-Training a Self-Attentive Modelfrom ACL 2020.This repository updated the original repository to focus on inferencing using the pretrainedswbd_fisher_bert_Edev.0.9078.ptmodel.Installation$pipinstalldisfluency-constituency-parserUsage$wgethttps://github.com/pariajm/joint-disfluency-detector-and-parser/releases/download/naacl2019/swbd_fisher_bert_Edev.0.9078.pt
$wgethttps://s3.amazonaws.com/models.huggingface.co/bert/bert-base-uncased-vocab.txt
$wgethttps://s3.amazonaws.com/models.huggingface.co/bert/bert-base-uncased.tar.gzfromdc_parserimportDC_Modelmodel=DC_Model(model_path="/path/to/swbd_fisher_bert_Edev.0.9078.pt",bert_model_path="/path/to/bert-base-uncased.tar.gz",bert_vocab_path="/path/to/bert-base-uncased-vocab.txt",)model.parse(["Today is a very good day!"])CitationIf you use this model, please cite the following papers:@inproceedings{jamshid-lou-2019-neural,
    title = "Neural Constituency Parsing of Speech Transcripts",
    author = "Jamshid Lou, Paria and Wang, Yufei and Johnson, Mark",
    booktitle = "Proceedings of the 2019 Conference of the North {A}merican Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)",
    month = "June",
    year = "2019",
    address = "Minneapolis, Minnesota",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/N19-1282",
    doi = "10.18653/v1/N19-1282",
    pages = "2756--2765"
}@inproceedings{jamshid-lou-2020-improving,
    title = "Improving Disfluency Detection by Self-Training a Self-Attentive Model",
    author = "Jamshid Lou, Paria and Johnson, Mark",
    booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics",
    month = "jul",
    year = "2020",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/2020.acl-main.346",
    pages = "3754--3763"
}
Package: disfork
A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.Key FeaturesModern Pythonic API usingasyncandawait.Proper rate limit handling.Optimised in both speed and memory.InstallingPython 3.8 or higher is requiredTo install the library without full voice support, you can just run the following command:# Linux/macOSpython3-mpipinstall-Udisfork# Windowspy-3-mpipinstall-UdisforkOtherwise to get voice support you should run the following command:# Linux/macOSpython3-mpipinstall-U"disfork[voice]"# Windowspy-3-mpipinstall-Udisfork[voice]To install the development version, do the following:$gitclonehttps://github.com/disfork/disfork$cddisfork$python3-mpipinstall-U.[voice]Optional PackagesPyNaCl(for voice support)Please note that on Linux installing voice you must install the following packages via your favourite package manager (e.g.apt,dnf, etc) before running the above commands:libffi-dev (orlibffi-develon some systems)python-dev (e.g.python3.6-devfor Python 3.6)Quick ExampleimportdisforkclassMyClient(disfork.Client):asyncdefon_ready(self):print('Logged on as',self.user)asyncdefon_message(self,message):# don't respond to ourselvesifmessage.author==self.user:returnifmessage.content=='ping':awaitmessage.channel.send('pong')client=MyClient()client.run('token')Bot Exampleimportdiscordfromdisfork.extimportcommandsbot=commands.Bot(command_prefix='>')@bot.command()asyncdefping(ctx):awaitctx.send('pong')bot.run('token')You can find more examples in the examples directory.LinksDocumentationOfficial Discord ServerDiscord API
Package: disformers
disformersHuggingface transformers for discordbase sourcebutyr/huggingface-transformer-chatbotsinstallpip install -U disformersexampleseeexamplefolderuse clientimportdiscordfromdisformers.DisFormersimportDisFormersBotclient=discord.Client()disformerbot=DisFormersBot(client,prefix="!")@client.eventasyncdefon_ready():print("Bot is ready.")@client.eventasyncdefon_message(message):awaitdisformerbot.client_message(message=message)if__name__=="__main__":client.run('token')use commands.Botimportdiscordfromdiscord.extimportcommandsfromdisformers.DisFormersimportDisFormersBotclassMyBot(commands.Bot):def__init__(self,*args,**kwargs):super().__init__(*args,**kwargs)asyncdefon_ready(self):print("Bot is ready.")my_bot=MyBot(command_prefix="!",intents=discord.Intents.all())DisFormersBot(my_bot,prefix="!")#DisFormersBot(client,prefix="!",languague="en") default languague is English# you can choose English(en) or Korean(ko) languague optionif__name__=="__main__":my_bot.run("token")contactDiscordEmail
Package: disgames
DisgamesA python module made to make creating games easier and adds a bunch of game commands to your discord python botNote: The logo has been designed by using resources fromflaticon.comContentsDisgamesContentsInstallationUsageExtraInstallationTo install it frompypi, runpipinstalldisgamesTo install the development version, you needgitinstalled. After installing it, runpipinstallgit+https://github.com/andrewthederp/DisgamesUsageYou can either load it as an extension by doingfromdiscord.extimportcommandsbot=commands.Bot("YOUR_PREFIX_HERE")bot.load_extension("disgames")or call theregister_commandsfunction manually by doingfromdisgamesimportregister_commandsfromdiscord.extimportcommandsbot=commands.Bot("YOUR_PREFIX_HERE")register_commands(bot)More examples on customizing the commands added to your bot can be seen inexamples/And thats it! now your bot has the games implemented indisgames/mixins/ExtraNote that this works with the now discontinued modulediscord.pyand we
will make it compatible with other modules as soon as possible
Package: dish
A new Unix shell implemented in PythonDish is a new Unix shell implemented in Python with Flask-like configuration and extensibility. It is currently in alpha stage of development. It works by having a Python script called "dish" somewhere inPATH. This script looks a bit like a single-file Flask application. Here is an example:#!/usr/bin/env python3fromdishimportDishdish=Dish()# ansicolor color to be used in PS1 promptfromdish.extimportansicolordish.register_extension(ansicolor)dish.config['PS1']='<color fg="pink">$</color> 'if__name__=='__main__':dish.run()InstallationCurrently, it's not possible to install with Pip yet. To install the master branch:$gitclonehttps://github.com/dullbananas/dish.git$cddish$python3setup.pyinstall--userProject LinksDocumentationGitHub Repository
Package: dishook
DishookDishookit's a library who lets you control Discord Webhooks via HTTP.Supports plain text and embeds, Parameters and JSON gives you more control than other libraries.Dishook it's one of the lasts Discord webhook control library that is mantained today.How to install# PIP + GIT:pipinstallgit+https://github.com/ZSendokame/Dishook# PIP:pipinstalldishookHow to useAfter download, here is a brief tutorial.importdishookwebhook=dishook.Webhook(WebhookURL)# Create a Webhook() object, this class do all the work.webhook.embed(description='This is a description',color=10000,image={'url':'Image URL'})webhook.add_field(name='Webhook field',value='Webhook field description')webhook.send()# Here, you can add the parameters you wan't!. First check that they are valid.# You also have some values!webhook.json# In case you have any error, you can check the generated JSON that the library sent.webhook.response# More descriptive, if there's any error. Do a try-except and check discord's response.webhook.status# Here is status code, if you search for it. Probably you will get information
Package: disid
DisidAn Integer ID Disguiser to make your values look more professional.Transform plain incrementing ids:https://example.com/blogpost/1
https://example.com/blogpost/2
https://example.com/blogpost/3
https://example.com/blogpost/4Into random looking values befitting of a popular website:https://example.com/blogpost/WxYRW
https://example.com/blogpost/2zfow
https://example.com/blogpost/SyyUZ
https://example.com/blogpost/EIrPpThe process is reversable and does not need access to a database. A optional static key file can be distributed among all of the processes that need to convert between a Disid id and a numerical value.ExamplefromtypingimportListimportosimportkeytoolsimportdisiddefload_key(file:str)->List[str]:ifos.path.exists(file):withopen(file,'rb')asf:key=f.read()else:withopen(file,'wb')asf:key=keytools.generate_key(5)f.write(key)returnkeytools.convert_key_to_character_lists(key)defmain():character_list=load_key("my_keyfile.key")print(disid.uint_to_id_v3(1,character_list))print(disid.uint_to_id_v3(2,character_list))print(disid.uint_to_id_v3(3,character_list))print(disid.uint_to_id_v3(4,character_list))SecurityThis should not be considered cryptographically secure. Do not use Disid to expose values to a user that should otherwise not be exposed. Only use Disid as a cosmetic layer on top of your already public values.
Package: disimpy
Disimpy is a Python package for generating simulated diffusion-weighted MR
signals that can be useful in the development and validation of data
acquisition and analysis methods. The data is generated by Monte Carlo random
walk simulations that run massively parallel on Nvidia CUDA-capable GPUs. If
you use Disimpy in work that leads to a scientific publication, please cite[1], where the details about signal generation can also be found.Requirements and installationFollow theinstallation instructions.Usage exampleRead thetutorialto learn how to use Disimpy.ValidationDisimpy’s functionality has been validated by comparing its results to
analytical solutions and to results from other simulators (e.g.,CaminoandMISST), and by automated
testing (disimpy.tests). Examples of simulations used for validation
are providedhere. However, Disimpy
is research software and some bugs undoubtedly remain. If you find any of them
or encounter unexpected behaviour, please open anissue on GitHub.ContributeIf you want to contribute to the development of Disimpy, start by reading thecontributing guidelines.SupportIf you have questions or need help, open anissue on Github.References[1]Kerkelä et al., (2020). Disimpy: A massively parallel Monte Carlo
simulator for generating diffusion-weighted MRI data in Python. Journal
of Open Source Software, 5(52), 2527.https://doi.org/10.21105/joss.02527
Package: dis-inference
DIS-inferenceInference implementation of Dichotomous Image SegmentationHighly Accurate Dichotomous Image Segmentation (ECCV 2022)Xuebin Qin,Hang Dai,Xiaobin Hu,Deng-Ping Fan*,Ling Shao,Luc Van Gool.Project Page,Arxiv,**中文
**.OriginDISTable of ContentsInstallationUsageLicenseReferenceInstallationpip install dis-inferenceUsageCLIcommand:dis-inferencearguments:--silent(optional) : Whether to print verbose. Source image> dis-inference Lenna.pngOutput saved as `Lenna_dis.png`> dis-inference --silent Lenna.pngPythonfromdis_inferenceimportinference# 1. Inference with pathoutput=inference('Lenna.png')cv2.imwrite('Lenna_dis.png',output)# 2. Inference cv2 imageimage=cv2.imread('Lenna.png')output=inference(image)cv2.imwrite('Lenna_dis.png',output)# 3. Inference cv2 image with save parameterimage=cv2.imread('Lenna.png')output=inference(image,save=True,output='Lenna_dis.png')# 3. With save parameterimage=inference('Lenna.png',save=True)Licensedis-inferenceis distributed under the terms of theAGPL-3.0-onlylicense.Referencehttps://github.com/xuebinqin/DISCitation@InProceedings{qin2022,
      author={Xuebin Qin and Hang Dai and Xiaobin Hu and Deng-Ping Fan and Ling Shao and Luc Van Gool},
      title={Highly Accurate Dichotomous Image Segmentation},
      booktitle={ECCV},
      year={2022}
}
Package: disjoint-set
disjoint-setDisjointSet(a.k.a. union–find data structure or merge–find set) implementation for Python.PrerequisitesThe only requirement is having Python 3.8+ installed, you can verify this by running:$python--version
Python3.8.16Installationpip install disjoint-setYou can verify you're running the latest package version by running:>>>importdisjoint_set>>>disjoint_set.__version__'0.7.4'Usage>>>fromdisjoint_setimportDisjointSet>>>ds=DisjointSet()>>>ds.find(1)1>>>ds.union(1,2)>>>ds.find(1)2>>>ds.find(2)2>>>ds.connected(1,2)True>>>ds.connected(1,3)False>>>"a"indsFalse>>>ds.find("a")'a'>>>"a"indsTrue>>>list(ds)[(1,2),(2,2),(3,3),('a','a')]>>>list(ds.itersets())[{1,2},{3},{'a'}]ContributingFeel free to open any issues on github.AuthorsMaciej RapaczLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: disjoint-union
Disjoint UnionImplementation of the union find algorithm. This library will work with all hashable objects.InstallationPyPIpython3-mpipinstalldisjoint_unionUsageDisjointUnionis a subclass oflistand can be instantiated by passing it an iterable.You can use the|and+operators on aDisjointUnionto create a newDisjointUnion, or you can mutate the original union using the|=and+=assignment operators, or theunion(x, y)andunions(*iterable)methods.In[1]:fromdisjoint_unionimportDisjointUnionIn[2]:d=DisjointUnion(range(5))In[3]:dOut[3]:[{0,1,2,3,4}]In[4]:d|range(6,10)Out[4]:[{0,1,2,3,4},{6,7,8,9}]In[5]:d|=range(6,10)In[6]:dOut[6]:[{0,1,2,3,4},{6,7,8,9}]In[7]:d.union(2,5)Out[7]:[{0,1,2,3,4,5},{6,7,8,9}]In[8]:d|=(5,6)In[9]:dOut[9]:[{0,1,2,3,4,5,6,7,8,9}]In[10]:d|=range(10,15)In[11]:dOut[11]:[{0,1,2,3,4,5,6,7,8,9},{10,11,12,13,14}]In[12]:d|(9,10,15)Out[12]:[{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}]
Package: disk
DiskDisk is a Python library for interacting with the file system in an object oriented manner.
I know you can use os and os.path to do all of these but I find their usage hard to remember
and true to object oriented principles.InstallationYou can use pip to install Disk:pipinstalldiskUsageAll files and directories (folders) are consideredPathobjects.
Any path except the root, has a parent: the directory it is in.
Directories have children, some of them are files and some are subdirectories.PathThePathobject points to an existing or non-existing file or directory.fromdiskimportPathpath=Path('C:\\')get_current_directoryUsually we want to start in the current working directory:path=Path.get_current_directory()list,dir,lsAll of the above methods do the same thing;lsis for linux people,diris for windows people, andlistis for literal people.print(path.list())directoriesTo get the sub-directories of a directory use thedirectoriesattribute which returns a list ofPaths:subdirectories=path.directoriesfilesTo get the files inside a directory use thefilesattribute which returns a list ofPaths:files=path.filesparent_directoryThe parent directory is the directory aPath(either file or directory) is inside of.parent_directory=path.parent_directorymake_directoryTo create a new directoryinsideaPaththat is also a directory, usemake_directorywith the name of the new directory as thenameargument:path.make_directory(name='new_directory')You can also create a directory at the location of thePathobject by letting thenameargument take its default value ofNone:path.make_directory()make_parent_directorySometimes you need to create a new file at aPaththat doesn't already exist,i.e.the directory
of the file location doesn't exist. This is whenmake_parent_directorybecomes handy:path.make_parent_directory(ignore_if_exists=True)The default value ofignore_if_existsisTrue.deleteThedeletefunction moves a file or directory to the trash. If thenameargument is provided
the file or directory inside thePathwith that name will be deleted:path.delete(name='new_directory')If thenameargument is not provided the file or directory thePathpoints to will be deleted:path.delete()saveTo save a Python object as aPicklefile using thepickleordilllibrary you can just use thesavefunction of thePathwhich saves the object right at the location ofPath.my_list=[1,2,3]Path('my_list.pickle').save(my_list,method='pickle')Path('my_list.dill').save(my_list,method='dill')loadTo load an object from aPicklefile located at aPathyou can run theloadfunction of thePath.list_from_pickle=Path('my_list.pickle').load(method='pickle')list_from_dill=Path('my_list.dill').load(method='dill')