Saravanan666/pypi-org huggingface dataset:
Package: ircodec
ircodecA Python package that simplifies sending and receiving IR signals for the Raspberry Pi using pigpiod.Requirementspigpio daemonpigpio Python packagepip install pigpioInstallFor Raspbian 9 (stretch)pip install ircodecFor othersgit clone git@github.com:kentwait/ircodec.git
cd ircodec
python setup.py installQuickstart# Create a CommandSet for your remote control# GPIO for the IR receiver: 23# GPIO for the IR transmitter: 22fromircodec.commandimportCommandSetcontroller=CommandSet(emitter_gpio=22,receiver_gpio=23,description='TV remote')# Add the volume up keycontroller.add('volume_up')# Connected to pigpio# Detecting IR command...# Received.# Send the volume up commandcontroller.emit('volume_up')# Remove the volume up commandcontroller.remove('volume_up')# Examine the contents of the CommandSetcontroller# CommandSet(emitter=22, receiver=23, description="TV remote")# {}# Save to JSONcontroller.save_as('tv.json')# Load from JSONnew_controller=CommandSet.load('another_tv.json')Acknowledgmentpigpio Python examplesContactkentkawashima@gmail.comLicense: MIT License
Package: ircrobots
ircrobotsrationaleI wanted a very-bare-bones IRC bot framework that deals with most of the
concerns one would deal with in scheduling and awaiting async stuff, e.g.
creating and awaiting a new task for each server while dynamically being able
to add/remove servers.usageseeexamples/for some usage demonstration.contactCome say hi at#irctokenson irc.libera.chat
Package: ircstates
ircstatesrationaleI wanted a bare-bones reference implementation of taking byte input, parsing it
into tokens and then managing an IRC client session state from it.with this library, you can have client session state managed for you and put
additional arbitrary functionality on top of it.usagesimpleimportircstatesserver=ircstates.Server("freenode")lines=server.recv(b":server 001 nick :hello world!\r\n")lines+=server.recv(b":nick JOIN #chan\r\n")forlineinlines:server.parse_tokens(line)chan=server.channels["#chan"]socket to stateimportircstates,irctokens,socketNICK="nickname"CHAN="#chan"HOST="127.0.0.1"PORT=6667server=ircstates.Server("freenode")sock=socket.socket()sock.connect((HOST,PORT))def_send(raw:str):sock.sendall(f"{raw}\r\n".encode("utf8"))_send("USER test 0 * test")_send(f"NICK{NICK}")whileTrue:recv_data=sock.recv(1024)recv_lines=server.recv(recv_data)forlineinrecv_lines:server.parse_tokens(line)print(f"<{line.format()}")# user defined behaviors...ifline.command=="PING":_send(f"PONG :{line.params[0]}")get a user's channels>>>server.users{'nickname':User(nickname='nickname')}>>>user=server.users["nickname"]>>>userUser(nickname='nickname')>>>user.channels{'#chan'}get a channel's users>>>server.channels{'#chan':Channel(name='#chan')}>>>channel=server.channels["#chan"]>>>channelChannel(name='#chan')>>>channel.users{'jess':ChannelUser(#chan jess)}get a user's modes in channel>>>channel=server.channels["#chan"]>>>channel_user=channel.users["nickname"]>>>channel_userChannelUser(#chan jess +ov)>>>channel_user.modes{'o','v'}contactCome say hi at#irctokenson irc.libera.chat
Package: ircstyle
ircstyleircstyleis a Python 3.7+ package for applying and stripping formatting from IRC messages.
Its primary purpose is for use with Python based IRC bots.LinksCaptionLinkRepohttps://github.com/impredicative/ircstyle/Changeloghttps://github.com/impredicative/ircstyle/releasesPackagehttps://pypi.org/project/ircstyle/DonationBTC/LTC/ETH/DOGEUsageThis package provides two primary methods,styleandunstyle.StyleThis method is used to style text with IRC attribute and / or color codes.importircstyleircstyle.style('Hi there',fg='blue',bg='white',bold=True,italics=True,underline=True,reset=True)'\x0302,00\x02\x1d\x1fHi there\x0f'ircstyle.style('Hello World!',fg='green',reset=False)'\x0303Hello World!'ircstyle.style('ATTENTION!',bold=True,underline=True)'\x02\x1fATTENTION!\x0f'ircstyle.style('Something',bg=ircstyle.colors.teal)'\x0301,10Something\x0f'UnstyleThis method is used to strip all formatting control codes from IRC messages so that you can safely use the contents outside of IRC in a printable format.importircstyleircstyle.unstyle('\x02message\x0f')'message'ircstyle.unstyle('message')'message'
Package: irctokens
irctokensrationalethere's far too many IRC client implementations out in the world that do not
tokenise data correctly and thus fall victim to things like colons either being
where you don't expect them or not being where you expect them.usageinstallation$ pip3 install irctokenstokenisation>>>importirctokens>>>line=irctokens.tokenise(..."@id=123 :jess!~jess@hostname PRIVMSG #chat :hello there!")>>>>>>line.tags{'id':'123'}>>>line.source'jess!~jess@hostname'>>>line.hostmaskHostmask(nickname='jess',username='~jess',hostname='hostname')>>>line.command'PRIVMSG'>>>line.params['#chat','hello there!']formatting>>>irctokens.build("USER",["user","0","*","real name"]).format()'USER user 0 * :real name'statefulbelow is an example of a fully socket-wise safe IRC client connection that will
connect and join a channel. both protocol sending and receiving are handled by
irctokens.importirctokens,socketNICK="nickname"CHAN="#channel"d=irctokens.StatefulDecoder()e=irctokens.StatefulEncoder()s=socket.socket()s.connect(("127.0.0.1",6667))def_send(line):print(f">{line.format()}")e.push(line)whilee.pending():e.pop(s.send(e.pending()))_send(irctokens.build("USER",["username","0","*","real name"]))_send(irctokens.build("NICK",[NICK]))whileTrue:lines=d.push(s.recv(1024))iflines==None:print("! disconnected")breakforlineinlines:print(f"<{line.format()}")ifline.command=="PING":to_send=irctokens.build("PONG",[line.params[0]])_send(to_send)elifline.command=="001":to_send=irctokens.build("JOIN",[CHAN])_send(to_send)contactCome say hi at#irctokenson irc.libera.chat
Package: irc-toolkit
irc-toolkitAn IRC client toolkit in Python.Installation$pipinstallirc-toolkitUsageimportasyncioimportirctkclassBot:asyncdefconnect(self,hostname,port=6697,secure=True):client=irctk.Client()client.delegate=selfawaitclient.connect(hostname,port,secure)defirc_registered(self,client):channel=client.add_channel('#test')channel.join()defirc_private_message(self,client,nick,message):ifmessage=='ping':nick.send('pong')defirc_channel_message(self,client,nick,channel,message):ifmessage=='ping':channel.send('{}: pong'.format(nick))if__name__=='__main__':bot=Bot()loop=asyncio.get_event_loop()loop.create_task(bot.connect('chat.freenode.net'))loop.run_forever()
Package: ircutils3
IRCUtils is a Python framework for communicating with the  IRC protocol.
It’s designed for ease of use for anything you’d need. It also has fast
and simple support for writing IRC bots. Its features include:Asynchronous connection managementAbstraction of the IRC protocolSimple bot creationSSL connection supportEasy text formattingAutomatic tracking of client nickname changesAutomatic channel trackingCTCP compatibilityAdvanced message handlingBasic ident serverHome page:http://dev.guardedcode.com/projects/ircutils/Documentation:http://dev.guardedcode.com/docs/ircutils/
Package: irdap
IRDAP (IRDIS Data reduction for Accurate Polarimetry) is a highly-automated end-to-end pipeline to reduce SPHERE-IRDIS polarimetric data that is written for Python 3.6 and 3.7.Copyright (C) 2019 R.G. van HolsteinFull documentation:https://irdap.readthedocs.ioFeedback, questions, comments: send an e-mail toRob van Holstein.When publishing data reduced with IRDAP, please citevan Holstein et al. (2020). For data in pupil-tracking mode please additionally citevan Holstein et al. (2017).IRDAP is distributed under the GNU General Public License v3. See theLICENSE filefor the precise terms and conditions.
Package: ireadlogs
ireadlogsThis is a small python module that parses and analyzes logs such asftp://ita.ee.lbl.gov/traces/NASA_access_log_Aug95.gzavailable at NASA-FTP (ftp://ita.ee.lbl.gov/traces/), and produces a JSON report with next information:Top requested pages and the number of requests made for eachPercentage of successful requests (anything in the 200s and 300s range)Percentage of unsuccessful requests (anything that is not in the 200s or 300s range)Top 10 unsuccessful page requestsThe top 10 hosts making the most requests, displaying the IP address and number of
requests made.For each of the top hosts, show the top 5 pages requested and the number of
requests for each pageThe log file contains malformed entries; for each malformed line, display an error
message and the line number.Command line options may alter the produced results with regards to the number of top hosts and pages,
the top hosts - pages breakdown and the reporting of errors.PrerequisitesYou needpython >= 3.6andvirtualenvinstalled in your system.InstallationCreate a python virtual environmentvirtualenv -p $(which python3) venvActivate it. venv/bin/activateInstall ireadlogs frompypi:pip install ireadlogs -UUsageireadlogs path_to_logfileGetting helpireadlogs -hCommand line optionsireadlogs [-h] [--pages PAGES] [--hosts HOSTS]
               [--hosts-breakdown HOSTS_BREAKDOWN] [--show-errors]
               logfile

