Saravanan666/pypi-org huggingface dataset:
Package: imd-handler
IMDiddlerA tool for editing IMD files either from local or s3
Can be deployed/invoked as a lambda or command line.
IMD file order is preserved. IMD edits can be in arbitrary orderEditing SpecifierThe edit to the imd is specified by a json string which maps the key/value pairs and simply replaces
an existing key/value pair in the IMD file with the key/value pair in the json string. There's no limit on how
long you make the edit specifiers you can edit one or all the items in an IMD with a single specifier.
It is a simple overlaying operation. The one special consideration is for the 'BEGIN_GROUP/END_GROUP' pair, discussed below.
One can specify any of the types in the IMD. The following edits are for each of the individual types
#####String'{"version": "\\"28.4\\";"}'#####Integer'{"numRows": 6932;"}'#####Date'{"generationTime": 2017-08-01T03:39:53.000000Z;"}'You get the idea...####Groups
IMDs contain a BEGIN_GROUP= and END_GROUP= for bands, images and products. The naming scheme is the disambiguator.
You can edit the contents of a group by specifying the name of the group within the IMD as a key and then a sub-dictionary
of key/value pairs to be applied within the group. The following edits the "IMAGE_1" group in the IMD, replacing the satellite name.'"IMAGE_1": {"satId": "\\"WV09\\";"}}'InvocationThe code can be invoked either via the command line or as a lambda.Command linepython imd_handler.py <input file/s3 object> <edit[s]>The input file is a file URI, self explanatory (any valid path, read/write access required)file:///Volumes/GKW/Sibinacocha2017/1cc99383-29fd-470a-a3ac-22431193b65a/103001006A803400/056848496010_01/056848496010_01_P001_MUL/17MAY12150511-M1BS-056848496010_01_P001.IMDThe s3 Object is an S3 URI specifying the bucket and path for the name ie:s3://727281582563-deliveries/production/I00000070198_01/I00000070198_01_P001_MUL/18APR05102137-M1BS_R1C1-I00000070198_01_P001.IMDAs a lambdaIt's deployed as IMDiddler. The event dictionary/payload should look like:{"file_uri":"<input file/s3 object>""edit":{"<edit tag>":"<edit value>"}}#####Lambda Example payload{"file_uri":"s3://727281582563-deliveries/production/I00000070198_01/I00000070198_01_P001_MUL/18APR05102137-M1BS_R1C1-I00000070198_01_P001.IMD""edit":{"version":"\"28.4\";","IMAGE_1":{"satId":"\"WV09;\""}}}#####Nota Bene:
IMD Files contain quoted strings which means that the edits performed must also contain the quotes.
This means that the JSON quote escapement mechanism must be used for string types. Other types (float, int, date) do not
need this.
Package: imdir
imdira simple python package to analyse a directory full of imagesFeaturesEasy Interface to rememberAnalyse distribution of height, width, extensions etc.Multithreaded for faster executionhigh customizability for plotsDetects corupt fileswell tested on diffrent platformsInstallationstable version from pypipagepipinstallimdiror latest from master branchpipinstallgit+https://github.com/dhananjayraut/imdirDependenciesmatplotlibpillowUsage / examplefromimdirimportimage_dir# give path to classim_dir=image_dir(path="../input/train/",recursive=True,nthreads=4)im_dir.sc_plot(alpha=0.5)# plot height and width as scatter plotim_dir.width_plot()# plot width as histogram using matplotlibim_dir.height_plot()# plot height as histogram using matplotlibDocumentationGenerated documentationor see help for the image_dir classhelp(imdir.image_dir)
Package: imdix
Imdix : Dynamic image file resizing toolThis tool automatically resizes the image file according to your needs, Let's say you have an image file of size 2 MB and you need to reduce size to 300 KB, useimdixInstallpipinstall--upgradeimdixUsageusage:dx[-h]--imageIMAGE--sizeSIZE[--outputOUTPUT][--extEXT]Dynamicimagefileresizer

