Saravanan666/pypi-org huggingface dataset:
Package: pyinstruments
program less and do more science… betterWhat is itpyinstrumentsis a Python package to control/get data from measurement and
automation devices. Control of the remote instruments can be done via one of
the following protocols:ivi drivers (using the lower level package pyivi)visaserialUsing IVI-drivers greatly simplifies your life because :1/. The lower level layer is fully transparent for the user (pyivi provides a common interface for each instrument type).2/.zeroextra work is needed to interface an instrument for which an IVI driver is provided.pyinstruments is composed of twoindependantpackages (can be run on 2 remote computers!).pyhardwaredbfor the hardware communication (This package itself is a thin wrapper around pyhardware). Because it heavily relies on ivi-drivers and com-interoperability, this package is intended to run on a windows machine.curvefinderto display in quasi real-time the curves acquired (This module could be run on any platform).The strict separation between plotting and data-acquistion processes ensures that scripted data-acquisitions won’t be affected by user interactions or plotting dead-times.Main FeaturesThe curves are stored in a (django-abstracted) database with all necessary metadata.
(bandwidth, averaging, date, comment, name…) together with a list of user-defined tags to quickly identify the curves.
The curvefinder module allows monitoring new incoming curves, as well as querying
the database for old curve by date, tags…
The hardware module has a Graphical User Interface to quickly get a curve from an instrument and configure the way instruments are interfaced.DependenciesDirect dependancies for pyinstruments are:django > 1.5PyQt4guidataguiqwtpyhardware <– pyivi <– (ctypes + comtypes)InstallationThe windows installer takes care of all the dependancies that are not standards in version 2.7.3.1 of pythonxy.The other option to install pyinstruments is to use pip from a command shell (also available in pythonxy):pip install pyinstrumentspyinstruments and its three ‘exotic’ dependencies can also be uninstalled using pip:pip uninstall pyinstruments
pip uninstall pyhardware
pip uninstall pyiviTry it out!The installation is single click (since v 0.1.15), desktop icons are created
to launch both graphical user interfaces.The project is hosted on GitHub, and still in a starting phase, contributions and feedback
are warmly welcome!<https://github.com/SamuelDeleglise/pyinstruments>
Package: pyinsults
# pyinsultsThat's right, harness the power of `Python` to dynamically call your users really inapropriate names.# InstallationInstall using ```pip install pyinsults```Upgrade *frequently* using ```pip install pyinsults --upgrade```# Usage```from pyinsults import insults ```> Done in [.01s]``` print(insults.short_insult()) ```> dickwad``` print(insults.long_insult()) ```> stinking dickwad``` print(insults.insultify("Have a nice day, you {}!")) ```> Have a nice day, you stinking dickwad!# DeploymentBuild using ```python setup.py sdist bdist_wheel```Upload using ```twine upload dist/*```
Package: pyintacct
pyintacctA simple Python SDK for Sage Intacct.RequirementsPython >= 3.6pydanticrequestsjxmleaseLinksIssuesPull requestsReleasesPyPILicenseInstallationpip install pyintacctExample usagefrompyintacctimportIntacctAPIconfig={'SENDER_ID':'senderid','SENDER_PW':'senderpassword','COMPANY_ID':'mycompany','USER_ID':'username','USER_PW':'password'}client=IntacctAPI(config)customer={'customer':{'CUSTOMERID':'C-0001','NAME':'Acme, Inc.'}}client.create(customer)r=client.read_by_query('CUSTOMER','CUSTOMERID =\'C-0001\'',fields='NAME',pagesize=1)You can also use pydantic models:frompydanticimportBaseModel# API 3.0classLocation(BaseModel):LOCATIONID:strNAME:strlocation=Location(LOCATIONID='T123',NAME='Test Location',PARENTID='100')client.create(location)# API 2.1frompyintacct.models.baseimportAPI21ObjectclassContact(API21Object):contactname:str=...printas:str=None# Need to assign a default to preserve ordering# Override create or delete method to fit your object.@classmethoddefdelete(cls):return'delete_contact','contactname'
Package: pyintan
pyintanPython reader for INTAN rhs filesInstallationOpen a terminal and:git clone https://github.com/alejoe91/pyintan/
cd pyintan
python setup.py developBasic usageIn python (or ipython):import pyintan

file = pyintan.File('path-to-rhs')

