Saravanan666/pypi-org huggingface dataset:
Package: display-session
display-sessionis an MIT licensed Python package that provides easy ANSI formatting and utility to Python’s built in print statement.This project stemmed from wanting better looking, more informative, and more engaging command line interfaces.There are three functions intended to be user-facing:header - print provided message with all other space as the provided justify_char. Serves as easy way to communicate seperate sections within logs.alert - simple print statement that maps numeric arg (-1, 0, 1) to bad, neutral, good. Serves as easy way to communicate sentiment of message.report - most complicated print statement. proceeds all messages with bylines, and if provided will run all provided functions at print time. intended to serve as a sort of heads-up-display for the command line. See example below.Simple comparison and examples:>>>print('This is how the builtin print function works')
This is how the builtin print function worksSimplest compelling usecase for display_session:>>>from display_session import DisplaySession
>>>display = DisplaySession('This is a byline')
>>>display.report('The byline proceeds any text input here')

# hard to show with markdown, but byline is also separately ANSI colored.
This is a byline  : The byline proceeds any text input hereMore complicated examples:>>>import datetime as dt
>>>import psutil

>>>from display_session import DisplaySession
>>>user = 'John'

>>>display = DisplaySession(byline='P R O G R A M - {}'.format(user),
                            byline_action=[dt.datetime.now, psutil.cpu_percent]
                            )
>>>display.report('User successfully logged in')
 P R O G R A M - John  // 2018-09-19 21:55:29.115387 // 9.1: User successfully logged in.
>>>display.report('User successfully logged out')
 P R O G R A M - John  // 2018-09-19 21:56:14.560489 // 7.8: User successfully logged out.Other capabilities:>>># lets signify to our users that we are entering a new section
>>>display.header('BEGINNING LEVEL 2', align='right')
______________________________________________________________________ BEGINNING LEVEL 2

