Saravanan666/pypi-org huggingface dataset:
Package: disco-microbe
DISCO-microbeDesign of an Identifiable Synthetic Community of Microbes (DISCo-microbe) is an easy-to-use command-line program, for creation of diverse communities of organisms that can be distinguished through next-generation sequencing technology. DISCo-microbe consists of two modules, create and subsample. The create module constructs a highly diverse community at a specified sequence difference from an input of aligned DNA/RNA sequences, e.g., 16S sequence. The module can either design a de novo community or design a community that includes targeted organisms. create solves problem (1) by easily generating a diverse community of members through an easily documentable method, ensuring reproducibility. The subsample module provides options for dividing the community into subsets, according to either the number of members or the proportions of a grouping variable, both of which can be specified by the user. subsample module solves problem (2) by allowing the user to subsample an already distinguishable community of members based on attributes of interest. Although this software was designed for construction of microbial communities, any DNA/RNA alignment can be used as input; consequently, users are not restricted to any particular organismal group or marker gene. This program is implemented in Python and is available through GitHub and PYPI.InstallationDISCo-microbe is a python based package that can easily be installed withpipor directly from our github_ page.pipIf you have a native installation ofpythonyou can use:>>> pip install disco-microbegitThe newest development version of disco-microbe may be installed from our github_ page. You can use git directly, or download a zipfile.https://github.com/dlcarper/Disco-microbe>>> git clone https://github.com/dlcarper/Disco-microbe.git
>>> cd Disco-microbe
>>> python setup.py installanacondaAnaconda_ provides thecondaenvironment and is the recommended way to install DISCO-microbe if you are operating a Windows machine without a nativepython. Once you haveanacondainstalled, create acondaenvironment and then usesourceandactivateto launch apythonenvironment.https://www.anaconda.com>>> conda create -n disco-microbe-env python=3.7
>>> source activate disco-microbe-envYou can now proceed with a pip install:>>> pip install disco-microbeTest your installationYou can test your installation by running the DISCo-microbe help command:>>> disco -hFor full tutorial go tohttps://disco-design-of-an-identifiable-synthetic-community.readthedocs.io/en/latest/Tutorial.html
Package: discontinuitypy
DiscontinuityPyUser GuideThis package is designed to identify and analyze discontinuities in time
series data.Finding the discontinuities, seethis
notebookCorresponding to limited feature extraction / anomaly detectionCalculating the properties of the discontinuities, seethis
notebookOne can use higher time resolution dataFor how to use this project as a python library, please seethis
page.Installationpipinstallids-finderGetting startedImport the packagefromdiscontinuitypy.utils.basicimport*fromdiscontinuitypy.coreimport*Related projects and publicationsSolar wind discontinuities spatial evolution in the outer
heliosphereEvolution of solar wind discontinuities in the inner heliosphere: PSP
and Earth conjunctions and
alignmentsTODOsScience partAnalysisContribution of discontinuities to the power spectrumCheck DatagapDistribution of |B| over radiusAdd error barMore accurate way to obtain the properties of the
discontinuitiesIdentifactionEnsemble forest?Smoothing is important?Check change point algorithmFeaturesThickness in N directionUse high resolution data for feature extractionCompare with other methods of identifying IDsVerify with other methods of identifying IDsCode partOptimizationJAXlibrary fornumpyoptimizationshorten import timeRefactorprocess_candidatesto excludesat_statelogicsrenaming feature layercandidatesKedroModular pipelinesbugsSTEREOBless than zero (after downsampling?)
Package: disconv
Data Structures (datatype conversion) Conversion packagecurrent data-structure supported: List, Dictionary, Tuple, Set##Installation
Run the following to install:
'''python
pip install disconv'''##Usage
'''python
import disconv as foo#Conversion to int
foo.tonum(data)#Conversion to float
foo.tofloat(data)#Conversion to int
foo.tostr(data)#data refers to a variable of any of the supported datastructure types
'''##Methods:tonum() : converts values in supported datastructures to int typeconversions: source_type:output_type => int:int, float:int, str: list of ASCII values if len(str)>1; else, returns ASCII value of str , bool: {True:1,False:0}tostr() : converts values in supported datastructures to str typetofloat() : converts values in supported datastructures to float typeconversions: source_type:output_type => int:float, float:float, str: list of float of ASCII values if len(str)>1; else, returns float of ASCII value of str , bool: {True:1.0,False:0.0}Note_1: Conversion of dict type data-structures convert the datatype of the values of the dictionaryDeveloping disconvTo install disconv, along with the tools you need to develop and run tests, run the following in your virtualenv:
'''bash
$ pip install -e .[dev]
'''Note_2: This is a work in progress. Do feel free to contact me with any suggestions, improvements or bugs you find at you have at:leejohnsdecarmel@gmail.com
Package: disco.oauth2
Discord OAuth2A modern, easy to use discord OAuth2 API wrapper written in Python.InstallingPython >3.8is required.You can run the following command to install the library:$pipinstalldisco.oauth2To install the development version (lastest), do the following:$pipinstallgit+https://github.com/InviteManagerBot/disco.oauth2.gitGetting startedQuick Examplefromdisco_oauth2importClientclient=Client(client_id=client_id_here,client_secret="client_secret_here",redirect_uri="redirect_uri_here",scopes=["identify","guilds","email","connections"],)asyncdefmain():# Exchange a code received from the callback from the redirect url.access_token=awaitclient.exchange_code("my_code")# Fetch user's information with access token.user=awaitclient.fetch_user(access_token)# Fetch user's connections.connections=awaituser.fetch_connections()# Fetch guilds that the user is member of.guilds=awaituser.fetch_guilds()print(f"{user!r}|{connections!r}")forguildinguilds:print(f"`{user.name}` member of{guild!r}")Requirementsaiohttp > = 3.7.4, < 4Optionally you may install theorjsonlibraries (highly recommended for sake of speed).Licensediscord_oauth2was written by martimartinsmartim13artins13@gmail.com, licensed under theMITlicense.ContributingAll contributions are welcome ;)
Package: discopy
DisCoPyDisCoPy is a Python toolkit for computing withstring diagrams.Organisation:https://discopy.orgDocumentation:https://docs.discopy.orgSource code:https://github.com/discopy/discopyPaper (for applied category theorists):https://doi.org/10.4204/EPTCS.333.13Paper (for quantum computer scientists):https://arxiv.org/abs/2205.05190DisCoPy began as an implementation ofDisCoCatandQNLP. This has now become its own library:lambeq.FeaturesanArrowdata structure for freedagger categorieswith formal sums, unary operators and symbolic variables fromSymPyaDiagramdata structure for planar string diagrams in any (pre)monoidal categoryin thehierarchy of graphical languages(with braids, twists, spiders, etc.)aHypergraphdata structure for string diagrams in hypergraph categories and its restrictions to symmetric, traced, compact and Markov categoriesmethods for diagram composition, drawing, rewriting andFunctorevaluation into:Python code, i.e. wires as types and boxes as functionstensor networks, i.e. wires as dimensions and boxes as arrays fromNumPy,PyTorch,TensorFlow,TensorNetworkandJAXan implementation ofcategorical quantum mechanicsinterfacing with:tketfor circuit compilationPyZXfor optimisation with theZX calculusPennyLanefor automatic differentiationan implementation of formal grammars (context-free,categorial,pregroupordependency) with interfaces tolambeq,spaCyandNLTKArchitectureSoftware dependencies between modules go top-to-bottom, left-to-right andforgetful functorsbetween categories go the other way.QuickstartpipinstalldiscopyIf you want to see DisCoPy in action, check out theQNLP tutorial!ContributeWe're keen to welcome new contributors!First, read thecontributing guidelines.
Then get in touch onDiscordoropen an issue.How to citeIf you used DisCoPy in the context of an academic publication, we suggest you cite:G. de Felice, A. Toumi & B. Coecke,DisCoPy: Monoidal Categories in Python, EPTCS 333, 2021, pp. 183-197,DOI: 10.4204/EPTCS.333.13If furthermore your work is related to quantum computing, you can also cite:A. Toumi, G. de Felice & R. Yeung,DisCoPy for the quantum computer scientist,arXiv:2205.05190If you use any of the recent features (e.g.Hypergraph) you should also mention:A. Toumi, R. Yeung, B. Poór & G. de Felice,DisCoPy: the Hierarchy of Graphical Languages in PythonarXiv:2311.10608
Package: disco-py
# discoDisco is a simple and extendable library for the [Discord API](https://discordapp.com/developers/docs/intro). Join the Official channel and chat [here](https://discord.gg/WMzzPec).- Expressive, functional interface that gets out of the way- Built for high-performance and efficiency- Configurable and modular, take the bits you need- Full support for Python 2.x/3.x- Evented networking and IO using Gevent## InstallationDisco was built to run both as a generic-use library, and a standalone bot toolkit. Installing disco is as easy as running `pip install disco-py`, however some extra packages are recommended for power-users, namely:|Name|Reason||----|------||requests[security]|adds packages for a proper SSL implementation||ujson|faster json parser, improves performance||erlpack (2.x), earl-etf (3.x)|ETF parser run with the --encoder=etf flag||gipc|Gevent IPC, required for autosharding|## ExamplesSimple bot using the builtin bot authoring tools:```pythonfrom disco.bot import Bot, Pluginclass SimplePlugin(Plugin):# Plugins provide an easy interface for listening to Discord events@Plugin.listen('ChannelCreate')def on_channel_create(self, event):event.channel.send_message('Woah, a new channel huh!')# They also provide an easy-to-use command component@Plugin.command('ping')def on_ping_command(self, event):event.msg.reply('Pong!')# Which includes command argument parsing@Plugin.command('echo', '<content:str...>')def on_echo_command(self, event, content):event.msg.reply(content)```Using the default bot configuration, we can now run this script like so:`python -m disco.cli --token="MY_DISCORD_TOKEN" --run-bot --plugin simpleplugin`And commands can be triggered by mentioning the bot (configured by the BotConfig.command\_require\_mention flag):![](http://i.imgur.com/Vw6T8bi.png)
Package: discord2
A fork of discord.py. Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.What Happened to Discord.py?Rapptz, also known as Danny, the maintainer and core developer of discord.py will no longer be updating it. Here’s hisFull explanationand anFAQ.Pycord v1.7.3 is the same as discord.py v1.7.3, however, Pycord v2.0 will support newer features of the API such as slash commands, context menus, scheduled events, timeouts, and others.Key FeaturesModern Pythonic API usingasyncandawait.Proper rate limit handling.Optimised for both speed and memory usage.Full Application Command SupportInstallingPython 3.8 or higher is requiredTo install the library without full voice support, you can just run the following command:# Linux/macOSpython3-mpipinstall-Upy-cord# Windowspy-3-mpipinstall-Upy-cordOtherwise to get voice support you should run the following command:# Linux/macOSpython3-mpipinstall-U"py-cord[voice]"# Windowspy-3-mpipinstall-Upy-cord[voice]To install additional packages for speedup, run the following command:# Linux/macOSpython3-mpipinstall-U"py-cord[speed]"# Windowspy-3-mpipinstall-Upy-cord[speed]To install the development version, do the following:$gitclonehttps://github.com/Pycord-Development/pycord$cdpycord$python3-mpipinstall-U.[voice]Optional PackagesPyNaCl(for voice support)aiodns,brotlipy,cchardet(for aiohttp speedup)orjson(for json speedup)Please note that while installing voice support on Linux, you must install the following packages via your preferred package manager (e.g.apt,dnf, etc) BEFORE running the above commands:libffi-dev (orlibffi-develon some systems)python-dev (e.g.python3.10-devfor Python 3.10)Quick Exampleimportdiscordbot=discord.Bot()@bot.slash_command()asyncdefhello(ctx,name:str=None):name=nameorctx.author.nameawaitctx.respond(f"Hello{name}!")@bot.user_command(name="Say Hello")asyncdefhi(ctx,user):awaitctx.respond(f"{ctx.author.mention}says hello to{user.name}!")bot.run("token")Traditional Commands Exampleimportdiscordfromdiscord.extimportcommandsbot=commands.Bot(command_prefix=">")@bot.command()asyncdefping(ctx):awaitctx.send("pong")bot.run("token")You can find more examples in the examples directory.Note: Make sure you do not reveal your bot token to anyone, it can grant access to your bot.LinksDocumentationOur Official Discord ServerOfficial Discord Developers ServerUnofficial Discord API Server
Package: discord4py
A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.Why i forked this?The original discord.py library was stopping development so i forked it and i will be adding updates.
This does not mean its the new offical library but I wanted to do it because i use dpy almost every day the new name isDiscord4PyKey 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-Udiscord.py# Windowspy-3-mpipinstall-Udiscord.pyOtherwise to get voice support you should run the following command:# Linux/macOSpython3-mpipinstall-U"discord.py[voice]"# Windowspy-3-mpipinstall-Udiscord.py[voice]To install the development version, do the following:$gitclonehttps://github.com/Rapptz/discord.py$cddiscord.py$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 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')client=MyClient()client.run('token')Bot Exampleimportdiscordfromdiscord.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 Server(Will change once i make the new discord)Discord API(Will change once i make the new discord)
Package: discord-advert-framework
The Discord advertisement framework is a Python based automatic application that allowseasy periodic advertisement/shillingon Discord.Guide / UsageInstructions can be foundhere.HelpNeed help? Contact me in myDiscord server.Key featuresAutomatic periodic and scheduled messages to multiple servers and channels,Error checking and recovery,Message logging, invite link tracking & statisticsMulti-account supportGraphical Interface (GUI) / Console (script)Easy to setupMuch moreInstallationDAF can be installed though command prompt/terminal using the bottom commands.Pre-requirement:Python (minimum v3.9 and currently max 3.11; 3.12 support is pending).Main packagepip install discord-advert-frameworkVoice Messaging / AUDIOpip install discord-advert-framework[voice]SQL loggingpip install discord-advert-framework[sql]Chrome browser integrationpip install discord-advert-framework[web]All of the above (full package)pip install discord-advert-framework[all]
Package: discord.aio
discord.aio is an asynchronous Discord API wrapperCurrently under very early developmentPython 3.6+ only.DocumentationYou can find the module documentation here:documentationInstallationWith pip:pip3 install discord.aioFrom source:git clonehttps://github.com/Ryozuki/discord.aio&& cd discord.aio && pip3 install .Local developmentgit clonehttps://github.com/Ryozuki/discord.aiocd discord.aio && pip3 install-e.Example botimportasyncioimportosimportloggingfromdiscordaioimportDiscordBotlogging.basicConfig(level='DEBUG',format='%(asctime)s-%(name)s-%(levelname)s:%(message)s')logger=logging.getLogger('my_lovely_bot')if__name__=='__main__':TOKEN=os.environ['DISCORD_TOKEN']bot=DiscordBot(TOKEN)@bot.event()asyncdefon_ready():logger.info('Connected!')logger.info(f'My username is{bot.user}')@bot.event('on_message')# You can also use a custom function name.asyncdeffoo_bar(message):logger.info(f'{message.author}:{message.content}')bot.run()Hereyou can find a more extensive example.TODOAdd compression supportAdd bot shards supportHandle ISO8601 timestampMake the DiscordBot methods better.
Package: discord-analyzer
Discord AnalyzerA command-line tool for scanning and analyzing Discord servers, displaying several statistics in the form of tables and charts.FeaturesServer scanningA group of channels from a server can be selected to be scanned.Scans include all the messages in the selected channels including other relevant information (reactions, mentions, etc...).The scans can later be updated by scanning only the new messages.AnalysisAfter the scan is completed, an analysis is performed, compiling all relevant information for each user, channel, emoji and the server.Analysis do not contain the messages' text, so they can be safely shared.Importing and ExportingScans and analysis can be exported and imported to/from JSON files.Data visualizationTables and charts can be generated, displaying metrics and ranks.Metrics analyzed include:MessagesCharacters typedCharacters per messageEmoji usedReactionsMentionsRepliesLinksAttachmentsMessages per hour of the dayMessages per day of the weekSome filters can be applied to the data displayed (e.g. column selection, user roles)Installation and UsageTo install Discord Analyzer run:pip install discord-analyzerTo execute run:discord-analyzer
Package: discord-api.py
discord-api.pyintroductionThis is discord api wrapper.Easy to create a botsetupdiscord-apisetupmainMore fastIf you are not using windows and have installed cpython. I recommend using this.pipinstalldiscord-api.py[speed]extensionIf you want to create extention module.Please do like this name.discord-api-{name}low wrapperIf you want to use low wrapper, please watchthis.samplefromdiscord_apiimportClient,Commandclient=Client(log=False)client.add_command(Command("ping","pong."))@client.eventasyncdefon_ready():print("ready")@client.eventasyncdefon_interaction(i):awaiti.send("Pong!",True)client.run("token")licenseWatch aLICENSE!supportDiscord server
Package: discord-app
Discord Interaction Application framework for PythonIn early development.The specification and documentation may change without notification.Any new ideas are welcomed.AFlaskbased Discord Application framework.System RequirementsPython 3.9+(Recommended)virtualenvInstall from PyPIInstall and update usingpip:$pipinstalldiscord-appKnown LimitationAfter command specification updated (including new command), Discord clients may require up to an hour to update its command list.Sample Server Application#!/usr/bin/env python3# app.pyimportdiscord_appfrom.importapp_configPORT="8080"app=discord_app.Application.from_basic_data(id=app_config.APPLICATION_ID,public_key=app_config.PUBLIC_KEY,bot_token=app_config.BOT_TOKEN,# Set Discord interaction endpoint URL to http(s)://<YOUR-ADDRESS>:<PORT>/<ENDPOINT>endpoint="/api/discord/command")app._flask.testing=Trueapp._logger.setLevel(logging.DEBUG)@app.application_command(options=discord_app.ApplicationCommand(name="version",name_localizations={"zh-TW":"顯示程式版本"},type=discord_app.ApplicationCommandType.CHAT_INPUT,description="Show application version",description_localizations={"zh-TW":"顯示程式版本"}),register_on_change=True# Register command on specification change or is new command.)defshow_version(_:discord_app.InteractionRequest)->discord_app.InteractionResponse:returndiscord_app.InteractionResponse(type=discord_app.InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE,data=discord_app.InteractionResponseMessage(content="test application/0.0.1"))app.run(host="0.0.0.0",port=PORT)$python3app.pyLinksOfficial API Documentation
Package: discord-argparse
discord_argparseProvides support for arbitrarily ordered arguments in commands for thediscord.pylibrary.param_converter=ArgumentConverter(turns=RequiredArgument(int,# follows the rules of a converter in discord.pydoc="The number of turns this quiz has.",default=10),images=OptionalArgument(bool,doc="(Dis-)allow image questions.",default=True),voice_channel=OptionalArgument(discord.VoiceChannel))@bot.command()asyncdefquiz(ctx,name:str,*,params:param_converter=param_converter.defaults()):awaitctx.send("Turns:{0}".format(params['turns']))@quiz.errorasyncdefquiz_error(ctx,error):ifisinstance(error,InvalidArgumentValueError):awaitctx.send("Invalid argument value for parameter{0}".format(error.name))elifisinstance(error,UnknownArgumentError):awaitctx.send("Unknown argument{0}".format(error.name))On your discord server, the commands can be invoked like this:!quiz pokemon
    → will raise a MissingRequiredArgument exception

!quiz pokemon turns=2
    → args["images"] will be True

!quiz pokemon turns=2 images=falseInstallationInstallation is available via pip:pip install discord_argparseDocumentationInitialize anArgumentConverteras in the example above, annotate a
keyword-only function argument in your command with the instance and,
optionally, set its default value by using the.defaults()method. Setting a
default value can be omitted if you use required arguments (otherwise it will
raise aMissingRequiredArgumentexception).Inside the command, you can access the arguments as a dict.Custom help formatterBy using a custom help formatter, you can send a list of all arguments to the
users of your bot. An example output, after sending!help quizto the bot,
might look like this:!quiz <name> <params>

Starts a quiz.
This command will start a quiz.

Example usage: !quiz pokemon turns=12 images=false

Arguments:
    turns           The number of questions this quiz has.
    images          (Dis-)allow image questions.
    voice_channelTo make use of the argument list, create a customhelp
commandand override thesend_command_helpfunction like this:asyncdefsend_command_help(self,command):self.add_command_formatting(command)forname,paramincommand.clean_params.items():ifisinstance(param.annotation,da.ArgumentConverter):arguments=param.annotation.argumentsifnotarguments:continueself.paginator.add_line("Arguments:")max_size=max(len(name)fornameinarguments)forname,argumentinarguments.items():entry="{0}{1:<{width}}{2}".format(self.indent*" ",name,argument.doc,width=max_size)self.paginator.add_line(self.shorten_text(entry))self.paginator.close_page()awaitself.send_pages()You might also want to set theusageparameter of thecommand()function
decorator to display a better usage string, especially when using theArgumentConvert.defaults()method.
Package: discord-better-help
Discord better helpCreated by Steven Shrewsbury (stshrewsburyDev)An extension module fordiscord.pyto make setting up a help command easier.Notices:This module was based off ofdiscord-pretty-helpbyStroupBSlayen.This module was designed fordiscord.py1.7+ but may work with older versions, use at your own risk however.Installation:Install with pip:pip install discord-better-helpUpdate with pip:pip install discord-better-help --upgradeInstall from source:python setup.py installLinks:GitHub repoPyPi project pageDocumentationMy website