Saravanan666/pypi-org huggingface dataset:
Package: inquirer3
python-inquirer3This is a fork ofmagmax/python-inquirer. This one is hopefully more responsive (Issues/PRs/...).Collection of common interactive command line user interfaces, based onmagmax/python-inquirer.Goal and Philosophyinquirer3should ease the process of asking end userquestions,parsing,validatinganswers, managinghierarchical promptsand providingerror feedback.Platforms supportPython-inquirer supports mainly UNIX-based platforms (eq. Mac OS, Linux, etc.). Windows has experimental support, please let us know if there are any problems!InstallationInstall the last released version using pip:pipinstallinquirer3Also, you candownload the python-inquirer code from GitHubordownload the wheel from Pypi.DocumentationTextimportreimportinquirer3questions=[inquirer3.Text('name',message="What's your name"),inquirer3.Text('surname',message="What's your surname"),inquirer3.Text('phone',message="What's your phone number",validate=lambda_,x:re.match('\+?\d[\d ]+\d',x),)]answers=inquirer3.prompt(questions)EditorLike a Text question, but used for larger answers. It opens external text editor which is used to collect the answer.The environment variables$VISUALand$EDITOR, can be used to specify which editor should be used. If not present inquirer fallbacks tovim -> emacs -> nanoin this order based on availability in the system.External editor handling is done using great librarypython-editor.Example:importinquirer3questions=[inquirer3.Editor('long_text',message="Provide long text")]answers=inquirer3.prompt(questions)ListShows a list of choices, and allows the selection of one of them.Example:importinquirer3questions=[inquirer3.List('size',message="What size do you need?",choices=['Jumbo','Large','Standard','Medium','Small','Micro'],),]answers=inquirer3.prompt(questions)List questions can take one extra argumentcarousel=False. If set to true, the answers will rotate (back to first when pressing down on last choice, and down to last choice when pressing up on first choice)CheckboxShows a list of choices, with multiple selection.Example:importinquirer3questions=[inquirer3.Checkbox('interests',message="What are you interested in?",choices=['Computers','Books','Science','Nature','Fantasy','History'],),]answers=inquirer3.prompt(questions)Checkbox questions can take extra argumentcarousel=False. If set to true, the answers will rotate (back to first when pressing down on last choice, and down to last choice when pressing up on first choice)Another argument that can be used islocked=<List>. The given choices in the locked argument cannot be removed. This is useful if you want to make clear that a specific option out of the choices must be chosen.PathLike Text question, but with builtin validations for working with paths.Example:importinquirer3questions=[inquirer3.Path('log_file',message="Where logs should be located?",path_type=inquirer3.Path.DIRECTORY,),]answers=inquirer3.prompt(questions)ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseCopyright (c) 2014-2023 Miguel Ángel GarcíaDistributed under the terms of theMIT license.
Package: inquisitor
This Python module provides a python wrapper around the API of Econdb.com.For a successful response, API users must provide an authentication. To obtain an authentication token, users can register at econdb.com.InstallationJust type:pipinstallinquisitorYou can also findInquisitor on GithubDocumentationThe documentation on installation, use and API description is found at econdb.comdocumentation page.Usage exampleimportinquisitorqb=inquisitor.Inquisitor()### List sourcesqb.sources()### List datasetsqb.datasets(source='EU')### Obtain series dataqb.series(dataset='EI_BSCO_M')
Package: inrex
from inrex import  match, search, split, findall, finditerif 'asd 123' |match| r'(\w+) (\d+)':print 'word is', match[0]print 'digit is', match[1]if 'asd 123' |match| r'(?P<word>\w+) (?P<digit>\d+)':print 'word is', match['word']print 'digit is', match['digit']print 'asd 123 qwe 456' |findall| r'\d+'print 'asd 123 qwe 456' |split| r'\d+'print 'asd 123 qwe 456' |split(maxsplit=1)| r'\d+'
Package: inrgif
pygifA Python package to make gif from images and videosUsageFollowing methods can be utilized to make giffrom inrgif import images_to_gif, video_to_gif
import glob
from PIL import Image
#from video to gif..
obj = video_to_gif.make_gif(video_path="videoplayback.mp4",duration = 400, loop = 0 )
images_to_gif.save(obj,"video.gif")

#from folder all images.
#here folder name is test
bytesio_object= images_to_gif.make_gif(frame_folder="test",duration = 400, loop = 0)
images_to_gif.save(bytesio_object,"folder.gif")

