Saravanan666/pypi-org huggingface dataset:
Package: iirc
iirc packageThis package provides a way for adapting the different datasets (currently supportsCIFAR-100andImageNet) to
theiircsetup and theclass incremental learningsetup, and loading them in a standardized manner.The documentation and usage guide are availablehereHomepage|Paper|DocumentationInstallationyou can install this package using the following commandpip install iircDataset Downloading InstructionsCIFAR-100To be able to run the code withCIFAR-100derived datasets, just download the dataset from theofficial websiteand extract it, or use the./utils/download_cifar.pyfile.ImageNetIn the case of ImageNet, it has to be downloaded manually, and be arranged in the following manner:dataset foldertrainn01440764n01443537…valn01440764n01443537…ContributingIf you think you can help us make theiircpackage more useful for the lifelong learning
community, please don't hesistate to submit an issue or send a pull request.CitationIf you find this work useful for your research, this is the way to cite it:@misc{abdelsalam2021iirc,
title = {IIRC: Incremental Implicitly-Refined Classification},
author={Mohamed Abdelsalam and Mojtaba Faramarzi and Shagun Sodhani and Sarath Chandar},
year={2021}, eprint={2012.12477}, archivePrefix={arXiv},
primaryClass={cs.CV} }
Package: iisignature
This package provides tools for calculating the signature and log signature of a data stream.
These are summary statistics of piecewise linear paths, consisting of iterated integrals, inspired by rough path theory.
See <https://github.com/bottler/phd-docs/blob/master/iisignature.pdf> for documentation, the page
<https://github.com/bottler/phd-docs> for more information about the calculations,
and <https://github.com/bottler/iisignature> for source code.It is work in progress.PythonInstall with:pip install iisignatureDon’t install this package if you don’t have numpy > 1.7 installed.
On Windows, this package is not usable with Python 2.x.
For Python 3.5, 3.6, 3.7 and 3.8 on Windows, there are precompiled wheels available, you may need to dopip install wheelto use them.
On other platforms, you will need to be able to compile C++ extensions.
On a Mac, you will need to have installed Xcode and the Xcode command line tools before doing the installation.
The fastest, on-the-fly compiled versions of the log signature calculations are for Windows, Mac and Linux, on both 32 and 64 bit.Sometimes there are compile errors on a Mac, if this happens try:MACOSX_DEPLOYMENT_TARGET=10.9 pip install iisignatureUse without installing a released versionTo install the current “master” development version straight from github you can type:pip install git+git://github.com/bottler/iisignature>From a checkout of this repository, you can build the extension and run the tests using:python setup.py test>From a checkout of this repository, you can build the extension into this directory itself using:python setup.py build_ext --inplaceafter which you can use the package in Python in this directory, use the examples in theexamplesdirectory, or add this directory to your PYTHONPATH and then use the package in Python anywhere.AuthorsBenjamin GrahamJeremy ReizensteinThanksThis package includes BCH coefficients from Fernando Casas and Ander Murua.
<http://arxiv.org/abs/0810.2656>
Package: iitbbscliupdates
IIT Bhubaneswar CLIA CLI (Command Line Interface) App to get the following stuff related to institute:Holidays List for the current year.Top 30 headlines depicting the ongoings inside the institute.Biometric Attendance from ERP.Results from ERP (SGPAs, CGPA and Report Card).Installation$ pip install iitbbscliupdatesUsageAfter the installation, go to the command line :To get the help menu:$ iitbbscli --helpTo get the list of holidays:$ iitbbscli holidaysTo get the headlines:$ iitbbscli headlinesTo get the biometric attendance: ( Username and Password are the ones that are required in the ERP System )$ iitbbscli attendanceTo get results of examinations:$ iitbbscli result
Package: iitb-login
IITB LOGINThis package consists a login script for headless login tointernet.iitb.ac.inon any of the iitb servers.It uses ssh key to encrypt your credentials safely for hastle-free login.Installpip install iitb-loginshould install the script.Works strictly on python 3.x versions. Does not support python 2.7 or olderIf you are on older OS like ubuntu 16.04 or older and not using Anaconda3 installation already, It has default python to python 2.7, thus first install pip3 withsudo apt install python3-pipthen this script withpip3 install iitb-loginUsageFirst time using ssh key$ iitb login      # to login. Enter username and password when prompted
# Enter username: username
# enter password: 
# Logged In As :  username
# Your IP:        10.119.xxx.xxx