>>># lets communicate by leveraging ANSI colors - our second arg maps to them in the method.
>>>display.alert('This message is good, so it should have a green color', 1)
This message is good, so it should have a green color
>>>
>>>display.alert('This message is bad, so it should have a red color', -1)
This message is bad, so it should have a red color
Package: display-timedelta
display-timedeltaSimple package for displaying timedeltas for human consumptionBasic usage example>>>fromdatetimeimporttimedelta>>>fromdisplay_timedeltaimportdisplay_timedelta>>>display_timedelta(timedelta(hours=25,seconds=3))'1 day, 1 hour, and 3 seconds'>>>display_timedelta(timedelta(0))'right now'
Package: displaytree
displaytree - python packagedisplaytreeis aPython packagethat allows us tovisualize our binarytree.Compatibility ​​​🐍​This package is compatible with bothPython 2andPython 3Install ​🖥️​pip install displaytreeUsage ​​📝​from displaytree import binarytreebinarytree(root_node, "right", "left", "value")The above python syntax prints the binary tree in the shape/structure of the created tree, hence helping us to visualize our created tree.There areFour argumentsthat should be passed:root_node- Pass the root node(also an object of the node class) of the created tree.right- Pass the pointer attribute that points to the right node as a string.left- Pass the pointer attribute that points to the left node as a string.value- Pass the value attribute of the node which you want to be printed in each node of the tree as a string.Features ​​​🔥​No need to for any modification in the original python code.You can use your own NODE class for creating and operating your binary tree.Thus, helping us to add as many attributes in the NODE class according our requirements.When a NODE is not present/NULL, it will be presented as ​​​❓​ in the tree representation.Equally spaced representation of the tree.Clean and elegant look for clear visualizationCreated with ​​​🧡​Operating Systems ​​​💾​Compatible with all major operating systems.Project links ​​​🔗​GithubPyPI
Package: display-video-360
Google Display & Video 360This package contains a nice and convienient class to
interface with the Display & Video 360 API.AuthenticationThe authentication can be done in two ways.With service account credentialsWith a credential file obtained via the implicit grant flowPlease use absolute paths at all times to point to the credentials.installationpip install display-video-360Examplesimportosfromdisplay_video_360.display_videoimportDisplayVideoif__name__=='__main__':frompathlibimportPathBASE_PATH=Path().resolve()service_account_file=os.path.join(BASE_PATH,'secrets','service_account.json')display_video=DisplayVideo(service_account_file)line_items=display_video.get_lineitems_for_advertiser('ADVERTISER_ID')advertisers=display_video.get_advertisers_for_partner('PARTNER_ID')
Package: dispmanx
DispmanX Bindings for PythonDocumentation|Python Package IndexUsageInstall with pip,pipinstalldispmanxThen try out this sample program usingpygame,fromrandomimportrandintimportpygamefromdispmanximportDispmanXdefrandom_color_with_alpha():returntuple(randint(0,0xFF)for_inrange(3))+(randint(0x44,0xFF),)display=DispmanX(pixel_format="RGBA")surface=pygame.image.frombuffer(display.buffer,display.size,display.pixel_format)clock=pygame.time.Clock()for_inrange(20):surface.fill(random_color_with_alpha())display.update()clock.tick(2)Next stop:the project's documentation.LicenseThis project is licensed under theMIT License— see theLICENSEfile for details.Final Note...and remember kids, have fun!
Package: disponibilidade-nfe
Disponibilidade NFeProjeto de Web scraping para verificar a disponibilidade dos Webservices de todas as Secretarias de Fazenda (Sefaz) emitente de Nota Fiscal Eletrônica (NFe) através do Portal Nacional da NFe:http://www.nfe.fazenda.gov.br/portal/disponibilidade.aspxInstalar$poetryinstallRodar testes$poetryruntoxExemplosfromdisponibilidade_nfe.nfeimportDisponibilidadeNFedisp_nfe=DisponibilidadeNFe()print(disp_nfe.get_status())Resultado:[{'autorizador': 'AM','autorizacao': 'verde','retorno_autorizacao': 'verde','inutilizacao': 'verde','consulta_protocolo': 'verde','status_servico': 'verde','tempo_medio': '-','consulta_cadastro': '','recepcao_evento': 'verde','ultima_verificacao': '23/11/2021 23:06:31'}, {'autorizador': 'BA','autorizacao': 'verde','retorno_autorizacao': 'verde','inutilizacao': 'verde','consulta_protocolo': 'verde','status_servico': 'verde','tempo_medio': '-','consulta_cadastro': 'verde','recepcao_evento': 'verde','ultima_verificacao': '23/11/2021 23:06:31'}, {...}]LicenseThis package is licensed underMIT license.
Package: disposable-email-domains
Disposable Email DomainsThis module provides a set of known disposable email domains.UsageThe blocklist is a Pythonsetcontaining all domains in the blocklist:>>>fromdisposable_email_domainsimportblocklist>>>'bearsarefuzzy.com'inblocklistTrueThe domains are guaranteed to be fully lowercased and stripped of whitespace.SourceThe source of this list is thedisposable-email-domainsproject.This module attempts to provide a mirror of that project as a Python module.If you feel a domain should or shouldn't be on the blocklist, you are
encouraged to make a pull request against thesource repository
Package: disposable-emails
disposable-emailsWeed out disposable email providers with ease 🚀InstallationYou can install this package using PyPI:pip3 install disposable-emailsThere are no dependencies. You don't need Django, Flask or any third-party API.How to useCheck an email:>>> from disposable_emails import is_disposable_email
>>> is_disposable_email('john.smith@mailforspam.com')
True
>>> is_disposable_email('john.smith@gmail.com')
FalseCheck a domain:>>> from disposable_emails import is_disposable_domain
>>> is_disposable_domain('temp-mail.com')
True
>>> is_disposable_domain('kremlin.ru')
FalseUsing Django?There is a form validator which you can use with forms:from django import forms
from disposable_emails.contrib.django import disposable_validator

class FooForm(forms.Form):
    email = forms.EmailField(
        label="Email",
        max_length=254,
        validators=[disposable_validator]
    )And with models:from django import models
from disposable_emails.contrib.django import disposable_validator

class FooModel(models.Model):
    email = models.EmailField(validators=[disposable_validator])CreditsThis package usesdisposableby @andreis as a source of disposable email services.ContributionsCode contributions are welcome! Just drop a pull request.