#from PIL objects to gif..
frames = [Image.open(image) for image in glob.glob(f"{'test'}/*")]
bytesio_object = images_to_gif.frame_gif(frames=frames,duration = 400, loop = 0)
images_to_gif.save(bytesio_object,"frames.gif")To uninstall execute following..pip uninstall inrgif
Package: insanic-framework
InsanicInsanic is a microservice framework that extendssanic. It tries to include all the best practices for
developing in a microservice architecture.  To do this, certain stacks were needed, as a result Insanic is
a pretty opinionated framework.Think of this as django-rest-framework is to django but for microservice usage (and a lot less functionality than drf).Why we needed thisWe needed this because we need a framework for our developers to quickly develop services
while migrating to a microservice architecture.As stated before, this is very opinionated and the reason being, to reduce research time when
trying to select packages to use for their service.  It lays down all the necessary patterns and
bootstraps the application for quick cycle time between idea and deployment.FEATURESAuthentication and Authorization for Users and other Services (like drf)Easy Service RequestsNormalized Error Message FormatsConnection manager to redisUtils for extracting public routes (will help when registering to api gateway)Bootstrap monitoring endpointsThrottlingDocumentationFor more detailed information please refer to thedocumentationInstallationPrerequisitesCore dependencies include:sanic- extends sanichttpx- to make async requests to other servicesPyJWT- for authenticationRedis- for cache and throttlingTo install:$ pip install insanic-frameworkUsageFor very basic usage, it is pretty much the same as Sanic:Create a python file. ex.app.pyfrominsanicimportInsanicfrominsanic.confimportsettingsfromsanic.responseimportjsonsettings.configure()__version__="0.1.0"app=Insanic(__name__,version=__version__)@app.route('/')asyncdefexample(request):returnjson({"insanic":"Gotta go insanely fast!"})if__name__=='__main__':app.run(host='0.0.0.0',port=8000)Run withpython run.pyCheck in browser orcurlcurl http://localhost:8000/For more examples and usage, please refer to thedocumentation.TestingInsanic tests are run with pytest and tox.$ pytest

# with coverage
$ pytest --cov=insanic --cov-report term-missing:skip-covered

# a certain set of tests
$ pytest --pytest-args tests/test_pact.py