optionalarguments:-h,--helpshowthishelpmessageandexit--imageIMAGE,-iIMAGEPathtoimagefile--sizeSIZE,-sSIZETargetoutputsize--outputOUTPUT,-oOUTPUTOutputfilename--extEXT,-xEXTExtensionofoutputfileExampleLet's reduce this car imagebyOlav@Unsplashdx--imageimages/car_500.jpg--size5000# all output sized must be in KBsOutput[ERROR]Targetsize(5000KB)greaterthanfilesize(500KB)Yes, we're going to reduce a 500 KB file. Let's reduce it to 200 KBdx--imageimage/car_500.jpg--size200--outputcar_200output[INFO]Resizecomplete...[INFO]Filename:images/car_200.jpg,Size:200Output fileThis image of size 200KB#### imdix is set to produce images of size: target +/- 2KBYou can also specify output filename and extension(although it doesn't make any difference)
Package: ime
Chinese Pinyin Input Method EngineYet another input method engine.You can download data fromGoogle code(hslinuxextra).Tutorial>>fromime.engineimportEngine>>e=Engine()>>e.search('daima')[(5,Word(han='代码',freq=6955)),(3,Word(han='带',freq=7438)),(3,Word(han='待',freq=6568)),......]>>e.search('bitebi')[(4,Word(han='比特',freq=4210)),(4,Word(han='彼特',freq=912)),(2,Word(han='比',freq=7543)),......]TODOword(full match)candidate(sort by 1. length 2. frequence)sentence(try to find correct words)correct misspelling(fuzzy spell)search with initialsadjust frequence of word dynamically
Package: imecilabt-gpulab-cli
GPULab CLIGPULab CLI is a CLI tool for submitting jobs to GPULabInstall with:pip3installimecilabt-gpulab-cliUpdate to the latest version with:pip3install--upgradeimecilabt-gpulab-cliGPULab users require an account at theFed4Fire PortalDocumentation and the version changelog for GPULab can be found atthe iLabt.t documentation siteSend bugreports, questions and feedback to:gpulab@ilabt.imec.beAnd/or use themattermost channelYou can see known bugs and feature requests at theiLab.t GitLabReferences:GPULab Site:https://gpulab.ilabt.imec.be/GPULab Documentation:https://doc.ilabt.imec.be/ilabt/gpulab/GPULab CLI Gitlab (currently private):https://gitlab.ilabt.imec.be/ilabt/gpulab/gpulab-cliPyPi:https://pypi.org/project/imecilabt-gpulab-cli/
Package: imecilabt-gpulab-common
GPULab CommonCommon code used by various GPULab components.This contains a few data models, some config helpers, and some utils.References:GPULab Site:https://gpulab.ilabt.imec.be/GPULab Documentation:https://doc.ilabt.imec.be/ilabt/gpulab/GPULab Common Gitlab (currently private):https://gitlab.ilabt.imec.be/ilabt/gpulab/gpulab-commonGPULab CLI Gitlab (currently private):https://gitlab.ilabt.imec.be/ilabt/gpulab/gpulab-cliPyPi:https://pypi.org/project/imecilabt-gpulab-common/
Package: imecilabt-utils
Imec iLab.t utilsA collection of functions useful in various projects iLab.t projects.These assorted utils are all lightweight and have no dependencies.
This is all MIT license, so you are free to copy only what you need.Overview:sentry_utils.pyhasfind_sentry_release_idwhich is used to automatically find the sentry release.urn_util.pycontains function for working with a specific type ("geni") of URN.validation_utils.pyhas functions to validate ssh keys, emails and UUIDsutils.pycontains a wide range of useful functions:normalize_depenvreturns "staging" or "production"datetime_nowreturns "now" as a timezone aware datetime. (naive datetimes are evil!)any_to_{opt_}boolconverts to boolduration_string_to_secondsparses string like "3 days" into a number of secondsdeep_update_dictmerges a dict into anotherstrip_null_from_json_dictstrips None and empty lists/dicts from a dict (useful to clean up json)Links:Gitlab:https://gitlab.ilabt.imec.be/ilabt/imecilabt-py-utilsPyPi:https://pypi.org/project/imecilabt-utils/
Package: imephu
imephuimephu is a package for generating finder charts for astronomical observations. While primarily intended for theSouthern African Large Telescope, it can be used to create completely custom finder charts.Installationimephu can be installed with pip in the usual way withpipinstallimephuor, avoiding a potential mismatch between python and pip, withpython-mpipinstallimephuPython 3.8 or higher is required.UsageA command line interface,imephu, allows you to create finder charts from a configuration file. Refer to thequickstart guidefor the details.Alternatively, you can use an API for creating custom finder charts. An example of how to do this can be foundhere.DocumentationThe documentation is hosted athttps://saltastroops.github.io/imephu/.
Package: imephutest
imephuimephu is a package for Generating finder charts for astronomical observations. While primarily intended for theSouthern Africa Large Telescope, it can be used to create completely custom finder charts.Installationimephu can be installed with pip in the usual way withpipinstallimephuor, avoiding a potential mismatch between python and pip, withpython-mpipinstallimephuPython 3.8 or higher is required.UsageA command line interface,imephu, allows you to create finder charts from a configuration file. Refer to thequickstart guidefor the details.Alternatively, you can use an API for creating custom finder charts. An example of how to do this can be foundhere.DocumentationThe documentation is hosted athttps://saltastroops.github.io/imephu/.
Package: imesh
Mesh Python Client中文版READMEIntroductionMesh is a standard implementation forPrivate Transmission Protocolspecification.Mesh Python develop kits base on Python3.6. Recommend usepoetryto manage
dependencies.FeaturesAs an open source Internet of Data infrastructure develop kits, Mesh has the following core functions:Minimal kernel with SPI plugin architecture, everything is replacement.Support full stack of service mesh architecture.Support full stack of service oriented architecture.Support transport with TCP, HTTP, or other RPC protocols.Support rich routing features.Support reliable upstream management and load balancing capabilities.Support network and protocol layer observability.Support mTLS and protocols on TLS.Support rich extension mechanism to provide highly customizable expansion capabilities.Support process smooth upgrade.Get StartedpoetryaddimeshorpipinstallimeshRPCDeclared rpc interface Facade.fromabcimportABC,abstractmethodfrommeshimportspi,mpi@spi("mesh")classTokenizer(ABC):@abstractmethod@mpi("mesh.trust.apply")defapply(self,kind:str,duration:int)->str:"""Apply a node token.:param kind::param duration::return:"""pass@abstractmethod@mpi("mesh.trust.verify")defverify(self,token:str)->bool:"""Verify some token verifiable.:param token::return:"""passDeclared rpc service Implement.frommeshimportmps,Tokenizer@mpsclassMeshTokenizer(Tokenizer):defapply(self,kind:str,duration:int)->str:return"foo"defverify(self,token:str)->bool:returnTrueRemote reference procedure call.frommeshimportmpi,TokenizerclassComponent:@mpideftokenizer(self)->Tokenizer:passdefinvoke(self)->bool:token=self.tokenizer().apply('PERMIT',1000*60*5)returnself.tokenizer().verify(token)TransportTransport is a full duplex communication stream implement.importmeshfrommeshimportMesh,log,ServiceLoader,Transport,Routablefrommesh.prsimimportMetadatadefmain():mesh.start()transport=Routable.of(ServiceLoader.load(Transport).get("mesh"))session=transport.with_address("10.99.1.33:570").local().open('session_id_008',{Metadata.MESH_VERSION.key():'',Metadata.MESH_TECH_PROVIDER_CODE.key():'LX',Metadata.MESH_TRACE_ID.key():Mesh.context().get_trace_id(),Metadata.MESH_TOKEN.key():'x',Metadata.MESH_SESSION_ID.key():'session_id_008',Metadata.MESH_TARGET_INST_ID.key():'JG0100000100000000',})forindexinrange(100):inbound=f"节点4发送给节点5报文{index}"log.info(f"节点4发送:{inbound}")session.push(inbound.encode('utf-8'),{},"topic")outbound=session.pop(10000,"topic")ifoutbound:log.info(f"节点4接收:{outbound.decode('utf-8')}")
Package: iMesh-Dashboard
Meshtastic-rpi-dashboardCreate Dashboard for serial connected meshtastic deviceSetup:sudo pip3 install iMesh-DashboardConfigurationFirst installationcd /usr/local/iMeshDashboard/conf/
sudo mv app.conf.example app.conf
sudo nano app.confConfiguration example[AUTH] #authentication for dashboard
username=user
password=testPassword