# all fields are lists of objcts

analog_signals = file.analog_signals[0]
adc_signals = file.adc_signals[0]
dac_signals = file.dac_signals[0]
# actual signals are: analog_signals.signal

digital_in_signals = file.digital_in_signals[0]
digital_out_signals = file.digital_out_signals[0]
# event times are: digital_in_signals.times

stimulation = file.stimulation[0]
# contains stimulation information
Package: pyintegrity
IntegrityFitness for service assessment is the analysis both the present integrity of the component given the current state of damage and the projected remaining lifeSummary#TODORefactor input file as followsDivide app configuration data from input file to avoid confusionExtract pipe capacity evaluation as a separate library (i.e. github and pypi)Currently .xlsx is supported for wall thickness grid data. Change to simple .csvResults are dumped into single folderDivide them into high-level and detailed results into respective foldersThe detailed technical steps implemented pyintegrity are to be documented.UsageSee examples files to set up the General Metal Loss (GML) and Local Metal Loss (LML) analysis:GML and LML, ASME B31.8 design code, see12in_oil_cml28GML and LML, API 1111 design code, see16in_gasThe high level methodologies for the general metal loss (GML) and local metal loss (LML) assessments are shown below:The detailed steps implemented in pyintegrity are per API 579, 2016 code.AssumptionsScopePer the API 579 damage classes, the following schematics shows the pyintegrity current scope:Key ReferencesKey references used for the package development are:NameDescriptionHyperlinkAPI 579Fitness for Service, 2021API 579 2021BS 7910Fitness for ServiceBS 7910BS 7910Fitness for ServiceBS 7910:2013 OverviewExisting SoftwareNameDescriptionHyperlinkAutodesk Codeware INSPECTFitness for serviceFFSAutodesk Codeware INSPECT GML & LMLGeneral and Local Metal LossGeneral and Local Metal LossQuestIntegrity SignalFFSSignal Fitness-For-Service (FFS) performs fitness-for-purpose and fracture mechanics analysis on fixed and rotating equipment.SignalFFSBMT FlawCheckStructural Integrity Assessment ToolFlawcheck
Package: pyintelowl
PyIntelOwlRobust PythonSDKandCommand Line Clientfor interacting withIntelOwl's API.FeaturesEasy one-time configuration with self documented help and hints along the way.Request new analysis for observables and files.Select which analyzers you want to run for every analysis you perform.Choose whether you want to HTTP poll for the analysis to finish or not.List all jobs or view one job in a prettified tabular form.List all tags or view one tag in a prettified tabular form.Tabular view of theanalyzer_config.jsonandconnector_config.jsonfrom IntelOwl with RegEx matching capabilities.DemoInstallation$pip3installpyintelowlFor development/testing,pip3 install pyintelowl[dev]QuickstartAs Command Line ClientOn successful installation, Thepyintelowlentryscript should be directly invokable. For example,$pyintelowl
Usage:pyintelowl[OPTIONS]COMMAND[ARGS]...

Options:-d,--debugSetlogleveltoDEBUG--versionShowtheversionandexit.-h,--helpShowthismessageandexit.

Commands:analyseSendnewanalysisrequestanalyzer-healthcheckSendhealthcheckrequestforananalyzer...configSetorviewconfigvariablesconnector-healthcheckSendhealthcheckrequestforaconnectorget-analyzer-configGetcurrentstateof`analyzer_config.json`from...get-connector-configGetcurrentstateof`connector_config.json`from...jobsManageJobstagsManagetagsAs a library / SDKfrompyintelowlimportIntelOwlobj=IntelOwl("<your_api_key>","<your_intelowl_instance_url>","optional<path_to_pem_file>","optional<proxies>")For more comprehensive documentation, please seehttps://pyintelowl.readthedocs.io/.ChangelogViewCHANGELOG.md.FAQGenerate API keyYou need a valid API key to interact with the IntelOwl server.
Keys should be created from the admin interface ofIntelOwl: you have to go in theDurinsection (click onAuth tokens) and generate a key there.Incompatibility after version 3.0We did a complete rewrite of the PyIntelOwl client and CLI both for the version3.0.0. We very much recommend you to update to the latest version to enjoy all new features.(old auth method) JWT Token Authenticationthis auth was available in IntelOwl versions <1.8.0 and pyintelowl versions <2.0.0From the admin interface of IntelOwl, you have to go in theOutstanding tokenssection and generate a token there.You can use it by pasting it into the fileapi_token.txt.
Package: pyintelx
INTELX Python LibraryThis python library is developed based on the original intelx library, but adding the functionality to use Intelx.io Identity API.Original source could be find here:https://github.com/IntelligenceX/SDK/tree/master/PythonInstallationYou need to install this package and de the original package from IntelX.iopipinstallpyintelx
pipinstall"intelx @ git+https://github.com/IntelligenceX/SDK#subdirectory=Python"Usage as commandpyintelx-apikey{API_KEY}-search{search_term}-limit10pyintelx-apikey{API_KEY}-search{search_term}-limit10--identityenabled