# tox, run for sanic > 19.12 and python >= 3.6
$ toxRelease HistoryFor full changelogs, please refer to theCHANGELOG.rst.Since Insanic was initially developed and released internally,
for changes made during that period, please refer toCHANGELOG_LEGACY.rst.ContributingFor guidance on setting up a development environment and
how to make a contribution to Insanic,
see theCONTRIBUTING.rstguidelines.Known IssuesInsanic cannot run with more than 1 worker.MetaDistributed under the MIT license. SeeLICENSEfor more information.Thanks to all the people at my prior company that worked with me to make this possible.LinksDocumentation:http://insanic.readthedocs.io/Releases:https://pypi.org/project/insanic-framework/Code:https://www.github.com/crazytruth/insanic/Issue Tracker:https://www.github.com/crazytruth/insanic/issuesSanic Documentation:https://sanic.readthedocs.io/en/latest/index.htmlSanic Repository:https://github.com/huge-success/sanic
Package: insanic-incendiary
IncendiaryA Tracing extension forInsanicthat integrates AWS X-Ray.Why?Tracing is needed in any micro service architecture, and this plugin
traces requests received and traces any requests withInsanic’s
interservice’s communications and sends it’s traced information
toAWS X-Ray.You might be asking why this package is called incendiary.
In the military there, rifles and machine guns are usually loaded
with tracer rounds every 3-4 rounds which help adjust for aim.
And tracer rounds usually have a mild “incendiary” effect to help
withvisibility.Tracing is a distributed system also samples(every X request) to
help with overallvisibilityof the system.FeaturesTracing with AWS X-ray.Creates a segment when Insanic receives a request.End the segment before return the response.Sampling configurationStarts and ends subsegments for interservice requests with Insanic.Capture other parts of your code.InstallationPrerequisites for using:python >= 3.6Local running instance of AWS X-Ray Daemon. (Running
instructions can be foundhere)AWS Credentials (if you want to actually send data to AWS-Ray)To install:pip install insanic-incendiaryBasic UsageBasic usage is actually quite simple. You should be able to get it
running without any extra configurations.To Initialize# app.py...frominsanicimportInsanicfromincendiaryimportIncendiaryapp=Insanic("my_app",version="0.1.0")Incendiary.init_app(app)Now if you run, you should be able to start tracing.To Capture# in_some_module_you_want_to_capture.pyfromincendiaryimportIncendiary# if async function@Incendiary.capture_async(name="Name of subsegment")asyncdefi_want_to_capture_async():pass# if sync function@Incendiary.capture(name="Name of subsegment")defi_want_to_capture():passThese functions will be its own subsegments in X-Ray.WarningYou should try and avoid capturing in a production environment,
because capturing has a performance impact.For more information please refer to Incendiary’sDocumentation.Release HistoryView releasehistoryContributingFor guidance on setting up a development environment and how to make a contribution to Incendiary,
see theCONTRIBUTING.rstguidelines.MetaDistributed under the MIT license. SeeLICENSEfor more information.Thanks to all the people at my prior company that worked with me to make this possible.LinksDocumentation:https://incendiary.readthedocs.io/en/latest/Releases:https://pypi.org/project/insanic-incendiary/Code:https://www.github.com/crazytruth/incendiary/Issue Tracker:https://www.github.com/crazytruth/incendiary/issuesInsanic Documentation:http://insanic.readthedocs.io/Insanic Repository:https://www.github.com/crazytruth/insanic/AWS X-Ray:https://docs.aws.amazon.com/xray/index.htmlaws-xray-sdk:https://docs.aws.amazon.com/xray-sdk-for-python/latest/reference/index.html
Package: inscar
INcoherent SCAtter Radar spectrumInfoCalculates an incoherent scatter radar spectrum based on the theory presented inHagfors (1961)andMace (2003).InstallingYou can installinscarviapipfromPyPI:$pipinstallinscarUsagePlease see theModules Referencefor details.Physical environmentThe plasma parameters that are supported natively by the program areRadar frequency[Hz]This will also set the radar wave number(=-4pi(radarfrequency)/(speedof light))Magnetic field strength[T]Aspect angle[1]Electron temperature[K]Ion temperature[K]Electron collision frequency[Hz]Ion collision frequency[Hz]Electron mass in atomic mass units[u]Ion mass in atomic mass units[u]Electron number density[m^(-3)]Ion number density[m^(-3)]Kappa value for the kappa velocity distribution function[1]Custom simulation set-ups can be made by inheriting from the different classes. Say you
want aParticleclass that also carries information about the temperature of a
collection of super thermal electrons as well as some height information. You then
inherit fromParticleand decorate it with the@attr.sobject:@attr.sclassRealDataParticle(isr.Particle):"""Create a particle object with extra attributes."""superthermal_temperature:float=attr.ib(default=90000,validator=is_positive,on_setattr=attr.setters.validate,)z:int=attr.ib(default=300)For more examples, see theassetsdirectory.Calculation methodThe program support different methods of calculating the spectrum, based on how you
assume the particles to be distributed. This includes a Maxwellian distribution
(IntMaxwellclass) and a kappa distribution (IntKappaclass), in addition to any
arbitrary isotropic distribution (IntLongclass) which can take anyVdfas
particle velocity distribution (default isVdfMaxwell). An example showing how a newVdfclass can be made is given inassets(VdfRealData).AsideThis program was developed during my master thesis. For a more detailed explanation of
the mathematical derivations and an analysis of the numerical precision of the program,
please refer to the thesis found atmunin.uit.no.ContributingTo contribute to the project, clone and install the full development version (usespoetryfor dependencies). There is also a.rtx.tomlfile that installs and sets up
an appropriate virtual environment ifrtxis available on
your system (it’s really good, check it out!).$gitclonehttps://github.com/engeir/inscar.git$cdinscar$# Set up a virtual environment, for example with rtx$rtxi$poetryinstall$pre-commitinstallBefore committing new changes to a branch you may run command$noxto run the full test suite. You will needPoetry,noxandnox-poetryinstalled for
this.
Package: inscopix-cnmfe
Inscopix CNMF-E is a constrained non-negative matrix factorization (CNMF) algorithm used to perform automated source extraction from microendoscopic calcium imaging movies. Specifically, it aims to retrieve the spatial location and temporal dynamics of neurons in a fluorescent 1-photon calcium imaging movie. The source code is open and available to developers who wish to further evaluate, modify, and improve the algorithm.
Package: inscreen-sdk-server
A changelog is available in theGitHub releases page.A feature comparison between different SDKs can be found in theglobal README.createInScreenTokenUse this method to create secure session tokens for inScreen.importinscreen_sdk_serverinscreen_token=inscreen_sdk_server.create_inscreen_token(api_key,v=1,user_id='USER_ID_HERE',team_id='TEAM_ID_HERE')
Package: inscribe
API wrapper forInscribeFor more information, please read ourdocumentation.Breaking ChangesFrom v3.0.0 onwards, the following API token formats have been removed:
1. Supplying anapi_keyargument.
2. Supplying anaccess_keyandsecret_key.From v3.0.0 onwards, you must supply asecret_tokenwhich is supplied to you on creation of an API token.Installationpip install inscribeUsageimportinscribeimportjson# API Authenticationapi=inscribe.Client(secret_token="YOUR_API_SECRET_TOKEN")# Create customer foldercustomer=api.create_customer(name="new")customer_id=customer['data']['id']# Upload documentdoc_obj=open("YOUR_FILE.pdf","rb")document=api.upload_document(customer_id=customer_id,document=doc_obj)document_id=document['result_urls'][0]['document_id']# Check documentresult=api.retrieve_document_results(customer_id=customer_id,document_id=document_id)print(json.dumps(result,indent=2))
Package: inscribe-Pysher
Pysherpysheris a python module for handling pusher websockets. It is based on @ekulyk'sPythonPusherClient. This fork is meant as
a continuation of the project and is actively maintained. A key difference is the dropped support for pre-3.5 Python versions.InstallationSimply runpython setup.py install- or install via pippip install pysher.This module depends on websocket-client module available from:http://github.com/websocket-client/websocket-clientExampleExample of using this pusher client to consume websockets::importpysher# Add a logging handler so we can see the raw communication dataimportloggingroot=logging.getLogger()root.setLevel(logging.INFO)ch=logging.StreamHandler(sys.stdout)root.addHandler(ch)pusher=pysher.Pusher(appkey)defmy_func(*args,**kwargs):print("processing Args:",args)print("processing Kwargs:",kwargs)# We can't subscribe until we've connected, so we use a callback handler# to subscribe when abledefconnect_handler(data):channel=pusher.subscribe('mychannel')channel.bind('myevent',my_func)pusher.connection.bind('pusher:connection_established',connect_handler)pusher.connect()whileTrue:# Do other things in the meantime here...time.sleep(1)Sending pusher events to a channel can be done simply using the pusher client supplied by pusher.  You can get it here:https://github.com/pusher/pusher-http-pythonimport pusher
pusher.app_id = app_id
pusher.key = appkey

