Saravanan666/pypi-org huggingface dataset:
Package: iolConn
iolConn - ConectorInvertir Online® APIDescripciónConector python para API deInvertirOnline. Permite obtener datos de cotizaciones en tiempo real, informacion historica y operar*.*El ingreso de operaciones no se encuentra al momento disponible.PreparaciónSeteo del entornoPara utilizar el conector primero preparar un entorno de ejecución. En este caso se utilizó Anaconda y Python 3.7.conda create -n "\<nombre\>" python==3.7
conda activate \<nombre\>Una vez activado el entorno, instalamos los requerimientos.pip3 install -r requirements.txtUtilizaciónPuede encontrarse multiples ejemplos de uso dentro del directorio ejemplos. Los mismos traerán desde la API de Iol, la última cotización de Grupo Galicia en el mercado de Buenos Aires, historicos de cotizaciones y paneles completos.python3 example.pyConectorEl conector permite gestionar los bearings correspondientes, reutiliza los gestionados y renueva los vencidos. Consta de una clase que debe instanciarse para utilizar las distintas funcionalidades. Las mismas al 31/07/2023 son:gestionar()                                         # Gestion de API tokens.
descargar(solicitud, activo=None)                   # Descargar lotes de cotizaciones.
price_to_json(mercado='bcba', simbolo=None)         # Descargar ultima cotizacion de un simbolo.
hist_price_to_json(mercado='bcba', simbolo=None,    # Descarga de valores temporales para periodo 
                   desde=None, hasta=None)          # particular.OpcionesMercados al 08/06/21bCBAnYSEnASDAQaMEXbCSrOFXSolicitudes para función descargarpanelGeneralAcciones  -> Obtenemos cotizaciones de panel general de acciones.panelGeneralBonos     -> Obtenemos cotizaciones de panel general de bonos.opciones              -> Obtenemos cotizaciones de las distintas bases de opciones de un subyacente x.FechasFechas en formato 2023-07-23Documentaciónhttps://api.invertironline.com/
