Saravanan666/pypi-org huggingface dataset:
Package: deltaxplainer
DeltaXplainer, XAI model comparison and explanations(documentation not up to date)Package for DeltaXplainer model implemented from the paper Dynamic Interpretability for Model Comparison via Decision Rules, A Rida, MJ Lesot, X Renard, C Marsala, DynXAI workshop at ECML PKDD 2023,https://arxiv.org/pdf/2309.17095.pdfDeltaXplainer is an algortihm aiming at explaining differences between two black box binary classifiers.The models takes as input the two models to compare and generate explanations. The package is originally built to support comparison of sklearn models but any object with apredictmethod doing binary classification should work.The explanations are provided using decision rules. We propose to answer to the question "Why are the models different?" by showing "Where" they differ.The explanations are a list of segments where the two black box models make different predictions.Ideas for future improvements include considering other explanations format and ways to extract knowledge from the delta model.Installationpip install deltaxplainerGetting StartedIn order to have a hands on example please refer to thisnotebookGenerating ExplanationsAssuming you want to explain differences betweenclassifer_aandclassifer_btrained onX_a, y_aandX_b, y_bFor more details on how the method works please refer to the original paper.from deltaxplainer import DeltaXplainerX_delta_train = pd.concat([X_a, X_b])delta_model = DeltaXplainer(X_delta_train, model_a, model_b).fit()print(delta_model.segments)This last line gives you a list of segments where the two models differ.[under construction]
Package: deltw
deltwTwitter Tweet cleaner to delete archived tweets using aTwitter ArchivefileTwitter API: v1.1Installation$pipinstall-UdeltwUsageDownload yourTwitter archiveas a ZIP file.Set credentials to use Twitter API.$deltwinit
$vitw_credentials.yml# => Enter keysDelete archived tweets in your Twitter archive on Twitter.$deltwdelete--credentialtw_credentials.yml--archive/path/to/tweet_archive.zipRundeltw --helpfor more information about options.
Package: deluca
delucaPerformant, differentiable reinforcement learningNotesThis is pre-alpha software and is undergoing a number of core changes. Updates to follow.delucais currently implemented as a minimal Python namespace package. It
will contain environments and agents thatonlydepend on NumPy, along with
utilities for benchmarking, visualization, etc.The remainder of environments are developed in separate plugins (also Python
namespace packages)deluca-jax: differentiable environments and relevant agents implemented
usingjaxdeluca-lung: differentiable lung simulators and relevant agents
implemented inPyTorchDocumentation forthcoming!
Package: deluge
Deluge BitTorrent ClientDeluge is a BitTorrent client that utilizes a daemon/client model.
It has various user interfaces available such as the GTK-UI, Web-UI and
Console-UI. It useslibtorrentat its core to handle the BitTorrent
protocol.InstallFromPyPi:pip install delugewith all optional dependencies:pip install deluge[all]From source code:pip install .with all optional dependencies:pip install .[all]SeeDEPENDSandInstalling/Sourcefor dependency details.UsageThe various user-interfaces and Deluge daemon can be started with the following commands.Use the--helpoption for further command options.Gtk UIdelugeordeluge-gtkConsole UIdeluge-consoleWeb UIdeluge-webOpenhttp://localhost:8112with default passworddeluge.DaemondelugedSee theThinclient guideto connect to the daemon from another computer.ContactHomepageUser guideForumIRC Libera.Chat #delugeDiscord
Package: deluge-card
deluge-cardA Python3 api for Synthstrom Audible Deluge SD cards.Documentation:https://mupaduw.github.io/deluge-cardGitHub:https://github.com/mupaduw/deluge-cardPyPI:https://pypi.org/project/deluge-card/Free software: MITFeaturesList sub-folders that resemble Deluge cards (DelugeCardFS).List contents of deluge filesystems (cards , folders).Get details of card contents: songs, samples, sample usage.Get song details liketempo,key,scale.Filter contents by paths, using posixlsglob patterns.Move samples like posixmv.Unit tested on Macosx, Linux & Windows, Python 3.8+.Song XML from fw3.15.CreditsThis package was created withCookiecutterand thewaynerv/cookiecutter-pypackageproject template.
Package: deluge-client
A lightweight pure-python rpc client for deluge.
Note, does not support events and any additional replies from deluge will mess up the datastream.RequirementsDeluge 1.3.x, 2.0, 2.1Python 3.8, 3.9, 3.10, 3.11, 3.12InstallFrom GitHub (develop):pipinstallgit+https://github.com/JohnDoee/deluge-client.git#developFrom PyPi (stable):pipinstalldeluge-clientUsage>>>fromdeluge_clientimportDelugeRPCClient>>>client=DelugeRPCClient('127.0.0.1',12345,'username','password')>>>client.connect()>>>client.connectedTrue>>>client.call('core.get_torrents_status',{},['name']){'79816060ea56d56f2a2148cd45705511079f9bca':{'name':'TPB.AFK.2013.720p.h264-SimonKlose'}}>>>client.core.get_torrents_status({},['name']){'79816060ea56d56f2a2148cd45705511079f9bca':{'name':'TPB.AFK.2013.720p.h264-SimonKlose'}}It is also usable as a context manager.>>>fromdeluge_clientimportDelugeRPCClient>>>withDelugeRPCClient('127.0.0.1',12345,'username','password')asclient:...client.call('core.get_torrents_status',{},['name']){'79816060ea56d56f2a2148cd45705511079f9bca':{'name':'TPB.AFK.2013.720p.h264-SimonKlose'}}Idiom to use for automatic reconnect where the daemon might be offline at call time.importtimefromdeluge_clientimportDelugeRPCClient,FailedToReconnectExceptiondefcall_retry(client,method,*args,**kwargs):# We will only try the command 10 timesfor_inrange(10):try:returnclient.call(method,*args,**kwargs)exceptFailedToReconnectException:# 5 second delay between callstime.sleep(5)Idiom usageclient=DelugeRPCClient('127.0.0.1',58846,'username','password',automatic_reconnect=True)# The client has to be online when you start the process,# otherwise you must handle that yourself.client.connect()call_retry(client,'core.get_torrents_status',{},['name'])# or if you have local Deluge instance, you can use the local client# LocalDelugeRPCClient accepts the same parameters, but username and password can be omittedfromdeluge_clientimportLocalDelugeRPCClientlocalclient=LocalDelugeRPCClient()localclient.connect()ExamplesThere’s an example of how you might use this client in theexamplesdirectoryList of Deluge RPC commandsSadly, this part isn’t well documented. Your best bet is to check out the source code and try to figure
out what you need. The commands are namespaced so the commands you mostly need, core commands, are prefixed
with acore.- Check outthis searchfor all commands
andcore.pyfor core commands.The exported commands are decorated with@export.You can also get a list of exported commands by calling thedaemon.get_method_listmethod:client.call('daemon.get_method_list')# orclient.daemon.get_method_list()LicenseMIT, see LICENSE
Package: deluge-cmd
deluge-cmdSome cli tools to manage Synthstrom Deluge SD card contents.Documentation:https://mupaduw.github.io/deluge-cmdGitHub:https://github.com/mupaduw/deluge-cmdPyPI:https://pypi.org/project/deluge-cmd/Free software: MITThis project usesdeluge-cardwhich provides a python API for the Deluge Folder System.Featureslist Songs Samples, and Song Samples on a Deluge Folder System (DFS).check Deluge Folder Systems.list useful attributes tempo, key, scale.filter on path patterns: e.g. list all "Kick" samples).e.g.$> dls songs ~/Music/DELUGE/01 *001*
Deluge filesystem at /homie/Music/DELUGE/01 mounted: False
  DelugeSong(/homie/Music/DELUGE/01/SONGS/SONG001.XML) key C major tempo 96.0
  DelugeSong(/homie/Music/DELUGE/01/SONGS/SONG001A.XML) key C major tempo 96.0
  DelugeSong(/homie/Music/DELUGE/01/SONGS/SONG001B.XML) key C major tempo 108.0
  DelugeSong(/homie/Music/DELUGE/01/SONGS/SONG001C.XML) key C major tempo 108.0
  DelugeSong(/homie/Music/DELUGE/01/SONGS/SONG001D.XML) key C major tempo 96.0Experimental (backup first!)Move your samples, and update the songs that reference themwhich has somemissing prime-time features$> dmv ~/Music/DELUGE/TEST/02 **/CR78* SAMPLES/ANOTHER_PLACE -vs