p = pusher.Pusher()
p['mychannel'].trigger('myevent', 'mydata')PerformancePysher relies on websocket-client (websocket-client on pyPI, websocket import in code), which by default does utf5 validation in pure python. This is somewhat cpu hungry for lot's of messages (100's of KB/s or more). To optimize this validation consider installing the wsaccel module from pyPI to let websocket-client use C-compiled utf5 validation methods (websocket does this automatically once wsaccel is present and importable).ThanksA big thanks to @ekulyk for developing thePythonPusherClientlibrary.CopyrightMTI License - See LICENSE for details.ChangelogVersion 1.0.2Fixed#38 Fix missingẁsarg for websocket app callbacks, thanks to @squgeimVersion 1.0.0Updated#35 Support websocket-client >0.48 only and fix reconnect error, thanks to @agronholmThis change may break existing setups and is backwards-incompatible!Version 0.5.0Added#14 Added support for cluster configuration, thanks to @YvictorFixed#30 Require websocket-client version 0.48 or earlier.#24 Signature generation now works as expected, thanks to @agronholm#31 Name threads of the pysher lib for better debugging, thanks to @calilooVersion 0.4.2Fixed:#11 Global Logger settings no longer overridden in Connection loggerVersion 0.4.0Added:#8 Add support for WebSocket over HTTP proxy, thanks to @1tgrVersion 0.3.0Added:#7 Auto-resubscribe to channels after reconnecting, thanks to @pinealanFixed:#4, #5 Updated references to the library name, thanks to @deanmaniatisVersion 0.2.0Added:#2 Allow for token generated by auth endpoint, thanks to @wardcraigj#3 Allow instantiation with custom host, thanks to @wardcraigj
Package: insecure-but-secure-enough
This package is insecure, but secure enough.The idea for secure_enough to allow for "autologin cookies" and "instant login" urls for social web applications.This package is similar to "ItsDangerous", which is now popular but was unknown when this package was first written.Two important things to note:You should not use this module for financial transactions or sensitive info.  That would be egregiously silly.If you log someone in with this , you should note the login as "insecure" and require them to provide a password to view sensitive data or any 'write' activity.This package supports the following schemes for encrypting data:RSA encryption (really!)AES encryptionThis package supports the following schemes for signing data:No signing ( just serialize )HMAC SHA1 signingHMAC SHA256 signingRequest signing, as compatible with Facebook's auth scheme.The data transformation is as follows :serialize ( convert to JSON )base64 encode? obfuscate? encrypt? signUNTESTEDYou can create "configuration objects" that accept a timestamp and return an appropriate secret/encryption key===================There is a bit of documentation in:https://github.com/jvanasco/insecure_but_secure_enough/blob/main/insecure_but_secure_enough/__init__.pyThe following files give an interactive demo:https://github.com/jvanasco/insecure_but_secure_enough/blob/main/demo.py
https://github.com/jvanasco/insecure_but_secure_enough/blob/main/demo_performance.pyAlso note that the github source distribution contains tests.===================ToDo:The timebased providers is entirely untested.build out the demo and the test suite to support it.
Package: insecure-package
insecure packageInsecure Package, don’t use itFree software: MIT licenseDocumentation:https://insecure-package.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-10-21)First release on PyPI.
Package: insee-number-translator
INSEE number translatorExtract data from INSEE number (France)Getting startedFrom package# activate your venvpython-mpipinstallinsee-number-translator
insee269059913116714168127982980507From sourcespyenvvirtualenv3.7.9insee
pyenvlocalinsee
poetryinstall# restart your shellinsee269059913116714168127982980507Data sourcescities :https://public.opendatasoft.com/explore/dataset/correspondance-code-insee-code-postal/export/countries :https://www.insee.fr/fr/information/2028273departments :https://www.data.gouv.fr/fr/datasets/regions-departements-villes-et-villages-de-france-et-doutre-mer/
Package: insegel
Insegel is a theme forSphinx, intended to unify my project documentation’s
theme with that ofHrǽw. The theme’s documentation is available onReadTheDocs.InstallationTo use the Insegel theme, install it via pip:pip install insegelOr, you can add it to your Sphinx project’s requirements files.
You can then set Sphinx to use the theme via:html_theme = 'insegel'within your documentation’sconf.pyfile.
Package: insel
INSELpyThis module allows to executeINSELmodels from Python, and can be used to write unit tests for INSEL blocks and models.Single blocksIt can run single blocks, with the specified inputs, parameters and number of outputs:>>>importinsel>>>insel.block('pi')3.141593>>>insel.block('sum',2,3)5.0>>>insel.block('do',parameters=[1,10,1])[1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0]>>>insel.block('do',parameters=[1,10,1])[1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0]>>>insel.block('gain',2,5,7,parameters=[3],outputs=3)[6.0,15.0,21.0]INSEL templatesINSELpy can also run INSEL templates:% Calculates a*b
s 1 MUL  3.1 2.1
s 2 CONST
p 2
           $a || 3$
