Saravanan666/pypi-org huggingface dataset:
Package: discretisedfield
discretisedfieldMarijan Beg1,2,Martin Lang2,Samuel Holt2,3,Swapneel Amit Pathak2,4,Ryan A. Pepper5, andHans Fangohr2,4,61Department of Earth Science and Engineering, Imperial College London, London SW7 2AZ, UK2Faculty of Engineering and Physical Sciences, University of Southampton, Southampton SO17 1BJ, UK3Department of Physics, University of Warwick, Coventry CV4 7AL, UK4Max Planck Institute for the Structure and Dynamics of Matter, Luruper Chaussee 149, 22761 Hamburg, Germany5Research Software Group, University of Birmingham, Birmingham B15 2TT, UK6Center for Free-Electron Laser Science, Luruper Chaussee 149, 22761 Hamburg, GermanyDescriptionBadgeTestsLintingReleasesCoverageDocumentationYouTubeBinderPlatformsDownloadsLicenseDOIAboutdiscretisedfieldis a Python package, integrated with Jupyter, providing:definition of finite-difference regions, meshes, lines, and fields,analysis of finite-difference fields,visualisation usingmatplotlibandk3d, andmanipulation of different file types (OVF, VTK, and HDF5).It is available on Windows, MacOS, and Linux. It requires Python 3.8+.DocumentationAPIs and tutorials are available in the documentation. To access the documentation, use the badge in the table above.Installation, testing, and upgradeWe recommend installation usingcondapackage manager. Instructions can be found in thedocumentation.BinderThis package can be used in the cloud via Binder. To access Binder, use the badge in the table above.YouTubeYouTube video tutorials are available on theUbermag channel.SupportIf you require support, have questions, want to report a bug, or want to suggest an improvement, please raise an issue inubermag/helprepository.ContributionsAll contributions are welcome, however small they are. If you would like to contribute, please fork the repository and create a pull request. If you are not sure how to contribute, please contact us by raising an issue inubermag/helprepository, and we are going to help you get started and assist you on the way.Contributors:Thomas KluyverSergii MamedovNatalie DowningMin RKRebecca CareyLicenseLicensed under the BSD 3-Clause "New" or "Revised" License. For details, please refer to theLICENSEfile.How to citeM. Beg, M. Lang, and H. Fangohr. Ubermag: Towards more effective micromagnetic workflows.IEEE Transactions on Magnetics58, 7300205(2022).M. Beg, R. A. Pepper, and H. Fangohr. User interfaces for computational science: A domain specific language for OOMMF embedded in Python.AIP Advances7, 56025(2017).Marijan Beg, Martin Lang, Samuel Holt, Swapneel Amit Pathak, Ryan A. Pepper, and Hans Fangohr. discretisedfield: Python package for the analysis and visualisation of finite-difference fields. DOI:10.5281/zenodo.3539461(2023).AcknowledgementsOpenDreamKit– Horizon 2020 European Research Infrastructure project (676541)EPSRC Programme Grant onSkyrmionics(EP/N032128/1)
Package: discretize
discretizediscretize- A python package for finite volume discretization.The vision is to create a package for finite volume simulation with a
focus on large scale inverse problems.
This package has the following features:modular with respect to the spacial discretizationbuilt with the inverse problem in mindsupports 1D, 2D and 3D problemsaccess to sparse matrix operatorsaccess to derivatives to mesh variablesCurrently, discretize supports:Tensor Meshes (1D, 2D and 3D)Cylindrically Symmetric MeshesQuadTree and OcTree Meshes (2D and 3D)Logically Rectangular Meshes (2D and 3D)Triangular (2D) and Tetrahedral (3D) MeshesInstallingdiscretizeis on conda-forgecondainstall-cconda-forgediscretizediscretizeis on pypipipinstalldiscretizeTo install from sourcegitclonehttps://github.com/simpeg/discretize.gitpythonsetup.pyinstallCiting discretizePlease cite the SimPEG paper when using discretize in your work:Cockett, R., Kang, S., Heagy, L. J., Pidlisecky, A., & Oldenburg, D. W. (2015). SimPEG: An open source framework for simulation and gradient based parameter estimation in geophysical applications. Computers & Geosciences.BibTex:@article{cockett2015simpeg,
  title={SimPEG: An open source framework for simulation and gradient based parameter estimation in geophysical applications},
  author={Cockett, Rowan and Kang, Seogi and Heagy, Lindsey J and Pidlisecky, Adam and Oldenburg, Douglas W},
  journal={Computers\&Geosciences},
  year={2015},
  publisher={Elsevier}}LinksWebsite:http://simpeg.xyzDocumentation:http://discretize.simpeg.xyzCode:https://github.com/simpeg/discretizeTests:https://travis-ci.org/simpeg/discretizeBugs & Issues:https://github.com/simpeg/discretize/issuesQuestions:http://simpeg.discourse.group/Chat:http://slack.simpeg.xyz/