Package: disposable-email-validator
disposable-email-validatorinstallationpip install disposable-email-validatorusagefromdisposable_email_validatorimportis_disposable_emailis_disposable_email("some_email@inpwa.com")# Trueis_disposable_email("some_email@gmail.com")# Falseuploading new fake emails1) update file /disposable_email_validator/disposable_emails (pickle file)
2) increase version of the package in setup.py
3) upload updated package to pypi
4) change version of the package in backend repo
Package: disposable-mail-checker
Disposable Mail CheckerA simple Python library to check if an email address uses a disposable domain.InstallationYou can install the package using pip:pip install disposable-mail-checkerImportfrom disposable_mail_checker import is_disposable_mailCheck if an email address uses a disposable domainis_disposable = is_disposable_mail("example@disposable.com")

if is_disposable:
    print("The email address uses a disposable domain.")
else:
    print("The email address does not use a disposable domain.")You can also provide an optional list of additional disposable domains and an override flag:other_disposable_domains = ["example-domain.com", "another-disposable.net"]
is_disposable = is_disposable_mail("user@example-domain.com", other_disposable_domains, override=True)When the override flag is set to True, the function will exclusively use the provided other_disposable_domains list for checking disposable domains. This means that the default list of disposable domains included with the package will not be considered in the check. If override is False (or not provided), the other_disposable_domains list will be appended to the default list for checking.ContributingContributions are welcome! If you find a bug or want to add a new feature, please create an issue or submit a pull request on theGitHub repository.If you come across a disposable domain that is not in the current list and would like to contribute, you can generate a pull request with the new domain to be considered for inclusion. Follow these steps:Fork the repository on GitHub.Open thedisposable_domains.jsonfile in thedisposable-mail-checkerfolder.Add the new disposable domain to the JSON array. Make sure to follow the JSON format.Create a pull request to themainbranch of the original repository.Your contribution will be reviewed and, if approved, merged into the main repository.Thank you for helping to improve the library and its list of disposable domains!LicenseThis project is licensed under the MIT License - see the LICENSE file for details.AcknowledgmentsThe list of disposable domains used by this library is based on disposable-email-domains by
Ilya Volodarsky.NoteMake sure to replace"example@disposable.com"with a real example email address for your usage instructions.
Package: disposable-phonebook
# disposable-phonebookCollect “disposable” phone numbers from various internet sites that offer
“receive free SMS to an anonymous number” functionality.`bash $ dphonebook scrape[{"number":"+16462879071", "area": "New York", "provider":"receive-smss.com","last_message": 1652437175, "last_checked": 1652438795}, {"number": "+16466623058", "area": "New York", "provider":"receive-smss.com","last_message": 1652437776, "last_checked": 1652438796}] `This is useful to online service providers, who want to restrict usage of such numbers
on customer profiles, for security reasons (avoiding publicly available 2FA codes).## Quickstart`bash $ pip3 installdisposable-phonebook$ dphonebook scrape `See [docs](https://anroots.github.io/disposable-phonebook/) for further details.## Online APIThis project powers [disposable-phonebook.com](https://disposable-phonebook.com), where
a list of disposable numbers is available over a free HTTP API.## DevelopmentRequires Python 3.10`bash python3-mvenv venv source venv/bin/activate pip install-rrequirements-dev.txtpip install--editable. dphonebook--help`Install [Editorconfig](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) extensionInstall [pre-commit hooks](https://pre-commit.com/#install)### ReleasingReleases are uploaded automaticaly to pypi on new Git tag creation.Make sure [Changelog.md](Changelog.md) is updatedUpdate version number in [setup.py](setup.py)git tag 0.2.0## ContributionWant to add or fix something? Send a pull request.This project uses (with thanks):[python-phonenumbers](https://github.com/daviddrysdale/python-phonenumbers) for phone number
formatting and metadata[user-agents](https://github.com/intoli/user-agents) for UA list (refdphonebook/vendor/user-agents)## LicenseApache2 license (see: [LICENSE](LICENSE))
Package: disposition
disposition[!IMPORTANT]
This framework is in the early stages of planning/development. It is not yet available for use.dispositionis a Python-based framework for generating reports and plots with flexible and precise layouts.It usesstretchable(CSS Grid/Flexbox) for layouting andMatplotlibfor rendering.LicenseThis work is released under the MIT license. A copy of the license is provided in theLICENSEfile.
Package: disptrace
Disptrace traces Python code execution, generating HTML file to display
execused line of codes. The resulting HTML has navigation menu to
collapse function calls or hide paticuler modules and functions.UsageCreate disptrace.Disptrace object as trace module in Python standard
library, and invoke target function to be traced as follow:import disptrace
t = disptrace.DispTrace()
t.runfunc(myfunc)
with open("trace.html", "w") as f:
    f.write(t.render())DispTrace.render() method generates HTML string of the information.~/.disptrace fileYou can create ~/.disptrace file to specify default value of ignoremods
and ignoredirs in ConfigParser style ini file:[disptrace]
ignorepath=/usr/local/lib/python2.6/dist-packages/:/usr/lib/python2.6/plat-linux2
ignoremodule=sys, osignorepath is a list of directories whose modules or packages should be
ignored. Each path should deilmited by os.path.pathsep character (‘:’ in
Unixes, ‘;’ in Windows).ignoremodule list of modules or packages to ignore. Each modules should
be delimited by ‘,’ character.
Package: disputils
DisputilsDisputils provides some neat features to make your life as a bot developer easier.InstallInstall latest release fromPyPIvia pip:python3.6-mpipinstalldisputilsOr the freshest bleeding-edge code directly fromGitHubusing pip and git:python3.6-mpipinstall-Ugit+https://github.com/LiBa001/disputilsNoteA compatible version ofdiscord.pywill be installed automatically when
downloading with pip. However, you should still requirediscord.pyin
your own setup.py or requirements.txt file.FeaturesQuick overview of the available features.For all features there are two ways to use them.just discord.py and a basicdiscord.Clientdiscord.py commands extension (discord.ext.commands) and aBotIn the following examples we’re going to use the second way since it’s a bit easier.fromdisputilsimportBotEmbedPaginator,BotConfirmation,BotMultipleChoicePaginationSplit your content into multiple pages and use reactions to paginate through.@bot.command()asyncdefpaginate(ctx):embeds=[Embed(title="test page 1",description="This is just some test content!",color=0x115599),Embed(title="test page 2",description="Nothing interesting here.",color=0x5599ff),Embed(title="test page 3",description="Why are you still here?",color=0x191638)]paginator=BotEmbedPaginator(ctx,embeds)awaitpaginator.run()Multiple ChoiceLet the user decide. Provide multiple choice!@bot.command()asyncdefchoice(ctx):multiple_choice=BotMultipleChoice(ctx,['one','two','three','four','five','six'],"Testing stuff")awaitmultiple_choice.run()awaitmultiple_choice.quit(multiple_choice.choice)ConfirmationIs the user going to do something irreversible? Let him confirm first!@bot.command()asyncdefconfirm(ctx):confirmation=BotConfirmation(ctx,0x012345)awaitconfirmation.confirm("Are you sure?")ifconfirmation.confirmed:awaitconfirmation.update("Confirmed",color=0x55ff55)else:awaitconfirmation.update("Not confirmed",hide_author=True,color=0xff5555)RequirementsPython >= 3.6discord.py >= v1.0.0 (rewrite)
Package: dis-py
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-Udis-py# Windowspy-3-mpipinstall-Udis-pyOtherwise to get voice support you should run the following command:# Linux/macOSpython3-mpipinstall-U"dis-py[voice]"# Windowspy-3-mpipinstall-Udis-py[voice]To install the development version, do the following:$gitclonehttps://github.com/GearSolution/dis.py$cddis.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 ServerDiscord API
Package: dis-pydactyl
DisPydactylDisPydactyl is working fork of pydactyl. This module has been tested with the new Pterodactyl V1 API and is constantly being updated. If any problem arises make an issue on Github. This module still uses the pydactyldocumentationand a rewritten one will be coming soon!InstallationTo install this module simply run the commandpip install git+https://github.com/Dishit79/DisPydactyl.git#egg=Dis-pydactylExample of Account Creationclient=PterodactylClient('http://mypanel.com','API KEY')e=client.user.create_user(username,email,first_name,last_name,external_id=None,password=password,root_admin=False,language='en')print(e)return(True,e['attributes']['id'])
Package: dispyt
Dispyt ðŸ“šDispyt is an API wrapper for the Discord API [Python3].Tested in Python version 3.7.1.Latest version of the library is 0.0.1b.InstallationComing soon.This is a beta product! ðŸ˜²Be careful when using it, is a beta product eventually and it has some bugs.Documentation ðŸ“ƒComing Soon.Todo List ðŸ“‹All EventsBasic Error HandlingCommands Error EventsAll Users FunctionalAll Channels FunctionalAll Guilds Functional
Package: disq
# disqA [disque](https://github.com/antirez/disque) Python client.[ ![Codeship Status for ryansb/disq](https://codeship.com/projects/d4928e10-d02e-0132-8d50-1a50b84b9184/status?branch=master)](https://codeship.com/projects/76941)Under the hood, this used redis-py's HiRedis implementation and switches outRedis commands with the disque ones.## Usage```from disq import Disquec = Disque() # connects to localhost:7711 by defaultc.addjob('queuename', 'body') # takes all ADDJOB arguments# b'DI... job id ...SQ'c.getjob('queuename')# [[b'queue', b'DI3971f14a850d9e5b3ca5c881e3dd1ba2a34277b505a0SQ', b'body']]```## StatusThis library is ready to use with single or multi-node clusters. All commandsare implemented except for `QSTAT` and `SCAN`, which don't exist in the disqueserver yet.## Features### Connection BalancingAs specified in the [disque README][clients], disq directs read and ackoperations (GETJOB, ACKJOB, FASTACK) to whichever member of the cluster it hasreceived the most jobs from in the last N seconds.To change the length of the job count window, use the `job_origin_ttl_secs`argument when creating the disque client.## LicenseThis code is released under the ASL2.0, see the `LICENSE` file for details.## ThanksEnormous thanks to Salvatore Sanfilippo (antirez) for writing[disque](https://github.com/antirez/disque) and[Andy McCurdy](https://github.com/andymccurdy), author of the[redis-py](https://github.com/andymccurdy/redis-py) module.[clients]: https://github.com/antirez/disque#client-libraries
Package: disque-py
# Disque-pyA [disque](https://github.com/antirez/disque) Python client.Under the hood, this used redis-py's HiRedis implementation and switches outRedis commands with the disque ones.## Usage```from disque import DisqueAlphac = DisqueAlpha()c.addjob('queuename', 'body') # takes all ADDJOB arguments# b'DI... job id ...SQ'c.getjob('queuename')# [[b'queue', b'DI3971f14a850d9e5b3ca5c881e3dd1ba2a34277b505a0SQ', b'body']]```## Status- [x] Server commands (slowlog, clients, etc)- [x] ADDJOB- [x] GETJOB- [ ] ACKJOB- [ ] FASTACK
Package: disquest-utils
DisQuest-UtilsA set of async utils for DisQuestInfoDisQuest is an base system for storing and giving users on Discord xp. This is just the base set of coroutines needed in order to use DisQuest. DisQuest uses PostgreSQL. Alternatively, if you plan on passing in your own URI (which probably u would have to), DisQuest technically also supports MySQL/MariaDB. For MySQL/MariaDB, useasyncmyinstead ofasyncpgInstallingWith Asyncpg (default):pipinstalldisquest-utilsWith Asyncmy:pipinstalldisquest-utils[asyncmy]URI ConnectionsDisQuest-Utils accepts URI connections in order to connection to the database. It is recommended to have python-dotenv installed, and then add the credentials as needed. The example below are only for examples, and adjust them as neededAsyncpg:CONNECTION_URI="postgresql+asyncpg://user:password@host:port/dbname[?key=value&key=value...]"Asyncmy:CONNECTION_URI="mysql+asyncmy://user:password@host:port/dbname[?key=value&key=value...]"Now pass the variableCONNECTION_URIas the uri arg of any method, and you should be ready to go
Package: disrank
DisrankA lib to make good looking discord profile cardUsagefromdisrank.generatorimportGeneratorargs={'bg_image':'',# Background image link'profile_image':'',# User profile picture link'level':1,# User current level'current_xp':0,# Current level minimum xp'user_xp':10,# User current xp'next_xp':100,# xp required for next level'user_position':1,# User position in leaderboard'user_name':'Name#0001',# user name with descriminator'user_status':'online',# User status eg. online, offline, idle, streaming, dnd}image=Generator().generate_profile(**args)# In a discord commandfile=discord.File(fp=image,filename='image.png')awaitctx.send(file=file)Make sure to run the generate part in an executor.
Any help needJoin here