~/Music/DELUGE/TEST/02/SONGS/SONG002A.XML update song xml
~/Music/DELUGE/TEST/02/SONGS/SONG002.XML update song xml
...
~/Music/DELUGE/TEST/02/SAMPLES/ANOTHER_PLACE/CR78 Closed hihat.wav move file
~/Music/DELUGE/TEST/02/SAMPLES/ANOTHER_PLACE/CR78 Metal.wav move file
moved 14 samples, in 9 songsPlanned features(d)cp, and (d)rm commands.support for v4.0+ nested folderssong groups (1, 1A, 1B, 1C).instruments, kits & synths.CreditsThis package was created withCookiecutterand thewaynerv/cookiecutter-pypackageproject template.
Package: deluge-gui
deluge-guiGUI for deluge-card and related for Mac, Linux & Windows.Documentation:https://mupaduw.github.io/deluge-guiGitHub:https://github.com/mupaduw/deluge-guiPyPI:https://pypi.org/project/deluge-gui/Free software: GPL-3.0-onlyFeaturesTODOCreditsThis package was created withCookiecutterand thewaynerv/cookiecutter-pypackageproject template.
Package: deluge-interface
Deluge InterfaceInstallingpython3 -m pip install deluge_interfaceRequirementsA running Deluge serviceUsagefromdeluge_interfaceimportDeluge,Torrent,TorrentStatusdeluge=Deluge("http(s)://example.deluge.com","your_password_here")torrent:Torrent=deluge.add_magnet(uri:str)status:TorrentStatus=torrent.get_status()deluge.remove_torrent(torrent.id,False)Adding TorrentsTorrents can be added by magnet link, local.torrentfile, or a remotely hosted URL to a.torrentfile. The relevant methods are as follows:Deluge().add_magnet(uri: str, **kwargs) -> TorrentAdds a magnet link to the queue, and returns a Torrent object with the relevant data.Deluge().add_torrent_from_url(url: str, headers: dict[str, str] = {}, **kwargs) -> TorrentAdds a torrent URL to the queue, and returns a Torrent object with the relevant data.Deluge().add_torrent_from_file(*path, **kwargs) -> TorrentAdds a torrent file frompathto the queue, and returns a Torrent object with the relevant data.Managing TorrentsTorrents can be removed, paused, or resumed in the current library version. The relevant methods are as follows:Deluge().remove_torrent(torrent_id: str, remove_data: bool = False)Removes torrent with idtorrent_id. Ifremove_datais true, all data associated with the torrent will also be removedTorrent().pause()Pauses the torrent object.Torrent().resume()Resumes the torrent object.Deluge().list_torrents() -> list[Torrent]Gets all active torrents.
Package: delugeonal
delugeonalA set of scripts and libraries for controlling and organizing a torrent/media infrastructure.Current (barely) supported software/sites:Media Servers:PlexMedia Databases:IMDb,TheTVDBTorrent Clients:Deluge1.3.15Media Sites:IPTorrents,TorrentGalaxy,EZTVUsageAdd torrent files from a particular directory to your torrent client:$ delugeonal --add $HOME/DownloadsCheck for torrents that can/should be removed from your torrent client:$ delugeonal --cleanup --verboseScan the rss feed for your configured torrent site and download torrents for any files that aren't present on your media server:$ delugeonal --rss --yesMove downloaded media files from the default download directory and add them to the proper media server directory:$ delugeonal --move_mediaSearch for torrents:$ delugeonal --search "archer s09e02"Find missing episodes for a particular show and search for them on your configured media sites.$ delugeonal --fill "central park" --verboseNote that not all services need to be running on the same machine.  Your torrent client may be running on one machine, your media server may be running on a seperate on another, where you may  may also search for and download torrent/magent files.Installation$ pip3 install delugeonalConfigurationEdit a Copy ofsample-configand save it to one of these three locations:$HOME/delugeonal.conf
    $HONE/.config/delugeonal/delugeonal.conf
    /etc/delugeonal.conf... or set the $DELUGEONAL_CONF environment variable:$ export DELUGEONAL_CONF=/place/i/put/the/configuration.file