Package: discretizer
Tunnel discretizerTunnel discretization tool used to transform tunnel in protein molecule
leading to active site of it to a sequence of disks that enclose the tunnel and
are not consequently distant by more thandelta.UsageGenerally used aspython discretizer.py -f tunnel.pdb --delta 0.3. For
more details seepython discretizer.py --help.InstallThis project uses some external libraries. These will be initialized and
build using commandmake setup.
Package: discrevpy
discrevpy: minimalist discrete event simulatordiscrevpyis a minimalist discrete event simulator in Python. It makes use of function/method
callbacks in its event execution. The discrevpy simulator does not implement any message passing
and is thus exclusively single-threaded.InstallationPython version: 3.7+python3-mpipinstalldiscrevpyGetting startedExample usage:fromdiscrevpyimportsimulatordefsomething(value):print("t="+str(simulator.now())+": something() with value "+str(value))simulator.ready()simulator.schedule(44,something,"ABC")simulator.schedule(967,something,"XYZ")simulator.end(10000)simulator.run()simulator.reset()Documentation:https://snkas.github.io/discrevpy/Next steps:View some short examplesView more in-depth longer examplesExplore the APILearn more about discrete event simulationRead some tips to help you speed up your simulationsUnderstand better the memory usage overhead of discrevpyDevelopment:Read the module development instructionsBrowse the GitHub repositoryView the MIT license
Package: discsocket
discsocketPython framework for Discord interactions.Installationpip install discsocketIntroductionThis is the code needed for a minimal application with an on_ready eventimportdiscsocketsocket=discsocket.Socket()# Event names go in the event decorator# The function can be named whatever@socket.event('ready')asyncdefready():print(f"{socket.user.username}is connected")socket.run('token')or if you want to make the bot function as a classimportdiscsocketclassSocket(discsocket.Socket):def__init__(self):super().__init__(gateway_version=8)# Events in a class structure won't require a decorator# and instead follow the 'on_' + gateway_event formatasyncdefon_ready(self):print(f"{self.user.username}is online")if__name__=='__main__':Socket().run('token')ExtensionsExtensions work to separate your code into different files so it is not all in a single fileimportdiscsocketfromdiscsocketimportextclassBoop(ext.Extension):def__init__(self,socket):self.socket=socket# Example of a command within an extension@ext.Extension.command('boop',discsocket.utils.SLASH)asyncdefboop(self,context:discsocket.models.BaseContext):awaitcontext.callback(content='boop!')# Example of a listener within an extension@ext.Extension.listener('message_create')asyncdefmessage(self,message):print(message['content'])definit_ext(socket):socket.add_ext(Boop(socket))As an example, the above extension is in a folder called 'extensions'importdiscsocketimportpathlibclassSocket(discsocket.Socket):def__init__(self):super().__init__(gateway_version=8)self.load()defload(self):forextin[f'{p.parent}.{p.stem}'forpinpathlib.Path('extensions').glob('*.py')]:try:self.add_extension(ext)exceptExceptionase:print(f"Failed to load{ext}.\n->{e}")else:print(f"Loaded{ext}")asyncdefon_ready(self):print(f"{self.user.username}is online")if__name__=='__main__':Socket().run('token')
Package: discsocket-test
discsocketPython framework for Discord interactions.Installationpip install discsocketIntroductionThis is the code needed for a minimal application with an on_ready eventimportdiscsocketsocket=discsocket.Socket()# Event names go in the event decorator# The function can be named whatever@socket.event('ready')asyncdefready():print(f"{socket.user.username}is connected")socket.run('token')Extensions (Cogs)If you're familiar with discord.py then you know about cogs. However in discsockets extensions don't inherit from a cog class.importdiscsocket@discsocket.command('boop',1)asyncdefboop_command(ctx):awaitctx.callback('https://tenor.com/view/boop-gif-18601298')Lets pretend that the file is called boop.py and is in a folder called extensions# It would be loaded into the client like thissocket.add_extension('extensions.boop')
Package: discumremaded
Remaded DiscumIts not Official Discum Wrapper !This Wrapper is a Discum Copy With Addons, original one is made byMerubokkusuAuthors@merubokkusu(Official Author)@bambikuu(Me)InstallationHow to install Discum-Remadedpython-mpipinstall--user--upgradegit+https://github.com/discummer/discum-remaded.git#egg=discum-remadedcdmy-projectPrerequisitesrequestsrequests_toolbeltbrotliwebsocket_client==0.59.0filetypeua-parsercoloramaContributingContributions are always welcome!Seecontributing.mdfor ways to get started.Please adhere to this project'scode of conduct.Table of Contents + LinksAuthorsInstallationPrerequisitesContributingExamplesChecklistSupportPyPiExamplesimportdiscumremadedbot=discumremaded.Client(token='bottoken',log=False)bot.sendMessage("channelid","Hello :)")@bot.gateway.commanddefhelloworld(resp):ifresp.event.ready_supplemental:#ready_supplemental is sent after readyuser=bot.gateway.session.userprint("Logged in as{}#{}".format(user['username'],user['discriminator']))ifresp.event.message:m=resp.parsed.auto()guildID=m['guild_id']if'guild_id'inmelseNone#because DMs are technically channels toochannelID=m['channel_id']username=m['author']['username']discriminator=m['author']['discriminator']content=m['content']print("> guild{}channel{}|{}#{}:{}".format(guildID,channelID,username,discriminator,content))bot.gateway.run(auto_reconnect=True)ChecklistMake Github RepoMake More FunctionsPublish Github RepoUpload To PyPiEverythingSupportFor support, emailbambikuuu@gmail.comor join our Discord Server.
Package: discurses
A CLI for discord, written in Python. The name is a combination of
discord and curses, as in the terminal interface library. Discurses
doesn’t use curses, but i originally planned to. It is now built using
urwid, a widget library whichcanuse curses as a rendering engine,
but discurses works fine without it.Questions, bug reports, PRs and comments are all very welcome.I can be contacted attopisani@hamsterpoison.comContributors list can be seen in theCONTRIBUTORSfile. If you have
contributed to the project and do not find your name, please let us know.InstallationLinuxThat one is pretty easy:$pipinstalldiscursesPython 3.6 is required (as discord.py does not yet work with 3.7).If you’re having trouble launching the application post-install, check
your PATH variable.$echo$PATHPip installs by default into $HOME/.local/bin which is not typically
part of your path. You can add it with the following command:$exportPATH=$PATH:$HOME/.local/binNote: this is a temporary fix, you would need to add $HOME/.local/bin to
your .profile or .bashrc to make it permanent, check your distributions
documentation for PATH settings.WindowsStart out by followingthisguide.After that, follow the instructions for linux aboveSeriously: urwid issadlynot supported on Windows, and since
discurses is built on top of that, such an OS is not supported. You may
use the official desktop client anyway.AuthenticationPut the fileexample_discurses.yamlin your~/.config/directory, replace the placeholder with your discord token and rename
the file todiscurses.yaml. You can get the token by visitinghttps://discordapp.com/channels/@me, opening the developer tools
(Ctrl+shift+i or Command+shift+i) and click on theApplicationtab,
then on the sidebar:Local Storagethen click the URL from the
dropdown and you should see thetokenkey followed by your token,
copy what’s inside the speech marks and put it in your.yamlfile.
This may not be easy using the Discord webapp as there is a mechanism
in place to delete the token from storage once the page is loaded (occurs
when the splash screen disappears).UsageFull list available in discurses/keymaps.py…When your cursor is in the text box:KeyActionentersend messagemeta + enterinsert newlinedownshow channel seclectorupfocus on the message listesccancel messageGeneral Commands:KeyActionmeta + stoggle server listmeta + btoggle member listmeta + qquitContributingFirst of all, please do, and if you do, feel free to ask me any
questions. Also, the issue reports are up for grabs, but id be very
happy to be notified before you start work, just so we dont work on the
same thing.
Package: discwrappy
DiscWrappyA Python wrapper for the Discord bot APIDocsInitialization:importdiscwrappyclient=discwrappy.Client()...client.run(TOKEN)Functions:@Client.on() - decorator:Params:event_type-The type of event you're waiting forFunction:Creates a "listener" which waits for the given event and triggers your function@client.on("READY")defonReady(ready):print("bot online")Message.send() - function:Params:message (dict) -The Mesage you want to sendFunction:Sends the given dict to the message's channel@client.on("MESSAGE_CREATE")defprintMessageContent(message):message.send({"content":message.content})discwrappy.Message() - class:Params:message (dict) -The default Discord message dictFunction:Turns given message dict into a "proper object" (keys can be access with dot notation), converts numeric ids to ints, and gives the message send functionsdiscwrappy.User() - class:Params:user (dict) -The default Discord user dictFunction:Turns given user dict into a "proper object" (keys can be access with dot notation) and converts numeric ids to intsdiscwrappy.GuildMember() - class:Params:user (dict) -The default Discord guild member dictFunction:Turns given guild member dict into a "proper object" (keys can be access with dot notation)
Package: disdial
DisDialDisDial is a terminal-based IRC-inspired package that enables users to chat on a single server with everyone. This simple and efficient tool is designed for CLI enthusiasts who prefer a text-based chat experience.InstallationTo install DisDial, assuming you have pip installed simply run the following command:pipinstalldisdialUsageRun DisDial from your terminal and start chatting by following these steps:disdialOn your first launch you'll be asked to type your username, you can change it later on.Options-hor--help: Get to know about the arguments.If you wish to know more about the packge description, run:pip show disdialCommands-c: Change username.rr,rf,-r,rl,clea, or just press enter: Refresh the screen to check for latest message.exitorctrl+c: Exit DisDial.DocumentationFor detailed information and usage examples, refer to thedocumentation.ContributingFeel free to contribute to the development of DisDial by submitting issues or pull requests. Your feedback and suggestions are highly appreciated!LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: disdick
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.Proper Invalid Checking, Unlike discord.py, Invalid Ratelimiting to Prevent a cloudflare ban, and proxy optional arguments for some api calls that are heavy.Limitation of Direct Messages to Prevent your Bot from being flaggedSmart Unbanning via guild.smart_unban()Improved Speed and Lessened Thread usageClustering Support With IPC handling in the libraryInstallingPython 3.8 or higher is requiredTo install the library without full voice support, you can just run the following command:# Linux/macOSpython3-mpipinstall-Ugit+https://github.com/cop-discord/disfart# Windowspy-3-mpipinstall-Ugit+https://github.com/cop-discord/disfartOtherwise to get voice support you should run the following command:To install the development version, do the following:$gitclonehttps://github.com/cop-discord/disfart$cddisfart$python3-mpipinstall-U.[voice]Optional PackagesPyNaCl(for voice support)Please note that when installing voice support on Linux, 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.8-devfor Python 3.8)Quick ExampleimportdiscordclassMyClient(discord.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')intents=discord.Intents.default()intents.message_content=Trueclient=MyClient(intents=intents)client.run('token')Bot Exampleimportdiscordfromdiscord.extimportcommandsintents=discord.Intents.default()intents.message_content=Truebot=commands.Bot(command_prefix='>',intents=intents)@bot.command()asyncdefping(ctx):awaitctx.send('pong')bot.run('token')You can find more examples in the examples directory.LinksDocumentationOfficial Discord ServerDiscord API
Package: disease
Классификатор заболеванийPatient-intake- модуль, обеспечивающий дистанционное взаимодействие пациента и медицинского учреждения с помощью диалоговых агентов. Реализован на языке Python.Модуль позволяет предсказывать возможное заболевание пациента на основе введенной им информации, присваивать диагнозу степень срочности приема, а также выводить интерпретацию результатов работы модели. Для обучения модели создан датасет, содержащий информацию о болезнях и их симптомах.Модуль поддерживает анализ текстов на русском языке.ПрименениеМодуль является инструментом для разработки медицинских чат-ботов. Может быть использован для управления потоками пациентов в медицинских учреждениях, а также будет полезен для реализации концепции второго мнения при взаимодействии с пациентом.Установка модуляpip install distoolПример использованияfromdistool.feature_extractionimportSmartSymptomExtractorfromdistool.interpretation.explainerimportSymptomBasedExplainerfromdistool.estimatorsimportDiseaseClassifiertexts=["У меня болит живот, но нет температуры","У меня температура, но нет недомогания","Я завтра иду домой",]diseases=["гастрит","отит","-1"]symptom_vectorizer=SmartSymptomExtractor()features=symptom_vectorizer.transform(texts)classifier=DiseaseClassifier()classifier.fit(features,diseases)predicted_diseases=classifier.predict(features)print("Predicted diseases:",predicted_diseases)# Predicted diseases: ['гастрит' 'отит' '-1']explainer=SymptomBasedExplainer(symptom_vectorizer,classifier)print(explainer.explain(features[1]))# Наблюдается отит с вероятностью 59%.# Это потому что у вас наблюдаются следующие симптомы: температура# И отрицаются следующие: недомоганиеРазработкаНужно установить зависимости и подключить pre-commit.gpip install -r requirements.py
pre-commit install
bash init.shКонтрибьютингКаждый новый функционал должен покрываться документацией и тестом.ТестированиеЧтобы запустить тесты нужно ввести:pytestPull requestКаждый PR должен быть отревьювен.История проектаРабота надPatient-intakeпроводится в рамках НИР Университета ИТМО №622275 "Разработка модуля для предварительного диагноза: поддержание логистики потоков пациентов и концепции второго мнения при взаимодействии с пациентом через диалоговые системы" (2022-2023)Участники проектаАнна Чижикруководитель проектаМичил ЕгоровтимлидДмитрий погребнойразработчикАйталина КривошапкинаразработчикМария ЯкубовааналитикОбратная связьЕсли у Вас есть какие-то вопросы, можете обращаться к нам по адресу:patientintake@yandex.ru
Package: disease-classifier
disease-classifierA napari plugin for disease classification based on iPAC images.InstallationYou can installdisease-classifierviapip:pip install disease-classifierTo install latest development version :pip install git+https://github.com/zcqwh/disease-classifier.gitIntroductionLoad data (.rtdc or .bin)Drag and drop the data in .rtdc or .bin into the files table.Click eye button to preview images.Choose model and classifyChoose the model folder including CNN and RF/PLDA.Check the data.Click classify.Preview classification resultsClick the eye button to preview the result.Click the header to show all.Save resultsClick “Add classification to .rtdc file” button to save results.ContributingContributions are very welcome. Tests can be run withtox, please ensure
the coverage at least stays the same before you submit a pull request.LicenseDistributed under the terms of theBSD-3license,
"disease-classifier" is free and open source softwareIssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.Thisnapariplugin was generated withCookiecutterusing@napari'scookiecutter-napari-plugintemplate.
Package: disease-normalizer
Disease NormalizationServices and guidelines for normalizing disease termsDeveloper instructionsFollowing are sections include instructions specifically for developers.InstallationFor a development install, we recommend using Pipenv. See thepipenv docsfor direction on installing pipenv in your compute environment.Once installed, from the project root dir, just run:pipenv syncDeploying DynamoDB LocallyWe use Amazon DynamoDB for our database. To deploy locally, followthese instructions.Init coding style testsCode style is managed byflake8and checked prior to commit.We usepre-committo run conformance tests.This ensures:Check code styleCheck for added large filesDetect AWS CredentialsDetect Private KeyBefore first commit run:pre-commit installRunning unit testsRunning unit tests is as easy as pytest.pipenv run pytestUpdating the disease normalization databaseBefore you use the CLI to update the database, run the following in a separate terminal to start DynamoDB onport 8000:java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDbTo change the port, simply add-port value.Update source(s)The sources we currently use are: OncoTree, OMIM, Disease Ontology, and Mondo.The application will automatically retrieve input data for all sources but OMIM, for which a source file must be manually acquired and placed in thedisease/data/omimfolder within the library root. In order to access OMIM data, users must submit a requesthere. Once approved, the relevant OMIM file (mimTitles.txt) should be renamed according to the conventionomim_YYYYMMDD.tsv, whereYYYYMMDDindicates the date that the file was generated, and placed in the appropriate location.To update one source, simply set--normalizerto the source you wish to update. Accepted source names areDO(for Disease Ontology),Mondo,OncoTree, andOMIM.From the project root, run the following to update the Mondo source:python3 -m disease.cli --normalizer="Mondo"To update multiple sources, you can use thenormalizerflag with the source names separated by spaces.python3 -m disease.cli --normalizer="Mondo OMIM DO"Update all sourcesTo update all sources, use the--update_allflag.From the project root, run the following to update all sources:python3 -m disease.cli --update_allCreate Merged Concept GroupsThenormalizeendpoint relies on merged concept groups.To create merged concept groups, use the--update_mergedflag with the--update_allflag.python3 -m disease.cli --update_all --update_mergedSpecifying the database URL endpointThe default URL endpoint ishttp://localhost:8000.There are two different ways to specify the database URL endpoint.The first way is to set the--db_urlflag to the URL endpoint.python3 -m disease.cli --update_all --db_url="http://localhost:8001"The second way is to set theDISEASE_NORM_DB_URLto the URL endpoint.export DISEASE_NORM_DB_URL="http://localhost:8001"
python3 -m disease.cli --update_allStarting the disease normalization serviceFrom the project root, run the following:uvicorn disease.main:app --reloadNext, view the OpenAPI docs on your local machine:http://127.0.0.1:8000/disease