[NET] # binding address and port for dashboard
bind=0.0.0.0
port=5000

[Position] # send position beacon for non gps devices
lat=45.5
lon=7.5
alt=250
interval=375
enabled=False

[MQTT] #mqtt server for publishing received nodes (i use it to render imeshmap.iz1kga.it)
host=mqtt.test.org
port=1883
username=MQTTuser
password=MQTTpassword
keepalive=60
enabled=FalseRunInstall systemd service running:sudo /usr/local/iMeshDashboard/service/iMeshDashboardServiceInstall.shthe service will start at end of installationcontrol service:systemctl start iMeshDashboard
systemctl stop iMeshDashboard
systemctl status iMeshDashboardDisclaimerThis software is experimental. Please Avoid unauthorized persons to acces your systems!
Package: imessagefilter
A python package implements interface IMessageFilter for COM.The main purpose is to fix ‘Application is Busy’ and ‘Call was Rejected By Callee’ errors in a WINDOWS COM/COM+ client.Here is a workaroundhttps://docs.microsoft.com/en-us/previous-versions/ms228772(v=vs.140)But it’s written by C#, this package offers both C and Python versions.UsageInstall it:pip install imessagefilterImportCMessageFilterfromimessagefilterCall static methodregisterat the beginning of automationCall static methodrevokeat the end of workHere it’s an example:fromcomtypes.clientimportCreateObjectfromimessagefilterimportCMessageFilterdefiter_excel_sheets(filename):CMessageFilter.register()aobj=CreateObject('Excel.Application',dynamic=True)aobj.Workbooks.Open(filename)forsheetinaobj.ActiveWorkbook.Worksheets:print('Processing%s'%sheet.Name)CMessageFilter.revoke()NoteThe interfaceIMessageFilteronly works in single-threaded
apartments, it will not be called in the multithreaded
apartments.Refer tohttps://docs.microsoft.com/en-us/windows/desktop/com/choosing-the-threading-modelBuildmsgfilter.dllBy visual studio command line:cl /LD msgfilter.c ole32.libBy mingw32 in cygwin:i686-pc-mingw32-gcc -shared -o msgfilter.dll msgfilter.c -lole32 -luuidThere are 2 export functions, they can be used in any c file.Here it’s an exmaple:#include<stdio.h>#include<objbase.h>externvoidregister_message_filter();externvoidrevoke_message_filter();intmain(intargc,char*argv[]){HRESULTret;ret=CoInitializeEx(0,COINIT_APARTMENTTHREADED);register_message_filter();// do something for automationrevoke_message_filter();CoUninitialize();return0;}Change Logs0.2.1Search msgfilter.dll in the current path first0.1.3Fix no long description in package information0.1.2Fix typos
Package: imessage-reader
imessage_readerThis is a forensic tool written in Python 3. Use this tool to fetch the content (phone numbers, email addresses, messages and the account) from thechat.dbdatabase file onmacOS(version 10.14 or above).The following information is currently being read from the database:user id (sender's or recipient's phone number or email address)messagedate and timeservice (iMessage or SMS)account (destination caller id)is the message from meBackgroundReceived messages (iMessage or SMS) and attachments will be saved in "~/Library/Messages". This directory contains a "chat.db" file (SQLite3) with two tables of interest:handleandmessage. Thehandletable contains the recipients (email address or phone number). The received messages are in themessagetable.NoteOf course, the chat.db file is only created under macOS. Nevertheless, this program can also be used under Linux. In contrast to use under macOS, the path to the chat.db file must then be specified (see below).RequirementsPython 3.9+openpyxlTo run tests installpytest:pip3 install pytestInstallpip3 install imessage-readerUsage (CLI)Specify no optionsStart the program with:imessage_readerThis will show you all users and messages in the Terminal. If no option (-p <PATH>) is specified, the default directory (under macOS) is searched for the chat.db file.Specify a PATH as argumentA different path to chat.db file can be specified with the-poption:imessage_reader -p <PATH>Unless the-ooption is also used, the data is displayed in the Terminal.Specify an output argumentYou can create an Excel file containing users, messages, date and service (SMS or iMessage). The file will be stored in the
Documents folder:imessage_reader -o eorimessage_reader -o excelYou can create a SQLite3 database containing users, messages, date and service (SMS or iMessage). The file will be stored in the Documents folder:imessage_reader -o sorimessage_reader -o sqliteIf you only want to see a list of recipients use:imessage_reader -rorimessage_reader --recipientsNote: OnmacOSyou need access to theLibraryfolder in order to read the iMessage database file ("chat.db"). You can add access (forTerminaloriTerm) in> System Preferences > Security & Privacy > Privacy > Full Disk AccessSpecify a PATH and an output argumentYou can combine the-pwith the-ooption:imessage_reader -p /home/bodo/Downloads -o excelIn this example the chat.db file is located in the Downloads folder (on a Linux machine). And the Excel file will be created in the Documents folder.Usage (import module)To get the messages use following code:from imessage_reader import fetch_data