Package: deluge-webapi
https://github.com/idlesign/deluge-webapiDescriptionPlugin for Deluge WebUI providing sane JSON API.Exposes some sane JSON API through Deluge WebUI (missing out of the box or restyled) so that you can manipulate
Deluge from your programs using HTTP requests.Supported methods:get_torrentsadd_torrent(magnet or file)remove_torrentget_api_versionDeluge is a lightweight, Free Software, cross-platform BitTorrent client. Download it athttp://deluge-torrent.org/NoteUse egg version 0.4.0 or higher for Deluge 2NoteUse egg version 0.3.2 or lower for Deluge 1.xInstallationGet plugin egg file, fromdist/(https://github.com/idlesign/deluge-webapi/tree/master/dist) directory.Open Deluge Web UI, go to “Preferences -> Plugins -> Install plugin” and choose egg file.ActivateWebAPIplugin.In case you use Client-Server setup, you’ll need to install the plugin both on client and server, see -https://dev.deluge-torrent.org/wiki/Plugins#Client-ServerSetupsNoteTo build .egg file from source code yourself usepython setup.py bdist_eggcommand in source code directory.Documentationhttp://deluge-webapi.readthedocs.org/
Package: demagnetize
GitHub|PyPI|Issues|Changelogdemagnetizeis a Python program for converting one or more BitTorrentmagnet linksinto.torrentfiles by downloading the torrent info from
active peers.At the moment,demagnetizeonly supports basic features of the BitTorrent
protocol.  The following notable features are supported:BitTorrent protocol v1HTTP (including compact and IPv6 extensions) and UDP trackersmagnet URIs with info hashes encoded in either hexadecimal or base32Fast extension (BEP 6)UDP tracker protocol extensions (BEP 41)The following features are not currently supported but are planned, in no
particular order:EncryptionDistributed hash tablesBitTorrent protocol v2x.peparameters in magnet linksuTPdemagnetizehas also been translated by the author into Rust; you can find
the Rust version at <https://github.com/jwodder/demagnetize-rs>.Installationdemagnetizerequires Python 3.10 or higher.  Just usepipfor Python 3 (You have pip, right?) to install it:python3 -m pip install demagnetizeUsagedemagnetize [<global options>] <subcommand> ...Thedemagnetizecommand has two subcommands,get(for converting a
single magnet link) andbatch(for converting a file of magnet links), both
detailed below.Global Options-lLEVEL,--log-levelLEVELSet the log level to the given value.  Possible values
are “CRITICAL”, “ERROR”, “WARNING”,
“INFO”, “DEBUG”, and “TRACE” (all
case-insensitive).  [default value:INFO]demagnetize getdemagnetize [<global options>] get [<options>] <magnet-link>Convert a single magnet link specified on the command line to a.torrentfile.  (Note that you will likely have to quote the link in order to prevent it
from being interpreted by the shell.)  By default, the file is saved at{name}.torrent, where{name}is replaced by the value of thenamefield from the torrent info, but a different path can be set via the--outfileoption.Options-oPATH,--outfilePATHSave the.torrentfile to the given path.  The path
may contain a{name}placeholder, which will be
replaced by the (sanitized) name of the torrent, and/or
a{hash}placeholder, which will be replaced by the
torrent’s info hash in hexadecimal.  Specifying-will cause the torrent to be written to standard
output.  [default:{name}.torrent]demagnetize batchdemagnetize [<global options>] batch [<options>] <file>Read magnet links from<file>, one per line (ignoring empty lines and lines
that start with#), and convert each one to a.torrentfile.  By
default, each file is saved at{name}.torrent, where{name}is replaced
by the value of thenamefield from the torrent info, but a different path
can be set via the--outfileoption.Options-oPATH,--outfilePATHSave the.torrentfiles to the given path.  The
path may contain a{name}placeholder, which will
be replaced by the (sanitized) name of each torrent,
and/or a{hash}placeholder, which will be replaced
by each torrent’s info hash in hexadecimal.  [default:{name}.torrent]
Package: demalos
demalosDownloading and subsetting ALOS 30m DEMInstallationUse the package managerpipto install demalospipinstalldemalosUsagesee example.pyorfromdemalosimportdemaloslat0=41lon0=-113dlat=0.1dlon=0.1alos_obj=demalos(lat0,lon0,dlat,dlon,alos_folder_in='/Volumes/Amir_5TB/SAO/ALOS_DEM/in/N040W115_N045W110',alos_folder_out='/Volumes/Amir_5TB/SAO/ALOS_DEM/out/')alos_obj.subset_alos()alos_obj.save_to_tiff("output_test3.tif")alos_obj.save_to_nc("output_test3.nc")to download alos files usealos_obj.download_alos(dem_file="N040W115_N045W110")Warning! not specifying dem_file will make the code want to download the whole datasetLicenseMIT
Package: demandimport
demandimportDelays loading of modules until they are actually used.  Perfect for Python
apps that need to be snappy like command-line utils.  Source-code derived
from mercurial.To enable, writeimportdemandimport;demandimport.enable()Imports of the following form will be delayedimporta,b.cimporta.bascfromaimportb,c# a will be loaded immediately, thoughThese imports with not be delayedfromaimport*b=__import__(a)Delayed loading will confuse some third-party modules.  In that case you
can disable the delay for just that module.  For exampledemandimport.ignore('Crypto.PublicKey._fastmath')There are also versions that can be used withwithwithdemandimport.enabled():# do somethingwithdemandimport.disabled():importtroublesome.modulewithdemandimport.ignored('test'):importother.troublemakerInstallationTo installdemandimport, simply run:pip install demandimportAttributionMatt Mackall <mpm@selenic.com> is the original author of the module in
Mercurial on which this module is based.  Bas Westerbaan <bas@westerbaan.name>
maintains it now.py-demandimport Changelog0.3.4 (2017-06-08)Python 3.6Add sip to the default ignore list.  #60.3.3 (2016-10-20)Addis_loadedandis_proxy.
Thanks-to: github.com/poke10240.3.2 (2015-12-22)Fixed issue #2:import a.b.cwill incorrectly try to importb.c0.3.1 (2015-12-21)Relicense GPL version 2 or later (GPLv2+)0.3.0 (2015-12-21)Do not delay ImportError in a special case.Add optional logging (for debugging)Fixed issue #1:import a.bin a modulea.cwas incorrectly executed
as a relativeimport c.Improve thread safety0.2.2 (2015-12-05)Moved to zest.releaserAdd some basic unittestsPython 3 support
Package: demandlib
Creating heat and power demand profiles from annual values.Free software: MIT licenseInstallationpip install demandlibYou can also install the in-development version with:pip install https://github.com/oemof/demandlib/archive/master.zipDocumentationhttps://demandlib.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 tox
Package: demand-manager
demand-managerDemand manager is a python package for managing the loads of households, including electric appliances, batteries and EVs.Demand manage uses the MiniZinc as the optimisation modelling language, and Gecode, Gurobi or other solvers that are compatible with MiniZinc.The objectives of the demand optimisation problem include the energy usage cost, the network charge (if needed) and inconvenience to consumers.
Package: demands
A base HTTP service client.By default it “demands” successful responses from API endpoints,
otherwise it raises an exception.Demands accepts all the same parameters asrequests.requestand
extends therequests.Sessionclass, documentation for both:Requests Developer
Interface.Written and used by the folks at Yola to support ourfree website
builder.HTTPServiceClient Overviewbase class for creating service clientsprovides flexible way of http error handling for descendantsHTTPServiceErrorraised on unexpected service responseSupports pre-send and post-send hooksUsagefromdemandsimportHTTPServiceClientclassMyService(HTTPServiceClient):defget_user(self,user_id):returnself.get('/users/%s/'%user_id).json()defsafe_get_user(self,user_id,default_user):response=self.get('/users/%s/'%user_id,expected_response_codes=[404])returnresponse.json()ifresponse.is_okelsedefault_userservice=MyService(url='http://localhost/')user=service.get_user(1234)Any parameters passed to the constructor will also be used for each and
every request:service=MyService(url='http://localhost/',headers={'h1':'value'},auth=('username','pass'),)# sent with auth and both headersuser=service.get('/some-path',headers={'h2':'kittens'})TestingInstall development requirements:pip install -r requirements.txtRun the tests with:nosetestsAPI documentationTo generate the documentation:cd docs && PYTHONPATH=.. make singlehtml
Package: demapi
DemAPIMake customizable demotivators and motivators through imgonline.com.ua API. Supports async-await styleDocumentation: Check outGUIDE.mdFeaturesSync andasync-awaitstyleCustomizable titles and explanation (size, colors etc.)Flexible output image (line breaks showed correctly)Not CPU-bound (through unlimited API)Full tests coverageFull typedOverviewConfigure request params such as text, color, size etc.
And then download the image. Optionally save to disk otherwise
useimage.contentfor raw bytes objectimportdemapiconf=demapi.Configure(base_photo="example.png",title="The first line",explanation="The second line")image=conf.download()image.save("example.png")Or viaawait(based onaiohttp):image=awaitconf.coroutine_download()InstallationInstall the latest version throughGitHub:python-mpipinstallhttps://github.com/deknowny/demapi/archive/main.zipOr throughPyPIpython-mpipinstalldemapiContributingCheck outCONTRIBUTING.md
Package: demarches-simpy
Demarches SimpyA python package to access to Démarches Simplifiées API via OOP objects.Demarches SimpyBefore you startInstallationGet the Démarches Simplifiées API tokenGetting StartedContributingDocumentationLicenseBefore you startThis package is not affiliated with Démarches Simplifiées. It is an unofficial package.This package is still in development, some features may not work as expected.As Démarches Simplifiées is a French website, the documentation is in english and the package functions are in english, but some object names have been kept in french for clarity. SoDossierwill be used instead ofField. AndDemarcheinstead ofProcess. As well as Dossier State likeaccepteeinstead ofacceptedand others.InstallationUse the package managerpipto install demarches-simpy:pipinstalldemarches-simpyThe package was developed withPython 3.11, using older versions may cause errors.Get the Démarches Simplifiées API tokenTo use the API, you need to get an API token from theDémarches Simplifiées website.Then go to -> "See my profile" -> "API identification tokens" -> "Create and display a new token"You can choose to assign the token to specific "demarches" or to all demarches.Getting StartedTo see how to simply use the package, see theGetting Startedpage in the documentation.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.DocumentationDocumentationLicenseMIT
Package: demcmc
demcmcDifferential Emission Measure estimation using MCMC methodsContributingWe love contributions! demcmc is open source, built on open source, and we're open to all types of contributions from anyone.Contributing doesn't just mean writing code. You can help out by writing documentation, tests, or even giving feedback about the project (and yes - that includes giving feedback about the contribution process). Some of these contributions may be the most valuable to the project as a whole, because you're coming to the project with fresh eyes, so you can see the errors and assumptions that seasoned contributors have glossed over.