positional arguments:
  logfile

optional arguments:
  -h, --help            show this help message and exit
  --pages PAGES         limits the top pages shown (default is 10)
  --hosts HOSTS         limits the top hosts shown (default is 10)
  --hosts-breakdown HOSTS_BREAKDOWN
                        limits the top pages per host breakdown (default is 5)
  --show-errors         if present show malformed line numbersBuildmake buildDistributemake distributeRun testsmake testInstall locally for devAfter creating and activating a python3.6+ virtualenv:pip install -e .
Package: iree-runtime-instrumented
IREE Python Runtime ComponentsThis package provides an API for running compiled IREE binaries and interfacing with the hardware-abstraction-layer.TracingExecution of calls against binaries can be traced for later replay (i.e. via
tools likeiree-run-module). This can be set up either explicitly or
via environment variables.To trace via environment variable, setIREE_SAVE_CALLSto a directory to dump
traces into. Each createdSystemContextwill result in onecalls.yamlfile (with an index appended to the stem for multiples). Any referenced
module binaries will be dumped into the same directory and referenced by the
YAML file.Explicit APItracer=iree.runtime.Tracer(some_dir)config=iree.runtime.Config(driver,tracer)...
Package: iregexp
I-Regexp CheckerIRegexpChecker is pushdown automaton that very quickly determines if a regular expression using a specified interoperable subset is syntactically correct.It supports theI-Regexpspecification.InstallpipinstalliregexpUsagefromiregexpimportcheckfromiregexpimporttoPCREsucceeded=check('[azioyy]*')## returns PCRE-compatible expressionregex=toPCRE('.*',anchor=True)
Package: ireiat
READMEPurposeWIPQuick startYou should be able to install the package withpip install ireiat.After which, you can just runireiatfrom a command-line!Runireiat --helpfor CLI options.For developersInstall dependenciesWe usepipenvfor package management and have done development on Windows exclusively.InstallpipenvInstall runtime libs:pipenv installInstall dev libs:pipenv install --devInstall pre-commit hooks:pipenv run pre-commit installBuild / commit yoursrcandtestsNote thatpre-commitpins versions of these tools with a hard-coded value, but
the versions used can be automatically updated by running:pipenv run pre-commit autoupdate.TestsUnit testsWe usepytestand note that test running has not been included in the pre-commit hooks.
Instead, tests (and test coverage) are expected to be reported as part of a continuous
integration (CI) suite, either as part of a build/deploy pipeline or via actions
in a version control provider.To run the tests on the command line:pipenv run pytestDocumentationWIP
Package: irekia
irekiaThis package allows you to communicate with the Open Data Euskadi REST API. Use theirekiaClient to generate
the convolutedOpen Data Euskadiquery strings and get the data you want.InstallationInstall it usingpipenv:$pipenvinstallirekiaUsage examplesImport the Client:fromirekiaimportClientResults for multiple families, or multiple content_types inside a family
(more information about the available families and content types can be foundhere:Client(['eventos','opendata']).get()Client('opendata',['opendata']).get()Full text search:Client().search('OpenData').get()Codified queries:Client('eventos','evento').filter(['eventStartDate.GTE.TODAY','eventTown.EQ.079']).get()Client().filter('contentName.EQ.20150929125668').get()Choose language for results:Client('eventos','evento').filter(['eventStartDate.GTE.TODAY','eventTown.EQ.079']).get(lang='eu')Changing results' limit (default is 100) and pagination:Client('eventos','evento').limit(20).get(page=5)Ordering of results:Client('opendata').order_by('-documentCreateDate').get()Use the client only to build a URL:Client('eventos', 'evento').order_by('eventStartDate').limit(20).get(page=2, url_only=True)For developersTo run tests:$pipenvinstall--dev&&pipenvshell
$tox
Package: irelease
ireleaseRelease your library by using the command:ireleaseorpyreleaseStar this repo if you like it! ⭐️Introductionirelease is Python package that will help to release your python package on both github and pypi.
A new release of your package is created by taking the following steps:Extract the version from theinit.py fileRemove old build directories such as dist, build and x.egg-infoGit pull (to make sure all is up to date)Get latest release version at githubCheck if the local (current) version is newer then the latest github release.1. Make new wheel, build and install package
 2. Set tag to newest version
 3. Push to git
 4. Upload to pypi (credentials for pypi required)InstallationInstall irelease from PyPI (recommended). irelease is compatible with Python 3.6+ and runs on Linux, MacOS X and Windows.It is distributed under the MIT license.Quick StartpipinstallireleaseAlternatively, install irelease from the GitHub source:gitclonehttps://github.com/erdogant/irelease.gitcdirelease
pythonsetup.pyinstallRun ireleaseGo to the directory where the package is you want to release and simply runrelease:$ireleaseThe following arguments are availble:# Github nameirelease-u<githubname># Package name your want to releaseirelease-p<packagename># Removing local builds:# 1: Yes# 0: Noirelease-c1# Verbosity messages:# 0: No messages# 1: Error only# 2: Warnings and above# 3: Regular messages and above# 4: Debug and above# 5: Trace and aboveirelease-v5# Twine path for to irelease at pypi. This is automatically determined if standard installation is performed.irelease-t'C://<username>/AppData/Roaming/Python/Python36/Scripts/twine.exe'Example:Your package to-be-published must have the correct structure. At least these files and folders are expected:<any_dirname>/├──<package_dir>/│├──__init__.py│├──package_name.py│├──...├──.gitignore├──LICENSE├──README.md├──requirements.txt├──setup.py└──...Example: releasing bnlearn package.bnlearn/├──bnlearn/│├──__init__.py│├──bnlearn.py├──.gitignore├──LICENSE├──README.md├──requirements.txt├──setup.pyGo to your destination dir and run release:$ireleaserelease with your specified arguments# Package can be specified:$bnlearn>irelease-pbnlearn# Username can be specified:$bnlearn>irelease-uerdogant# Cleaning of previous builds in directory can be disabled$bnlearn>irelease-c0Do not forget to enter some release information on github and mark your release number:Referenceshttps://github.com/erdogant/ireleaseMaintainerErdogan Taskesen, github:erdogantContributions are welcome.If you wish to buy me aCoffeefor this work, it is very appreciated :)
Package: irelia
IreliaA python wrapper for the Lolesports api that can be found here:https://vickz84259.github.io/lolesports-api-docs/.
With the exception of some functions that aren't in the original api, all of these functions have their functionality explained in the link above.Current Functionality:LeaguesgetLeagues()getTournamentFromLeague(leagueId)getStandings(tournamentId)EventsgetSchedule(leagueId, pageToken=None)getFullSchedule(leagueId, current=True)getEventDetails(matchId)getCompletedEvents(tournamentId)TeamsgetTeams(teamId)getAllTeams()Match DetailsgetWindow()To Do:Leagues:Events:getGames()getLive()Teams:Match Details:getFullGameWindow()getDetails()
Package: irembg
iRembgMODIFIED VERSION OF REMBG FOR PERSONAL USEInstallationInstall it from pypipipinstallirembgUsage as a cliRemove the background from a remote imagecurl-shttp://input.png|rembg>output.pngRemove the background from a local filerembg-opath/to/output.pngpath/to/input.pngRemove the background from all images in a folderrembg-ppath/to/inputsUsage as a serverStart the serverrembg-serverOpen your browser tohttp://localhost:5000?url=http://image.pngAlso you can send the file as a FormData (multipart/form-data):<form action="http://localhost:5000" method="post" enctype="multipart/form-data">
       <input type="file" name="file"/>
       <input type="submit" value="upload"/>
    </form>Usage as a libraryInapp.pyimportsysfromrembg.bgimportremovesys.stdout.buffer.write(remove(sys.stdin.buffer.read()))Then runcat input.png | python app.py > out.pngAdvance usageSometimes it is possible to achieve better results by turning on alpha matting. Example:curl-shttp://input.png|rembg-a-ae15>output.pngOriginalWithout alpha mattingWith alpha matting (-a -ae 15)Referenceshttps://arxiv.org/pdf/2005.09007.pdfhttps://github.com/NathanUA/U-2-Nethttps://github.com/pymatting/pymattingLicenseCopyright (c) 2020-presentDaniel GatisLicensed underMIT LicenseBuy me a coffeeLiked some of my work? Buy me a coffee (or more likely a beer)
Package: iremover
iremoverImage background removerRequirementspython: >3.7InstallationpipinstalliremoverUsage as a cliAfter installation, iiremover can be used simply by typingiremoverin the terminal window.Theiremovercommand has 3 subcommands, one for each input type:ifor filesiremover i path/to/input.png path/to/output.pngpfor foldersiremover p path/to/input path/to/outputsfor http servercurl -s "http://localhost:5000/?url=http://input.png" -o output.pngA reference about the main team can be obtained by using:iremover--helpAnd also about all the subcommands used:iremover<COMMAND>--helpUsage as a libraryInput and output as bytesfromiremoverimportremoveinput_path='input.png'output_path='output.png'withopen(input_path,'rb')asi:withopen(output_path,'wb')aso:input=i.read()output=remove(input)o.write(output)Input and output as a PIL imagefromiremoverimportremovefromPILimportImageinput_path='input.png'output_path='output.png'input=Image.open(input_path)output=remove(input)output.save(output_path)Input and output as a numpy arrayfromiremoverimportremoveimportcv2input_path='input.png'output_path='output.png'input=cv2.imread(input_path)output=remove(input)cv2.imwrite(output_path,output)How to iterate over files in a performatic wayfrompathlibimportPathfromiremoverimportremove,new_sessionsession=new_session()forfileinPath('path/to/folder').glob('*.png'):input_path=str(file)output_path=str(file.parent/(file.stem+".out.png"))withopen(input_path,'rb')asi:withopen(output_path,'wb')aso:input=i.read()output=remove(input,session=session)o.write(output)
Package: irene-pro
'irene-pro'This is my customized user interface which is rooted from tkinter package.nothing big that I did from here that is different from what already in tkinter, but I rather set my default parameters andstyles for those rooted to ttk, example Combobox.this is the first version, and later I will keep making extra-improvement including adding default icons to buttons and othercool stuffs until it will be large package or framework in coming years.=========how to use the package======from irene-pro import widgets, logiccreate buttonbutton = widgets.btn(master = root, text = 'send')button.pack(side = LEFT)create table guitable = widgets.Table_gui(parent = root)
Package: irene-pro1
'irene-pro'This is my customized user interface which is rooted from tkinter package.nothing big that I did from here that is different from what already in tkinter, but I rather set my default parameters andstyles for those rooted to ttk, example Combobox.this is the first version, and later I will keep making extra-improvement including adding default icons to buttons and othercool stuffs until it will be large package or framework in coming years.=========how to use the package======from irene-pro import widgets, logiccreate buttonbutton = widgets.btn(master = root, text = 'send')button.pack(side = LEFT)create table guitable = widgets.Table_gui(parent = root)
Package: iResign
iResigniResign is a tool for recodesigning iOS applications.  There are many
scripts with similar functionality but iResign is my very own bicycle.The script written just for fun. I just want to print some useful info
during recodesigning and this script does it well! Moreover, it’s Python
so you can easy to extend it in your own way.How to use?I think that’s enough to look at this command-line interface:usage: iresign.py [-h] [-d] [-v] app provisioning_profile [identity]

iResign is a tool for recodesigning iOS applications.

positional arguments:
  app                   the path to the iOS application file
  provisioning_profile  the path to the provisioning profile
  identity              the signing identity

optional arguments:
  -h, --help            show this help message and exit
  -d, --dryrun          test posibility of recodesigning
  -v, --verbose         show info about provisioning profilesFor instance, you can do something like this:$ iresign.py MyProject.app MyProvision.mobileprovision "iPhone Developer"How to install?$ pip install iResignLinkssource codeChangelogHere you can see the full list of changes between each iResign release.Version 0.2.2Released on February 04, 2014.Fixed broken execution with renamed app file.Version 0.2.1Released on November 10, 2013.Check for APS environment before printing, since not all provisions have it.Version 0.2Released on September 02, 2013.Change command fromiresigntoiresign.pysince I usescriptsnode now insteadentry_points.Version 0.1Released on August 23, 2013.First public release.
Package: ireval
irevalThis Python package provides an implementation of the most common information retrieval (IR) metrics.
Our goal is to return the same scores astrec_eval.
We achieve this by extensively comparing our implementations across many different datasets with their results.irevalcan be installed viapip install irevalImplemented metricsThe following metrics are currently implemented:NameFunctionDescriptionPrecision@kprecision_at_kPrecision is the fraction of retrieved documents that are relevant to the query. Precision@k considers only the documents with the highestkscores.Precision@k%precision_at_k_percentPrecision is the fraction of retrieved documents that are relevant to the query. Precision@k% considers only the documents with the highestk% scores.Recall@krecall_at_kRecall is the fraction of the relevant documents that are successfully retrieved. Recall@k considers only the documents with the highestkscores.Recall@k%recall_at_k_percentRecall is the fraction of the relevant documents that are successfully retrieved. Recall@k% considers only the documents with the highestk% scores.Average precisionaverage_precisionAverage precision is the area under the precision-recall curve.R-precisionr_precisionR-Precision is the precision after R documents have been retrieved, where R is the number of relevant documents for the topic.Usageimportirevalrelevancies=[1,0,1,1,0]scores=[0.1,0.4,0.35,0.8,.25]p5=ireval.precision_at_k(relevancies,scores,5)p5pct=ireval.precision_at_k_percent(relevancies,scores,5)r5=ireval.recall_at_k(relevancies,scores,5)r5pct=ireval.recall_at_k_percent(relevancies,scores,5)ap=ireval.average_precision(relevancies,scores)rprec=ireval.r_precision(relevancies,scores)