pyintelx-apikey{API_KEY}-search{search_term}-limit10--identityenabled--accountsSEARCH EXAMPLESQuery for 10 leaks containingpepe@example.comin intelx.io APIpyintelx-apikey{API_KEY}search-searchpepe@example.com-limit10Query for 10 leaks of accounts and passwords for domain example.com in identity.intelx.io APIpyintelx-apikey{API_KEY}-searchexample.com-limit10--identityenabled--accountsQuery for 10 data leaks for domain example.com in identity.intelx.io APIpyintelx-apikey{API_KEY}-searchexample.com-limit10--identityenabledDownload some leak file identied by SYSTEM_ID from some previous searchpyintelx-apikey{API_KEY}-download{SYSTEM_ID}-name{FILE_NAME}-bucket{BUCKET_NAME}Usage as libraryPrint account informationfrompyintelximportintelxAPI_KEY="your api key"intelx_service=intelx(API_KEY)intelx_service.GET_CAPABILITIES()Search for using intelx servicefrompyintelximportintelxAPI_KEY="your api key"intelx_service=intelx(API_KEY)intelx_service.search("example@example.com",maxresults=max_results,datefrom=date_from,dateto=date_to,buckets=[])Search for using identity Search Data Leaks servicefrompyintelximportIdentityServiceAPI_KEY="your api key"identity_service=IdentityService(API_KEY)identity_service.search("example@example.com",maxresults=max_results,datefrom=date_from,dateto=date_to,buckets=[])Search for using identity export accounts servicefrompyintelximportIdentityServiceAPI_KEY="your api key"identity_service=IdentityService(API_KEY)identity_service.export_accounts("example.com",maxresults=max_results,datefrom=date_from,dateto=date_to,buckets=[])Buckets listdarknet.tordarknet.i2pdocuments.public.scihubdumpsterleaks.private.generalleaks.public.generalleaks.public.wikileakspastesweb.public.dePublicweb.public.kpweb.public.uaPublicwhoisweb.public.comweb.gov.rudumpster.web.ssndumpster.web.1web.public.peerleaks.logsusenetweb.public.govweb.public.orgweb.public.netweb.public.infoweb.public.euweb.public.cnweb.public.nordweb.public.weweb.public.ceeweb.public.amsweb.public.afweb.public.meaweb.public.ocweb.public.techweb.public.businessweb.public.socialweb.public.miscweb.public.aq
Package: pyinter
Pyinter is a small and simple library written in Python for performing interval and discontinous range arithmetic.>>>pyinter.openclosed(1.1,12)(1.1, 12]>>>discontinous_range=pyinter.IntervalSet([pyinter.closedopen(5,10),pyinter.closed(22,23)])>>>discontinous_rangeIntervalSet([5, 10), [22, 23])>>>7indiscontinous_rangeTrue>>>10indiscontinous_rangeFalse  # This isn't in the range as it is an open interval which doesn't include its end pointsFeaturesinterval objects which can beunionedintersectedeasily constructed using helper functions:open, closed, openclosed and closedopeninterval sets which can beunionedintersectedInstallationTo install Pyinter, simply:$pipinstallpyinterOr, if you absolutely must:$easy_installpyinterBut I’m told you really shouldn’t do that.DocumentationDocumentation is available athttp://pyinter.readthedocs.org.ContributeContributions or suggestions for improvements are welcome.Release History0.2.0 (2019-05-14)Fix: The interval of 2 identical numbers equals the empty set if one of the boundaries is open #20Improvement: Add lower and upper properties and replace method which works similarly to date.replace #190.1.9 (2015-08-01)Fix empty interval types so that empty intervals could be compared with other intervalsAdd methodcopy()to create newIntervalinstances with the same bounds and values as theIntervalbeing copiedFix methodoverlapsonIntervaland add tests for it!0.1.8 (2015-07-14)Fix formatting in README.rst as pypi isn’t rendering it properly.0.1.7 (2015-07-14)Fix|and&in the documentation.Implement subtraction ofInterval’s andIntervalSet’sAdd methodempty()to detect emptyIntervalobjects.Fix, each infinity should always equal itself.0.1.6 (2014-05-11)Add a complement functionFix bug with using & and | forunion()andintersection()Increase test coverage!0.1.5 (2013-12-13)Fix the__all__list so that you canfrom pyinter import *.Change classes to new style classes (inheriting from object)Added anadd()function to theIntervalSetclass. This will add (union) an Interval inplace. (similarly toset().add())The optional iterable of Interval objects passed when initialising anIntervalSetis now added Interval by Interval so that initialising with overlapping intervals works as expected.0.1.4 (2013-11-16)Fix formatting in HISTORY.rst which was stopping the pypi page rendering it.0.1.3 (2013-11-16)Removed *.md from the MANIFEST file as it warns when installing that no files matching *.md are found.Fix allowing an IntervalSet to be initialised with a generator.0.1.2 (2013-10-12)Fixed the rendering of the README on pypi (hopefully!) by converting it from a .md file to a .rst file.0.1.1 (2013-10-09)Adding Manifest file to fix the pypi release. This was broken because the README.md was not being included in the source distribution but setup.py had a reference to this file and therefore failed to run.0.1.0 (2013-07-03)Initial release
Package: pyinteract
========Interact========Responsys Interact==================**Disclaimer:** *This code is neither officially supported nor endorsed by Responsys.*Module for simplified usage of the Responsys Interact API.This Python package was created to fill the need for a simplified Pythoninterface to the Responsys Interact web services for our latest versionof the software.SOAP Web Services can be a bit tricky to deal with, especially forResponsys Interact if the developer does not have experience with termsthat are specific to Responsys and/or marketing. This package is gearedto help an experienced developer get the ball rolling with minimalknowledge of the Responsys Interact API and UI.The Interact API is limited in comparison to the features offered throughthe web UI, but offers everything you would need to create a website thatintegrates with services offered by Responsys. There is no way todynamically create an email campaign through code, but you will be able tolaunch them dynamically using this API.Example use case::#!/usr/bin/env pythonfrom interact import Interact6api = Interact6()api.connect(username='user', password='pass', pod=5)api.merge_into_list('folder/listname', [{'EMAIL_ADDRESS_': ...,'CUSTOMER_ID_': ...,}, { ... }, ...])api.trigger_campaign('folder/campaign_name', 'folder/list_name', [{'EMAIL_ADDRESS_': ...,'OPTIONAL_DATA1': ...,'OPTIONAL_DATA2': ...,}, ... ])api.disconnect()It's also possible to create a file at ~/.interact/creds.py with saved credentials.The format of the credentials file::credentials = {'5': {'username': 'apiuser','password': 'pass123',},}Use '5' if your endpoint is ws5.*, 2 for ws2.*Then you connect simply with::#!/usr/bin/env pythonfrom interact import Interact6api = Interact6()api.connect(pod=5)If a file in ~/.interact/rc.py exists, it will execfile that whencreating an instance of Interact6 unless kward exec_rc is set to False.This allows you to create simple campaign or program configs so that youdo not need to hardcode paths to Interact objects.
Package: pyInteractiveFixedEffects
Panel Data Models with Interactive Fixed EffectsPython implementation of theInteractive Fixed Effects Estimatorfor panel data presented inBai (2009).Installationpip install pyInteractiveFixedEffectsUsageFirst, we need to import the module into our script.importbai2009Then we need the initiate the estimator by specifying the number of factors in the model.# Load the  Interactive Fixed Effects estimator with r=3 factorsife=bai2009.InteractiveFixedEffects(3)Finally, there are two ways to estimate a model with interactive fixed effects (ife).Estimation from a Patsy formulaThe easiest way to get an estimate is using aPatsyformula to specify the model. The regression is specified as normal and we add an additional term~ife(I,T)at the end to specify the columns of the data with the $N$ and $T$ index of each observation.# Estimate the model using a Patsy formulabetas,F,Lambda=ife.fit_from_formula('Y~0+X1+X2~ife(I,T)',df)Estimation from explicit definition of termsIf you prefer to specify each term explicitly in your code, you can use the code below.# Alternatively, estimate the model specifying every term explicitlybetas,F,Lambda=ife.fit(df['Y'].values[:,np.newaxis],# Outcomedf[['X1','X2']].values,# Observable regressorsdf['I'].values[:,np.newaxis],# First level of the factor model (I)df['T'].values[:,np.newaxis]# Second level of the factor model (T))Estimation resultsThe estimator returns:$\beta$ a $p\times 1$ vector of coefficients associated with the observables.$F$ a $T\times r$ matrix of the factors on the $T$ dimension.$\Lambda$ a $N\times r$ matrix of the loadings on the $N$ dimension.
Package: py_interception
PyInterceptionPyInterception is a Python Method Interception with Dependency Injection implementation.Home PagePyInterception Projecthosted on GitHub.IssuesPyInterception Issues on GitHub.InstallationBy pip commandsudopipinstallpy_interceptionManualFor default python executablegitclonehttps://github.com/moisespsena/py_interception.gitpy_interceptioncdpy_interceptionsudopythonsetup.pyinstallFor another python executablesudopython3setup.pyinstallExamplesSeetestsfor more details.Authors/ContributorsMoises P. Sena <moisespsena@gmail.com>HISTORY1.0 (2012-10-08)Initial release
Package: pyintercon
Pyintercon is a python module to connect a server and clients allowing them to exchange informationWhen an instance of Client sends a request to an instance of Server, the value returned by therequest handlerfunction is the response sent to the client.See below for how to set a request handler function and how it worksInstallationpipinstallpyinterconExample:Server:>>>frompyinterconimportServer>>># initialize the server>>>sv=Server()>>># run the server using hostname and port# the default hostname is "localhost">>>sv.activate("",8080)"""Server is activated on localhost:8080...Tap CTRL + C to quit !!!!!"""Client>>>frompyinterconimportClient>>># initialize the client>>>cl=Client()>>># connect client to server by calling the connect method with $hostname and $port used as for server.activate>>>cl.connect("localhost",8080)# you will get on server side a message like this>>>""" server output:('127.0.0.1', 44042) is connected ...""">>># You are ready to go with pyintercon>>># You can send a request to server by calling the send method of the client instance>>>response=cl.send({message:"Hello World !"})>>>print(response){'status':1,'message':'default'}>>># use disconnect method to disconnect from the server>>>cl.disconnect()# you will get on server side a message like this>>>""" server output:('127.0.0.1', 44042) is disconnected ..."""The server manage the request by executing the request handler function and sends its returned value as responseThis function takes the request data (dict object) and returns the a value which will be used as response.
The default handler returns{"status": 1, "message": "default"}for everything.This can be edited by setting a custom handler using setRequestHandler method>>>sv=Server()>>>server.setRequestHandler(your_handler_function)See example belowExample:ServerfrompyinterconimportServerdefresponse_loader(request):""" Just reverse the message content.It takes dict object and returns dict object"""res={"message":request["message"][::-1]}returnresdefmain():sv=Server()# set the request handler functionsv.setRequestHandler(response_loader)sv.activate("localhost",8080)if__name__=="__main__":main()Client>>>frompyinterconimportClient>>>cl=Client()>>>cl.connect("localhost",8080)>>>res=cl.send({"message":"Hello World !"})>>>>>>print(res){"message":"! dlroW olleH"}Features:Add more events, possibility to emit events.client.emit("event_name",callback_function)at the moment sending the request is considered as the only event
Package: pyinterconvert
PyInterconvertA simple tool for interconversion of binary, decimal, hexadecimal and octalCurrent functionsBinToDecBinToOctBinToHexDecToBinDecToOctDecTohexHexToBinOctToBinFor other Hexadecimal and Octal conversions the given functions can be used together as follows:-BinToDec(HexToBin(arg))#Hexadecimal to DecimalBinToOct(HexToBin(arg))#Hexadecimal to OctalBinToDec(OctToBin(arg))#Octal to DecimalBinToHex(OctToBin(arg))#Octal to HexadecimalArg is of type stringSample UsagefrompyinterconvertimportConvClientc=ConvClient()print(c.BinToOct(1010101))#prints 125