s 3 CONST
p 3
           $b || 3$
s 4 SCREEN  1.1
p 4
    '*'Templates will be searched inside the 'templates/' folder, relative to the current working directory.Either in the REPL:>>>insel.template('a_times_b',a=7,b=3)21.0>>>insel.template('photovoltaic/i_sc',pv_id='008823',temperature=25,irradiance=1000)5.87388or in complete scripts:importinselname='Roma'lat=41.8lon=12.58timezone=1irradiances=insel.template('weather/get_irradiance_profile',latitude=lat,longitude=lon)print(irradiances)# => [71.0, 106.0, 158.0, 208.0, 251.0, 275.0, 286.0, 257.0, 196.0, 137.0, 84.0, 63.0]print((insel.template('weather/average_irradiance_on_tilted_surface',tilt=30,azimuth=180,irradiance_profile=irradiances,latitude=lat,longitude=lon,timezone=timezone)))# => 195.8578Vseit modelsInsel graphical models (Vseit) are valid templates. Constants defined byDefine global constantblock can be modified in Python.If no value is specified in Python, the value defined in the block will be used by default.>>> insel.template('constants/x_plus_y.vseit')
3.0
>>> insel.template('constants/x_plus_y.vseit', x=5)
7.0
>>> insel.template('constants/x_plus_y.vseit', x=5, y=5)
10.0If the Vseit model contains a PLOT block, it will be deactivated by default. In order to launch gnuplot anyway,insel.template('model.vseit', gnuplot=True)can be used.INSEL modelsIt can also simply run complete models:>>>insel.run('/usr/local/insel/examples/meteorology/sunae.vseit')[]
Package: insensitive-dict
case-insensitive-dictA case insensitive dictionary that’s fully tested.  Primarily broken out from the requests packageFree software: MIT licenseDocumentation:https://case-insensitive-dict.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-07-26)First release on PyPI.
Package: insensitive-strenum
insensitive-strenumA case insensitive StrEnumInstallationYou can install this package with pip.$pipinstallinsensitive-strenumLinksUsagefrominsensitive_strenumimportInsensitiveStrEnumclassColor(InsensitiveStrEnum):RED='red'GREEN='green'BLUE='blue'>>>Color('RED')<Color.RED:'red'>>>>Color('red')<Color.RED:'red'>>>>Color('Red')<Color.RED:'red'>