# Encrypting with key:   /home/username/.ssh/<ssh-key-name>
# This Script uses your ssh key to encrypt credentials
# Save credentials:  [y/N]: y
# Credentials written to file: ~/.ssh/iitb_login_creds and can only be 
# decrypted with your ssh keyNext time onwards$ iitb login
# Logged In as username
# Your IP:     10.119.xxx.xxxOther Options$ iitb logout # to logout
$ iitb status # to check status of login
$ iitb        # to check status of login (default argument is status)
$ iitb reset  # to delete the saved encrypted credentialsIn case you use multiple ssh keysYou can select which key to use to encrypt the credentials.$ iitb login
# Enter username: username
# Enter password
# Logged In as username
# Your IP:     10.119.xxx.xxx
# Keys available:
# [0]   /home/username/.ssh/id_rsa
# [1]   .ssh/google/google_compute_engine
# Select Key Index: 0
# This Script uses your ssh key to encrypt credentials
# Save credentials:  [y/N]: y
# Credentials written to file: ~/.ssh/iitb_login_creds and can only be 
# decrypted with your ssh keyHow It WorksScrapy SpiderScrapy Spider is used to loadhttps://internet.iitb.ac.in, parse the page, check passed argument parsed byArgumentParserand filling the form for subsiquentPOSTrequest for login and logout. Methodsget_username(response)is used to parse logged in user's username andget_ip(response)to parse machine's ip address.Paramikoparamiko.Agent()connects to exposed or forwardedssh-agent's api on the machine and use it's keys to sign a random string. The signature of the string changes with each ssh key. Hence, credentials encrypted with one key can only be decrypted by the same key.These encrypted keys can now be saved in a pickle file at~/.ssh/iitb_login_credswithout the risk of exposing the credentials.The keys fromparamiko.Agent().get_keys()have asign_ssh_data()method that is used to get the symetric key used for encryptng the credentials. As the signature returned is dependent of the private key being used for signing, the credentials are safe in a pickle dump and only be decrypted using the same key.Version Historyv 0.1.2First release. wrong ip address parsingv 0.1.3ip parsing patchedv 0.1.4Allows choosing ssh key in case of multiple keysv 0.2.1First Stable Release. README updated, setup.py url fixed.Future ChangesIn case the script becomes outdated and needs an update, feel free to make a pull request, or create an issue on github.
Package: iitb-oauth
Django Oauth2 Client to authenticate using IIT Bombay gymkhana SSOA small package for LDAP authentication using IIT Bombay gymkhana SSO.MotivationSSO can be a tricky thing to setup and bugs can be time consuming to debug. With people moving away from PHP to Django and node, this module can be used to quickly define custom callbacks that map the user details obtained from IIT Bombay gymkhana SSO to your Django user model. You get a quick and easy way to programatically create users once they are authenticated.Setting up in your appFor using this Django app, the following steps must be done:INSTALLED_APPS=[# ...'iitb_oauth'# ...]AUTHENTICATION_BACKENDS=[# ...'iitb_oauth.backend.OauthBackend'# ...]Step 2:  Add the oauth urls to the root website:urlpatterns=[# ...url(r'',include('iitb_oauth.urls')),# ...]Step 3: Add the LOGIN_URL and corresponding OAUTH config settings for your application.
Also add theFALLBACK_URLas a fallback in case OAuth authentication fails. Example:AUTH_PROFILE_MODULE=""# In case User has a user profile, specify the class hereLOGIN_URL="/login/"FALLBACK_URL="/"# In case user is not logged in or doesn't have enough permissions to view the contentCLIENT_ID='my-id'CLIENT_SECRET='<secret>'SCOPE='ldap'# ldap is necessary for login, pass only necessary scopes. seperate with spaces# Eg: SCOPE = 'profile ldap program'FIELDS='username'# username is mandatory field. seperate with commas# Eg: FIELDS = 'username,first_name,last_name,email,roll_number'REDIRECT_URI='<app_redirect_url>'# should end with /oauth/complete (the view is provided by this app)LOGIN_COMPLETE_REDIRECT='/some/url/in/your/app'LOGOUT_REDIRECT='/'# redirect to this URL after logout.MAPPINGS={# fields in User model: "LDAP attributes"# email mapped with username@iitb.ac.in if email is not in scope."first_name":"first_name","last_name":"last_name"}# In case a custom User model is defined, map fields in User model: "LDAP attributes"PROFILE_MAPPING={# Maps fields in user profile with response recieved from sso server.# AUTH_PROFILE_MODULE needs to be specified for this to work."roll_number":"roll_number"}UsageOnce you try to access some endpoint that has the@login_requireddecorator on top of it, you'll be redirected to the login URI that you defined. The user is authenticated using IITB gymkhana SSO and any other backends you provided. Upon successful authentication the url specified inLOGIN_COMPLETE_REDIRECTare called and the callbacks are used to shape your user into the form that you've provided. If authentication fails due to any reason or if the user does not have permission, he will be redirected to the URI specified inFALLBACK_URL.LicenseMIT
Package: iiyo
ï»¿iiyo is Sinhala Prastha Pirulu Theravili, Thun theravili Sinhalen, Sinhala Random Name genarateDeveloped by @dotLK from sasindu (c) 8:38 AM 1/31/2024Installationpip install iiyoAPI Usage>>> import iiyo>>> printquin(())>>> ['Avihinsaka uwathy','Nihada Mawatha ','Palu Niwahana']#maleNamewithaddress>>> print(malename())>>> ['Thilak jayasuriya','Cross Road','Colombo2']------Check out: https://www.youtube.com/@sasinduYou can use* github.com/dotlk/iiyo------------------------#ChangeLogAll notable changes to this project will be documented in this file___## Update Some Data- - First Release1.0.4 (3:44 AM 1/31/2024)___
Package: ijcache
IJCacheA fast Cache module written in Python.Usageimportijcache# Create a Bit-PLRU Cache object with 32 itemsca=ijcache.BPLRUCache(32)# Create a 2-Random Choices Cache object with 1024 itemsca=ijcache.TRCCache(1024)# Add one itemca.add('k1',1)# Lookup an itemca.lookup('k1')# Lookup and add in one methodval=ca.ensure('k2',lambda:tuple(range(0,256)))# Remove one itemca.remove('k1')# With decorator@ca.cachedeffib(x):ifx==1:return1ifx==0:return0returnfib(x-1)+fib(x-2)# Custom event handlersclassMyItem(ijcache.Item):defon_hit(self):print(f'Hit on{self.value}')defon_evict(self):print(f'Evict{self.value}')ca.add('k2',MyItem(2))v2=ca.lookup('k2').value# Want more? Just see `help(ca)`BenchmarksViewsourcebm1.txt1. bplru 1.2433981895446777, 14930352
2. lru 1.26200270652771, 14930352
3. functools 1.2794532775878906, 14930352
4. trc 1.292776107788086, 14930352
5. none 1.3914763927459717, 14930352bm2.txt1. trc 1.2627553939819336, 14930352
2. bplru 1.2631657123565674, 14930352
3. functools 1.2682974338531494, 14930352
4. lru 1.2897653579711914, 14930352
5. none 1.3929316997528076, 14930352bm3.txt1. bplru 1.2370176315307617, 14930352
2. functools 1.2376103401184082, 14930352
3. trc 1.2679831981658936, 14930352
4. lru 1.2752890586853027, 14930352
5. none 1.399376630783081, 14930352I can't direct say which one is best, but in 32 items, bplru is a not bad
choice. And in other cases, functools may better than my implementations,
because it with less wrappings.NotesSome codes refer tokarlmcguire/plru,
thank Karl!
Package: ijroi
ijroiReadsImageJROIs into numpy arrays. Use
it like:>>>importijroi>>>withopen("my_roi.roi","rb")asf:...roi=ijroi.read_roi(f)...>>>isinstance(roi,np.ndarray)Trueread_roi returns a Nx2 array, where each row is a (row, column) or (y,
x) pair.Based onLuis Pedro Coelho’sreadroi.py gist.Licenseijroi is offered under the MIT license.Contributorsijroi is maintained by Tim D. Smith. The core functionality was
implemented by Luis Pedro Coelho.
Package: ijroipytiff
ImageJ Region-of-Interest (ROI) Python Tiff exchange module.Python implementation of the ImageJ ROI API:https://imagej.nih.gov/ij/developer/source/ij/io/RoiDecoder.java.htmlThe underlying code is similar but not the same. Doing things in Python is different to how you would do it in Java. Many of the functions implemented in the Java API are not needed for the Python. The goal is provide coordinates and pixel masks from the main ROI types.This works with the Christoph Gohlke tifffile module:https://www.lfd.uci.edu/~gohlke/code/tifffile.py.htmlThis can be installed using pip through:
python -m pip install ijroipytiffRequirements:tifffilenumpyBackground:I wanted a way of efficiently encoding ROI into tiff files so that the information could be used interchangeably between ImageJ and Python.Example usage Encoder:fromijroipytiff.ij_roiimportRoifromijroipytiff.ijpython_encoderimportencode_ij_roi,RGB_encoderimportnumpyasnpimporttifffileim_stk=np.zeros((100,1,512,512)).astype(np.float32)data=[]roi_b=Roi(30,40,140,120,im_stk.shape[2],im_stk.shape[3],0)roi_b.name="Region 1"roi_b.roiType=1roi_b.position=10roi_b.strokeLineWidth=3.0roi_b.strokeColor=RGB_encoder(255,0,255,255)data.append(encode_ij_roi(roi_b))roi_b=Roi(130,140,140,120,im_stk.shape[2],im_stk.shape[3],0)roi_b.name="Region 1"roi_b.roiType=1roi_b.position=10roi_b.strokeLineWidth=3.0roi_b.strokeColor=RGB_encoder(255,0,0,255)data.append(encode_ij_roi(roi_b))metadata={'hyperstack':True,'slices':100,'channels':1,'images':100,'ImageJ':'1.52g','Overlays':data,'loop':False}tifffile.imsave("out4.tiff",im_stk,shape=im_stk.shape,imagej=True,ijmetadata=metadata)Example usage Decoder:importtifffileimportnumpyasnpfromijroipytiff.ij_roiimportRoifromijroipytiff.ijpython_decoderimportdecode_ij_roifromijroipytiff.ij_ovalroiimportOvalRoiimportpylabaspltpathname2="out4.tiff"tfile=tifffile.TiffFile(pathname2)img_shape=tfile.asarray().shapeoverlay_arr=[]if'Overlays'intfile.imagej_metadata:overlays=tfile.imagej_metadata['Overlays']ifoverlays.__class__.__name__=='list':#Multiple overlays and so iterate.foroverlayinoverlays:overlay_arr.append(decode_ij_roi(overlay,img_shape))else:#One overlay.overlay_arr.append(decode_ij_roi(overlays,img_shape))else:print('no Overlays present in file.')if'ROI'intfile.imagej_metadata:print('ROI')ROI=tfile.imagej_metadata['ROI']decode_ij_roi(ROI,img_shape)else:print("ROI not present in file.")#Shows how to create mask image.img=np.zeros((img_shape))foriinrange(0,overlay_arr.__len__()):ifoverlay_arr[i]!=False:x0=overlay_arr[i].xy0=overlay_arr[i].ywid=overlay_arr[i].widthhei=overlay_arr[i].heightimg[5,y0:y0+hei,x0:x0+wid]=overlay_arr[i].getMask()plt.imshow(img[5,:,:])plt.show()
Package: ika-control
ikaPython ≥3.8 driver and command-line tool for IKA products.Eurostar 60/100 control overhead stirrersMATRIX ORBITAL shakerRET control-visc hotplate/stirrerVacstar control vacuum pumpInstallationpip install ika-controlUsageCommand Line$ ika <serial-to-ethernet-ip>:<port> --type hotplate
$ ika <serial-to-ethernet-ip>:<port> --type overhead
$ ika <serial-to-ethernet-ip>:<port> --type shaker
$ ika <serial-to-ethernet-ip>:<port> --type vacuumPythonThis uses Python ≥3.5's async/await syntax to asynchronously communicate with an IKA device. For example:importasynciofromikaimportHotplate,OverheadStirrerasyncdefget():asyncwithOverheadStirrer('ip-address:port')asstrirrer:print(awaitstirrer.get())asyncwithHotplate('ip-address:port')ashotplate:print(awaithotplate.get())asyncio.run(get())Hardware configurationFor Control-Visc hotplates, make sure the "Eurostar" control option is turned off
in the system settings.  Otherwise, the device will turn the heater off when the serial
cable is unplugged.Acknowledgements©2023 Alexander RuddickUses code fromthe Hein group, but otherwise no affiliation.
As of 2023, that project appears to have been abandoned.
Package: ikakao
ikakaoKakao i Open Builder SDK (Currently WIP)RoadmapSupported ComponentsSimpleTextSimpleImageListCardBasicCard (Partial support)CommerceCardCarousel (Partial support)QuickReply (Partial support)Usage ExamplesHere are some examples demonstrating various types of skill responses.Simple Textimportjsonfromikakao.skillimportResponser=Response("Hello, Kakao i!")print(json.dumps(r.to_dict(),indent=2))Output:{"version":"2.0","template":{"outputs":[{"simpleText":{"text":"Hello, Kakao i!"}}]}}Multiple Text w/ Quick Replyimportjsonfromikakao.skillimportResponser=Response("Hello","Kakao","i",quick_replies="Home")print(json.dumps(r.to_dict(),indent=2))Output:{"version":"2.0","template":{"outputs":[{"simpleText":{"text":"Hello"}},{"simpleText":{"text":"Kakao"}},{"simpleText":{"text":"i"}}],"quickReplies":[{"label":"Home","action":"message","messageText":"Home"}]}}Carouselimportjsonfromikakao.skillimportResponse,BasicCard,Carouselcarousel=Carousel(BasicCard("Title #1","Description"),BasicCard("Title #2","Description"),BasicCard("Title #3","Description"),)r=Response("Carousel Example",carousel,quick_replies=["Home","Cancel"])print(json.dumps(r.to_dict(),indent=2))Output:{"version":"2.0","template":{"outputs":[{"simpleText":{"text":"Carousel Example"}},{"carousel":{"type":"basicCard","items":[{"title":"Title #1","description":"Description"},{"title":"Title #2","description":"Description"},{"title":"Title #3","description":"Description"}]}}],"quickReplies":[{"label":"Home","action":"message","messageText":"Home"},{"label":"Cancel","action":"message","messageText":"Cancel"}]}}ListCardimportjsonfromikakao.skillimportResponse,ListCard,ListItemlist_card=ListCard("Header","Item #1",ListItem("Item #2",link="http://example.com"),buttons=["Button #1","Button #2"],)r=Response("ListCard Example",list_card,quick_replies=["Home","Cancel"])print(json.dumps(r.to_dict(),indent=2))Output:{"version":"2.0","template":{"outputs":[{"simpleText":{"text":"ListCard Example"}},{"listCard":{"header":{"title":"Header"},"items":[{"title":"Item #1"},{"title":"Item #2","link":{"web":"http://example.com"}}],"buttons":[{"label":"Button #1","action":"message","messageText":"Button #1"},{"label":"Button #2","action":"message","messageText":"Button #2"}]}}],"quickReplies":[{"label":"Home","action":"message","messageText":"Home"},{"label":"Cancel","action":"message","messageText":"Cancel"}]}}
Package: ikalman
See gps.h for usage.Check LICENSE for licensing info.Python bindings are used like:import py_kalman
filter = py_kalman.filter(<noise double>)
filter.update_velocity2d(<lat>, <lon>, <seconds_since_last_update>)
filter.get_mph()
filter.get_lat_long()
filter.get_velocity()
filter.get_bearing()Installation should be as simple as:
python setup.py install
Package: ikamail
Ikamail PackageInstall package from repository gitlabpipinstall--index-urlhttps://__token__:<personal_access_token>@gitlab.com/api/v4/projects/<your_project_id>/packages/pypi/simpleyour_package_nameInstall package from pippipinstallikamailUsing packagefromikamail.GmailHelperimportGmailHelpermessage_id=GmailHelper("prod").get_message_id("me",include_spam_trash=False,max_results=25,batch_using=True)print(message_id)
Package: ikaria-lean-belly-juice-where-to-buy
Who would have thought something so common, like usingthis everyday spiceon your food...Could actually make your nail fungus grow even worse?While studies warn that 94% of Americans are overusingthis white apparently harmless ingredient(and no, it's not sugar!)...More and more people risk a full-blown fungus infection if they don't take action fast.Click Here to find out all about it:Avoid this spice if you suffer from nail and skin fungusikaria lean belly juice where to buypip3ikarialeanbellyjuicewheretobuy
Package: ikazuchi.plugins.blockdiag
ikazuchi.plugins.blockdiagis plugin forikazuchito work withblockdiag.ikazuchiis intended to work with other tools since it’s a CUI tool.See the projectdocumentationfor more detail.FeaturesWork withblockdiagasikazuchiTranslatorSetupby easy_installMake environment:$ easy_install ikazuchi.plugins.blockdiagby buildoutMake environment:$ hg clone https://bitbucket.org/t2y/ikazuchi.plugins.blockdiag
$ cd ikazuchi.plugins.blockdiag
$ python bootstrap.py -d
$ bin/buildoutUsageShow blockdiag’s diagram with web browser. For example, use Firefox:$ export BROWSER="firefox"  # can set any browser(command)
$ ikazuchi blockdiag -s "{A -> B;}"Show blockdiag’s diagram from “.diag” file with web browser:$ ikazuchi blockdiag -d examples/simple.diagShow blockdiag’s diagram with Tkinter Editor:$ ikazuchi blockdiag -i -d examples/simple.diagShow which plugins are available:$ ikazuchi -h
usage: ikazuchi [-h] {rstfile,blockdiag,normal} ...

positional arguments:
  {rstfile,blockdiag,normal}
                        available plugins. 'normal' means ikazuchi's standard
                        feature so it can be abbreviated

optional arguments:
  -h, --help            show this help message and exitShow blockdiag plugin help:$ ikazuchi blockdiag -h
usage: ikazuchi blockdiag [-h] [-a API] [-e ENCODING] [-f LANG] [-q] [-t LANG]
                          [-d DIAG FILE] [-i] [-s SENTENCE] [--version]

optional arguments:
  -h, --help            show this help message and exit
  -a API, --api API     APIs are ['google', 'microsoft']
  -e ENCODING, --encoding ENCODING
                        input/output encoding
  -f LANG, --from LANG  original language
  -q, --quiet           not to show original sentence to stdout
  -t LANG, --to LANG    target language to translate
  -d DIAG FILE, --diag DIAG FILE
                        target diag file
  -i, --interactive     run with interactive mode
  -s SENTENCE, --sentence SENTENCE
                        target sentence
  --version             show program's version number and exitRequirementsPython 2.6 or laterikazuchi 0.5.2 or laterblockdiag 0.8.1 or laterTkintersetuptools or distriubteLicenseApache License 2.0History0.1.0 (2011-06-10)first releaseTodosSave an image file generated by blockdiagResize each widget on BlockdiagEditor