Package: iolink
IO-Link is a standardized point-to-point connection down at the edge layer of the factory automation pyramid.TheiolinkPython package allows access to IO-Link devices from within Python,
by providing a common abstraction layer to different IO-Link adapters.Note that for now, only the iqLink® device is supported and only under Windows.InstallationUse pip to install the libary.$ pip install iolinkApart from that, you need to install thedependencies that are requiredfor your adapter.Example usageThis example prints the product name of a connected device, by reading out the standard ISDU parameter 0x12.importiolink# create a port instancewithiolink.get_port(interface='iqLink')asport:# change state of the connected device to "Operate"port.change_device_state_to('Operate')# read standard ISDUisdu_0x12_data=port.read_device_isdu(0x12,0)# convert the received bytes object that's supposed# to be an ASCII string to a standard Python 3 string# and print the resultprint(f'Product Name:{isdu_0x12_data.decode("utf8")}')ContributingPull requests are welcome. For any major changes or questions regarding implementation, please open an issue to ask or discuss first.Licenseiolink is licensed under the MIT License.TrademarksIO-Link is a registered trademark of Profibus User Organization (PNO)
Package: iolite-client
Python IOLite ClientPython client forIOLite'sremote API.The client has basic functionality such as the authentication layer, some basic command models, and a client to change the
heating intervals are available.Build by reverse engineering theDeutsche WohnenMIA Android Appand subsequently their remote API.Read the followingshort poston how that was achieved.Used in making theIOLite Custom Componentfor Home Assistant.RequirementsPython 3.7+PoetryGetting credentialsOpen your Deutsche Wohnen tablet and begin pairing device process. Scan the QR code with your QR-Scanner and instead of
opening the QR code in your browser, copy it's content. You'll get the following payload:{"webApp":"/ui/","code":"<redacted>","basicAuth":"<redacted>"}basicAuthcontains base64 encoded HTTP basic username and password. Decode this to get the:separateduser:pass.codeis the pairing codeYou can decode the credentials using thescripts/get_credentials.pyscript. e.g.pythonscripts/get_credentials.py'{"webApp":"/ui/","code":"<redacted>","basicAuth":"<redacted>"}'DevelopmentInit your virtualenv environment (poetry install)Copy.env.exampleto.envDecode credentials (poetry run python scripts/get_credentials.py <basic-auth-value>)Add your credentials to.envfollowing the above processThepre-commitframework is used enforce some linting and style compliance on CI.To get the same behaviour locally you can runpre-commit installwithin your activated venv.Alternatively to run manually you can runpre-commit run -a.Access remote UIRunpoetry run python scripts/example.pyand copy the URL to your browser of choice.You will need the HTTP basic credentials you defined earlier within the.envfile.Be sure to runpoetry install -E devto get the required dependencies for this.Usage exampleA jupyter notebook showcasing the heating interval scheduler can be found innotebooks/Heating Scheduler.ipynb. To
access the notebook installjupyter notebook or jupyter labinto the virtual environment and run the notebook:poetryshell
pipinstallnotebook
jupyternotebookIf running the notebook gives you aModuleNotFoundError, you may fix this issue by changing the notebook's kernel (followingthis StackOverflow post):poetryshell
python-mipykernelinstall--user--name=`basename$VIRTUAL_ENV`Then switch the kernel in the notebook's top menu under:Kernel > Change Kernel.LicenceMIT
Package: iolocker
iolockerSimple file locker.Installation:python -m pip install [--upgrade] iolockerUsage:FileLocker:# -*- coding: UTF-8 -*-fromiolockerimportFileLocker,LOCKif__name__=='__main__':file_handle=open("test_file.txt","a",encoding="UTF-8")lock=FileLocker()fh=lock.acquire(file_handle,flags=LOCK.EX)fh.write("Testing file lockers...\n")lock.release(handle=fh)or as context-manager:# -*- coding: UTF-8 -*-fromiolockerimportFileLocker,LOCKif__name__=='__main__':withopen("test_file.txt","a",encoding="UTF-8")asfh:withFileLocker(fh,flags=LOCK.EX)aslocked:locked.write("Testing file lockers...\n")FileHandler:# -*- coding: UTF-8 -*-fromiolockerimportFileHandlerif__name__=='__main__':file_path:str=r"test_file.txt"withFileHandler(file_path,"a",encoding="UTF-8")asfh:fh.write("Testing file handlers...\n")
Package: iolsmp
The Zero-Inflated Log Linear Regression package provides a set of functions and utilities to handle zero-inflated cases in log linear regression models. It offers methods for estimating model parameters, calculating predicted values, and handling clustered data. This package is particularly useful when dealing with datasets where the dependent variable has excess zeros, allowing for more accurate and robust analysis of log linear regression models. It leverages the power of numpy, statsmodels, and pandas libraries to provide efficient and reliable computations for zero-inflated log linear regression analysis.
Package: iomanager
iomanageris a tool for guaranteeing the structure and composition of
input and output from a Python program, with web applications in mind.If you are using Python 2.7.4 or lower, you should useiomanagerversion 0.3.5. If you are using Python 3.x, you should use the most current
version ofiomanager. Python 2.x is no longer supported starting withiomanagerversion 0.4.0.For more information aboutiomanager, see the project’s github page:github.com/jmatthias/iomanager
Package: iomete-airflow-plugin
IOMETE Airflow PluginThis Plugin helps to trigger/run Spark Jobs created in IOMETE platform.InstallationThis plugin could be easily installed withpip. Just run the following in your aiflow server:pipinstalliomete-airflow-pluginRestart you server and check the plugins page on Airflow's admin panel to make sure plugin loaded successfully.ConfigurationYou need to addiomete_access_tokenandiomete_hostkeys to airflow's Variables page.Check our documentation page on how to generate personal access token.UsageHere are sample DAG:fromairflowimportDAGfromiomete_airflow_plugin.iomete_operatorimportIometeOperatordag=DAG(dag_id="...",default_args={},schedule_interval=None)task=IometeOperator(task_id="random_task_id",job_id="1b0fc29b-5491-4c0a-94ea-48e304c3c72e",# Spark Job ID or Name in IOMETE platform.dag=dag,)ResourcesFor more information check:Github repositoryIOMETE Docs
Package: iomete-sdk
IOMETE SDKThis is the IOMETE SDK for Python.
It provides convenient access to the IOMETE API from applications written in the Python language.InstallationInstall the package with:pipinstalliomete-sdkUsageSpark Job APIImport and initialize the client:fromiomete_sdk.sparkimportSparkJobApiClientfromiomete_sdk.api_utilsimportClientErrorHOST="<YOUR_DATAPLANE_HOST>"# https://dataplane-endpoint.example.comAPI_KEY="<YOU_IOMETE_API_KEY>"job_client=SparkJobApiClient(host=HOST,api_key=API_KEY,)Create a new job:response=job_client.create_job(payload={"name":"job-name","template":{"main_application_file":"local:///opt/spark/examples/jars/spark-examples_2.12-3.2.1-iomete.jar","main_class":"org.apache.spark.examples.SparkPi","arguments":["10"]}})job_id=response["id"]Get jobs:response=job_client.get_jobs()Get job:response=job_client.get_job(job_id=job_id)Update job:response=job_client.update_job(job_id=job_id,payload={"template":{"main_application_file":"local:///opt/spark/examples/jars/spark-examples_2.12-3.2.1-iomete.jar","main_class":"org.apache.spark.examples.SparkPi","arguments":["10"]}})Delete job:response=job_client.delete_job(job_id=job_id)Submit job run:response=job_client.submit_job_run(job_id=job_id,payload={})Cancel job run:response=job_client.cancel_job_run(job_id=job_id,run_id=run_id)Get Job Runs:response=job_client.get_job_runs(job_id=job_id)Get Job Run:response=job_client.get_job_run(job_id=job_id,run_id=run_id)Get Job Run Logs:response=job_client.get_job_run_logs(job_id=job_id,run_id=run_id)Get Job Run Metrics:response=job_client.get_job_run_metrics(job_id=job_id,run_id=run_id)
Package: iometrics
iometricsMonitor and log Network and Disks statistics in MegaBytes per second.InstallpipinstalliometricsUsagePytorch-lightning integrationfrompytorch_lightningimportTrainerfromiometrics.pytorch_lightning.callbacksimportNetworkAndDiskStatsMonitornet_disk_stats=NetworkAndDiskStatsMonitor()trainer=Trainer(callbacks=[net_disk_stats])Metrics generatednetwork/recv_MB_per_sec– Received MB/s on all relevant network interfaces as a SUM.network/sent_MB_per_sec– Sent     MB/s on all relevant network interfaces as a SUM.disk/util%– Disk utilization percentage as the average of all disk devices.disk/read_MB_per_sec– Disks read MB/s    as the sum of all disk devices.disk/writ_MB_per_sec– Disks written MB/s as the sum of all disk devices.disk/io_read_count_per_sec– Disks read I/O operations per second    as the sum of all disk devices.disk/io_writ_count_per_sec– Disks written I/O operations per second as the sum of all disk devices.Screen shotPure-Python implementation (zero dependencies)Quick checkpython-c'from iometrics.example import usage; usage()'Example output|        Network (MBytes/s)       | Disk Util |            Disk MBytes          |           Disk I/O          |
|     Received    |     Sent      |     %     |    MB/s Read    |  MB/s Written |     I/O Read    | I/O Write |
|   val  |   avg  |  val  |  avg  | val | avg |  val   |  avg   |  val  |  avg  |   val  |   avg  | val | avg |
| ------:| ------:| -----:| -----:| ---:| ---:| ------:| ------:| -----:| -----:| ------:| ------:| ---:| ---:|
|    4.6 |    3.5 |   0.1 |   0.1 |  49 |   2 |   52.8 |    1.1 |   0.0 |   0.9 |    211 |      4 |   5 |  18 |
|    4.1 |    3.5 |   0.1 |   0.1 |  61 |   3 |   60.4 |    2.4 |  40.3 |   1.7 |    255 |     10 | 149 |  21 |Full codeimporttimefromiometricsimportNetworkMetrics,DiskMetricsfromiometrics.exampleimportDUAL_METRICS_HEADERnet=NetworkMetrics()disk=DiskMetrics()foriinrange(100):time.sleep(1)net.update_stats()disk.update_stats()ifi%15==0:print(DUAL_METRICS_HEADER)row=(f"|{net.mb_recv_ps.val:6.1f}|{net.mb_recv_ps.avg:6.1f}"f"|{net.mb_sent_ps.val:5.1f}|{net.mb_sent_ps.avg:5.1f}"f"|{int(disk.io_util.val):3d}|{int(disk.io_util.avg):3d}"f"|{disk.mb_read.val:6.1f}|{disk.mb_read.avg:6.1f}"f"|{disk.mb_writ.val:5.1f}|{disk.mb_writ.avg:5.1f}"f"|{int(disk.io_read.val):4d}|{int(disk.io_read.avg):4d}"f"|{int(disk.io_writ.val):3d}|{int(disk.io_writ.avg):3d}"f"|")print(row)Run in a Docker containerContainers don't have access to the host's network statistics, therefore this workaround is needed.# on the host machine (not inside the container)iometricsreplicateproc&after you run above script in the host you should mount the/host/proc/net/devto the container. for example:dockerrun-it-v"/tmp/proc_net_dev:/host/proc/net/dev:ro"<YOURIMAGE>ContributingSeeCONTRIBUTING.md
Package: iommi
iommi is a toolkit to build web apps faster. It’s built on Django but goes a lot further.It has:forms: that feel familiar, but can handle growing complexity better than Django’s formstables: that are powerful out of the box and scale up to arbitrary complexitya system tocompose parts:, like forms, menus, and tables, into bigger pagestools that will speed up your development like live edit, jump to code, great feedback for missing select/prefetch related, a profiler, and more.great error messages when you make a mistakeExample:classIndexPage(Page):title=html.h1('Supernaut')welcome_text='This is a discography of the best acts in music!'artists=Table(auto__model=Artist,page_size=5)albums=Table(auto__model=Album,page_size=5,)tracks=Table(auto__model=Album,page_size=5)urlpatterns=[path('',IndexPage().as_view()),]This creates a page with three separate tables, a header and some text:For more examples, see theexamples project.Getting startedSeegetting started.Running testsYou need to have tox installed, then:make venv
source venv/bin/activate
make test
make test-docsLicenseBSDDocumentationhttps://docs.iommi.rocks
Package: iomotions
iomotionsThis (unofficial) project provides useful utilities for interfacing withiMotionssoftware from third party
applications.InstallationTo use this module add the following line to yourrequirements.txtfile:iomotions>=0.1.0Then install your requirements as usual.pip3install-rrequirements.txtiMotions SetupIMPORTANT:In order for the following functions to work you must ensure that inGlobal Preferences > API > Event ReceivingbothEnable event receptionandUse TCPare checked.APIiomotionsmodulestart_scene_recording(ip_address, scene_name, scene_description = '')Instruct theiMotionsinstance running at the designated IP address to start recording a scene with the prescribed name and optional description.end_scene_recording(ip_address, scene_name)Instruct theiMotionsinstance running at the designated IP address to end its recording of the named scene.class EventEmitterHelper class that stores connection information and exposes a simpler messaging API. This class is not well supported but can be used to send messages over UDP in place of the default TCP behavior of the above APIs.iomotions.otreemoduleiomotionsincludes API for integrating withoTreeout of the box. The providediomotions.otree.pages.ScenePageclass extends oTree'sPageto record the page as a Scene iniMotions.class ScenePage(otree.api.Page)TheScenePageclass should be subclassed in place of oTree'sPagewhen you wantiMotionsto record the page. By using aScenePageiMotionsrecords a scene starting when the page begins loading and ending when the page transitions. The scene name is derived from the class name by default the current round number.scene_nameIf you would like to provide an alternative scene identifier than the class name, simply override thescene_nameproperty with the string you would like to use instead.scene_descriptionWhen provided, the description will be included with the scene marker iniMotions.Full Example# <app-name>/__init__.pyfromiomotions.otree.pagesimportScenePage...classQuizPage(ScenePage):# optional, would default to QuizPage<round_number>scene_name='Question'# optionalscene_description='General knowledge question'Note:The current round number will also be appended to the scene name to account for pages that appear in multi-round apps.Note:For simplicity to the user theScenePageclass extends private functions fromPage. The primary motivation for this is to avoid unexpected breakage from overridingbefore_next_pagewithout callingScenePage's implementation. Since the overridden methods are private it's possible that a future version of oTree will result in changes that break this API.
Package: iomux
iomuxIO buffer multiplexer.importsysfromcontextlibimportredirect_stdout,redirect_stderrimportiomuxcapture=iomux.StringMux()withredirect_stdout(capture.out),redirect_stderr(capture.err):print('aaa')print('bbb',file=sys.stderr)print('aaa')print('bbb',file=sys.stderr)assertcapture.getvalue()=='aaa\nbbb\naaa\nbbb\n'assertcapture.getvalue('out')=='aaa\naaa\n'assertcapture.getvalue('err')=='bbb\nbbb\n'assertlist(capture.values())==[('out','aaa\n'),('err','bbb\n'),('out','aaa\n'),('err','bbb\n'),]
Package: ionburst-sdk-python
Ionburst SDK for PythonTheIonburst SDK for Pythonenables developers to easily integrate withIonburst Cloud, building in ultra-secure and private object storage to their applications.API DocsSDK DocsIssuesSDK SamplesGetting StartedInstallationpip3installionburst-sdk-python# ORpip3installionburst-sdk-python--userConfigurationThe Ionburst SDK can get its configuration (ionburst_id, ionburst_key, ionburst_uri) from the following three files.Ifionburst_idandionburst_keyare not specified by environment variable, they are obtained from the credentials file with information from theconfig.jsonfile.Ifionburst_uriis not specified in Ionburst constructor, it’ll first checkconfig.json, and then the credentials file.Environment VariablesIONBURST_ID=IB******************IONBURST_KEY=eW91aGF2ZXRvb211Y2h0aW1lb255b3VyaGFuZHMhconfig.json file{"Ionburst":{"Profile":"example","IonburstUri":"https://api.example.ionburst.cloud/","TraceCredentialsFile":"OFF"}}Credentials file[example]ionburst_id=IB******************ionburst_key=eW91aGF2ZXRvb211Y2h0aW1lb255b3VyaGFuZHMhionburst_uri=https://api.example.ionburst.cloud/UsageInitialisefromIonburstimportIonburstionburst=Ionburst()orfromIonburstimportIonburstionburst=Ionburst("https://api.example.ionburst.cloud/")Upload Dataresult=ionburst.put({id:'...',data:'...',classstr:'...'//NotRequired})Download Dataresult=ionburst.get(id)Delete Dataresult=ionburst.delete(id)Upload Data Deferredtoken=ionburst.startDeferredAction({action:'PUT',id:'...',data:'...',classstr:'...'//NotRequired})Download Data Deferredtoken=ionburst.startDeferredAction({action:'GET',id:'...'})Check Data Deferredresult=ionburst.checkDeferred(token)Fetch Data Deferredresult=ionburst.fetch(token)Get Classifcationsdata=ionburst.getClassifications()Getting HelpPlease use the following community resources to get help. We useGitlab issuesto track bugs and feature requests.Join the Ionburst Cloud community onSlackGet in touch withIonburst SupportIf it turns out that you may have found a bug, please open anissueOpening IssuesIf you find a bug, or have an issue with the Ionburst SDK for Python we would like to hear about it. Check the existingissuesand try to make sure your problem doesn’t already exist before opening a new issue. It’s helpful if you include the version ofionburst-sdk-pythonand the OS you’re using. Please include a stack trace and reduced repro case when appropriate, too.TheGitlab issuesare intended for bug reports and feature requests. For help and questions with using the Ionburst SDK for Python please make use of the resources listed in the Getting Help section. There are limited resources available for handling issues and by keeping the list of open issues clean we can respond in a timely manner.SDK Change LogThe change log for the SDK can be found in the Gitlab ReleasespageContributorsA massive thanks toCostin Botezfor developing this SDK.TestsDependenciespython-dotenv,requestscertifi,chardet,idna,urllib3,
Package: ion-detective
Ion DetectiveThis library provides functionalities to assist students to perform qualitative chemical analysis in Python.Usually, this analysis is performed in the wet lab, in which students are provided a sample probe that contains
a random composition of anions or cations, respectively. To determine the composition of their sample, students
have to perform a variety of chemical detection reactions.This library tries to simulate this experience in a virtual, text-based way and contains real workflows for the
reactions.Installationpip install ion_detective
Package: ionic-haystack
Ionic Commerce tool for HaystackIonic Haystack provides an Agent Tool integration to Ionic Commerce. This tool will enable e-commerce for your agent , allowing your users to ask for product recommendations and purchase products through the agent chat interface.InstallationYou can install the package from PyPI usingpip:python3-mpipinstallionic-haystackorpoetry:poetryaddionic-haystackUsageGet started quickly using Ionic Commerce with Haystack by creating an IonicShoppingTool and adding it to your agent's tools.importosfromhaystack.agentsimportToolfromhaystack.agents.conversationalimportConversationalAgentfromhaystack.agents.memoryimportConversationMemoryfromhaystack.nodesimportPromptNodefromionic_haystack.prompt_templatesimportionic_templatefromionic_haystack.toolimportIonicShoppingToolionic_node=IonicShoppingTool(api_key="my_ionic_api_key")ionic_tool=Tool(name="Ionic",pipeline_or_node=ionic_node,description=ionic_template)memory=ConversationMemory()prompt_node=PromptNode("gpt-3.5-turbo",api_key=os.getenv("OPENAI_API_KEY"),max_length=256,stop_words=["Observation:"])agent=ConversationalAgent(prompt_node,tools=[ionic_tool],memory=memory,prompt_template="deepset/conversational-agent")ExamplesExample Ionic Agent:
Package: ionic-langchain
Ionic LangchainIonic Langchain provides a wrapper around the Ionic Commerce's SDK for use as aToolin a custom Langchain agent.  This tool will enable e-commerce for your agent, allowing your users to ask for product recommendations and purchase products through the agent chat interface.InstallationThis tool requires at leastlangchain@0.0.350and can work with any greater patch release the0.0.xseries.We currently support python 3.8.10 and above, but if you need support for a lower version, please open an issue and we will add support.You can install the package from PyPI usingpip:python3-mpipinstallionic-langchainorpoetry:poetryaddionic-langchainUsageimportosfromtypingimportListfromionic_langchain.toolimportIonicToolfromlangchain.agentsimportAgentType,Toolfromlangchain.agentsimportinitialize_agentfromlangchain.chat_modelsimportChatOpenAItools=[IonicTool().tool(),# your other tools,]agent=initialize_agent(tools=tools,llm=ChatOpenAI(openai_api_key="your_key_here",temperature=0.7),agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,handle_parsing_errors=True,verbose=True,)input="Where can I get tide pods"agent.run(input=input)Please see thelangchain agent docsfor more details on how to build and run agentsCustomizing the SDKionic_langchain.tool.IonicTool's constructor accepts an instance ofionic_langchain.tool.Ionic, a wrapper aroundour SDK.ionic_langchain.tool.Ionic, in turn accepts an  instance of that SDK, so you can provide the tool with a custom configuration:importosfromionic.sdkimportIonicasIonicSDKfromionic_langchain.toolimportIonic,IonicToolsdk=IonicSDK(api_key_header=os.environ.get("IONIC_API_KEY"))ionic=Ionic(sdk=sdk)tool=IonicTool(ionic=ionic).tool()DevelopmentComing soon. Please feel free to open an issue.