DB_PATH = /home/bodo/Downloads/chat.db

# Create a FetchData instance
fd = fetch_data.FetchData(DB_PATH)

# Store messages in my_data
# This is a list of tuples containing user id, message and service (iMessage or SMS).
my_data = fd.get_messages()
print(my_data)ToDoGet the date of messagesFetch the date of received messages.Show a list of all known recipients.Did the user receive the message via SMS or via iMessage?Create SQLite3 database.Specify a different path to the chat.db file.Show attachments.Add more tests.ChangelogseeCHANGELOG.rst
Package: imetis
DeploymentSupport python 3.pipinstallimetisUsageCreate a Metis clientimportimetisclient=imetis.MetisClient(metisUrl='https://your.metis.com')# It is an invalid url, please use your true url.# If you don't know your metis url, please contact to your metis administrator.AuthenticateUse your own Metis account to authenticate.client.authenticate(username='xiaoming.wang@mailbox.com',password='yourPassword')Search tickets by keywordSearch tickets with a keyword. You can specify how many results you need (default 10).result=client.ticket_search('hdfs',num=5)print(result)Search tickets by TQL (Advanced)Search tickets with a TQL (a kind of query language) statement. You can specify how many results you need (default 10).result=client.ticket_search_by_tql('(TICKET_TITLE token match "hdfs upgrade")',num=20)print(result)Search JIRA cases by keywordSearch JIRA cases with a keyword. You can specify how many results you need (default 10).result=client.jira_search('hdfs',num=5)print(result)Search WIKI cases by keywordSearch WIKI cases with a keyword. You can specify how many results you need (default 10).result=client.wiki_search('hdfs',num=5)print(result)Search AIOPS cases by keywordSearch AIOPS cases with a keyword. You can specify how many results you need (default 10).result=client.aiops_search('hdfs',num=5)print(result)Search IntKB cases by keywordSearch IntKB cases with a keyword. You can specify how many results you need (default 10).result=client.intkb_search('hdfs',num=5)print(result)Check your own ticketsCheck your own tickets. The result will be sent to your email.client.personal_ticket_check()Analysis top hot issuesAuto analysis hot issues by component and month.print(client.analysis_hot_issues("Inceptor",'5'))
Package: imface
imfacethis cli project is depended on serengil deepface projecthttps://github.com/serengil/deepfaceinstall gdown firstpip install gdownhow to installpip install imfaceto uninstallpip uninstall imfacehow to useimface represent -p image-path -d detector(ie yolov8 or retinaface)to get the embedded vectors of an imageimface selfie -p image-path -d detector(ie yolov8 or retinaface)to extract embedded vector of face in image, only just for one face per image
Package: imfdatapy
imfdatapyA package for data discovery and extraction from the International Monetary Fund (IMF)!
This repository contains Python source code and Jupyter notebooks with examples on how to extract data from the IMF.Installation$pipinstallimfdatapyUsageimfdatapycan be used to search through and extract data as follows. The examples below show how to search through the IFS (International Financial Statistics) and BOP (Balance of Payments) usingserach_termsand download all the data with matching economic indicator names.fromimfdatapy.imfimport*ifs=IFS(search_terms=["gross domestic product, real"],countries=["US"],period='Q',start_date="2000",end_date="2022")df=ifs.download_data()bop=BOP(search_terms=["current account, total, credit"],countries=["US"],period='Q',start_date="2000",end_date="2022")df=bop.download_data()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with aCode of Conduct. By contributing to this project, you agree to abide by its terms.Licenseimfdatapywas created by Sou-Cheng T. Choi and Irina Klein, Illinois Institute of Technology. It is licensed under the terms of the Apache License, v2.0.With regard to the terms for using IMF data, please refer to IMF'sCopyright and Usageand pay special attention to the
sectionSPECIAL TERMS AND CONDITIONS PERTAINING TO THE USE OF DATA.Creditsimfdatapywas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: imfeatures
OverviewMinimalistic python package to extract deep learning features from a wide variety of pretrained models in Pytorch.Installation / UsageDependencies:pytorch (v >= 1.0.0)torchvisionTo install use pip:$ pip install imfeaturesOr clone the repo:$ git clonehttps://github.com/resbyte/imfeatures.git$ python setup.py installExampleImports`python import imfeatures import torch `create feature extractor, hereresnet50, with pretrained weights`python feature_extractor =imfeatures.Features('resnet50',pretrained=True)`random image of size224x224x3`python x =torch.randn([1,3,224,224])`features`python features = feature_extractor(x) print(features.shape) `Output features will be of shape :[1, 2048, 1, 1]AuthorAbhinav Dadhich
Package: imfont
imfont Tool 🎨Convert images to C++ arrays with ease! This tool helps you generate C++ code for embedding images in your projects.InstallationTo install theimfonttool, you can use pip:pipinstallimfontUsageCLI Usageimfont-f<filename>-o<output_name>
imfont-i-f<image_folder>-o<output_file>Options-f, --file <filename>: Input file for the imfont tool-o, --output <output_name>: Output name for the imfont tool-i, --image: Use image to C++ array tool-h, --help: Show help messageExampleimfont-f/path/to/font.ttf-ooutput.hInteractive ModeRun the script without any arguments to enter interactive mode:pythonmain.pyFollow the prompts to select compression options and specify input/output paths.CreditsMade with ❤️ byHK4CRPRASADLicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: imforge
ImForgeImages ForgeImForge is a library containing high level functionalities for manipulation of images, on top of Pillow, and OpenCv.OverviewThe ImForge library provides a variety of high level functionalities empowering the manipulation of images in Python.It works on Pillow images as well as OpenCv images (i.e. numpy arrays).More informationDocumentationContributeIssuesPull requestsChangelog