Saravanan666/pypi-org huggingface dataset:
Package: ibm-vpc
IBM Cloud Virtual Private Cloud (VPC) Python SDK Version 0.20.0Python client library to interact with variousIBM Cloud Virtual Private Cloud (VPC) Service APIs.This SDK usesSemantic Versioning, and as such there may be backward-incompatible changes for any new0.y.zversion.Table of ContentsOverviewPrerequisitesInstallationUsing the SDKSetting up VPC serviceQuestionsIssuesOpen source @ IBMContributingLicenseOverviewThe IBM Cloud Virtual Private Cloud (VPC) Python SDK allows developers to programmatically interact with the following
IBM Cloud services:Service NameImported Class NameVPCVpcV1PrerequisitesAnIBM Cloudaccount.An IAM API key to allow the SDK to access your account. Create an apikeyhere.Python version 3.7.6 or above.InstallationTo install, usepiporeasy_install:pipinstall--upgrade"ibm-vpc>=0.20.0"oreasy_install--upgrade"ibm-vpc>=0.20.0"Using the SDKFor general SDK usage information, see theIBM Cloud SDK Common README.Setting up VPC servicefromibm_vpcimportVpcV1fromibm_cloud_sdk_core.authenticatorsimportIAMAuthenticatorfromibm_cloud_sdk_coreimportApiExceptionauthenticator=IAMAuthenticator('apikey')service=VpcV1(authenticator=authenticator)#  Listing VPCsprint("List VPCs")try:vpcs=service.list_vpcs().get_result()['vpcs']exceptApiExceptionase:print("List VPC failed with status code "+str(e.code)+": "+e.message)forvpcinvpcs:print(vpc['id'],"\t",vpc['name'])#  Listing Subnetsprint("List Subnets")try:subnets=service.list_subnets().get_result()['subnets']exceptApiExceptionase:print("List subnets failed with status code "+str(e.code)+": "+e.message)forsubnetinsubnets:print(subnet['id'],"\t",subnet['name'])#  Listing Instancesprint("List Instances")try:instances=service.list_instances().get_result()['instances']exceptApiExceptionase:print("List instances failed with status code "+str(e.code)+": "+e.message)forinstanceininstances:print(instance['id'],"\t",instance['name'])instanceId=instances[0]['id']instanceName=instances[0]['name']#  Updating Instanceprint("Updated Instance")try:newInstanceName=instanceName+"-1"instance=service.update_instance(id=instanceId,name=newInstanceName,).get_result()exceptApiExceptionase:print("Update instance failed with status code "+str(e.code)+": "+e.message)print(instance['id'],"\t",instance['name'])QuestionsIf you have difficulties using this SDK or you have a question about the IBM Cloud services,
ask a question atStack Overflow.IssuesIf you encounter an issue with the project, you are welcome to submit abug report.
Before you create a new issue, search for similar issues. It's possible that someone has already reported the problem.Open source @ IBMFind more open source projects on theIBM GitHub Page.ContributingSeeCONTRIBUTING.LicenseThis SDK is released under the Apache 2.0 license.
The license's full text can be found inLICENSE.
Package: ibm-vpc-ray-connector
ibm-vpc-ray-connector enables Ray cluster to be deployed over IBM VPC infrastructureSetupUse of python virtual environment, e.g.virtualenv, is greatly encouraged to avoid installing Python packages globally, which could break system tools or other projectsInstall ibm-vpc-ray-connector on your machinepip install ibm-vpc-ray-connectorConfigure ibm vpcGenerate API KEYCreate/Update security groupto have SSH, Redis and Ray Dashboard ports open: 22, 8265 and 6379Create cluster config fileUse interactiveibm-ray-configconfig tool to generate cluster.yaml configuration filepip install ibm-ray-config
ibm-ray-config -o cluster.yamlUsageUse generated file to bring ray cluster up, e.gray up cluster.yaml.After finished, find cluster head node and worker nodes ips:ray get-head-ip cluster.yaml
ray get-worker-ips cluster.yamlTo get status of the clusterray status --address PUBLIC_HEAD_IP:6379Use browser to open ray dashboard on PUBLIC_HEAD_IP:8265. Alternatively useray dashboardto forward ray cluster dashboard to your localhost.Submit example taskray submit cluster.yaml templates/example.pyLogsLogs for the node_provider can be found under/tmp/connector_logs/.Logs of all levels will be written toconnector_logs.The default log level for console output isINFO.
Package: ibm-watsonxdata
IBM Cloud Watsonx.data Python SDK 0.4.0Python client library to interact with variousIBM Cloud Watsonx-data APIs.Disclaimer: this SDK is being released initially as apre-releaseversion.
Changes might occur which impact applications that use this SDK.Table of ContentsOverviewPrerequisitesInstallationUsing the SDKQuestionsIssuesOpen source @ IBMContributingLicenseOverviewThe IBM Cloud Watsonx-data Python SDK allows developers to programmatically interact with the following
IBM Cloud services:Service NameModule NameImported Class NameWatsonx.datawatsonx_data_v2ibm_watsonxdataPrerequisitesAnIBM Cloudaccount.An IAM API key to allow the SDK to access your account. Create onehere.Python 3.7 or above.InstallationTo install, usepip:pipinstall--upgradeibm-watsonxdataThen in your code, you can import the appropriate service like this:from ibm-watsonxdata.<service-module-name> import *where<service-module-name>is the service's module name from the table aboveUsing the SDKFor general SDK usage information, please seethis linkQuestionsIf you are having difficulties using this SDK or have a question about the IBM Cloud services,
please ask a question atStack Overflow.IssuesIf you encounter an issue with the project, you are welcome to submit abug report.
Before that, please search for similar issues. It's possible that someone has already reported the problem.Open source @ IBMFind more open source projects on theIBM Github PageContributingSeeCONTRIBUTING.md.LicenseThis SDK is released under the Apache 2.0 license.
The license's full text can be found inLICENSE.
Package: ibm-whcs-sdk
IBM Watson Health Cognitive Services Python SDK Version 1.11.2OverviewThe IBM Watson Health Cognitive Services (WHCS) Python SDK allows developers to programmatically interact with the following IBM Cloud service:Service NameImported Class NameAnnotator for Clinical dataAnnotatorForClinicalDataV1NOTE:  You must be signed in to IBM Cloud to see the docs.PrerequisitesAnIBM Cloudaccount.An IAM API key to allow the SDK to access your provisioned service instance. For instructions about copying the credentials of an existing service instance, or creating a new service instance, refer to Getting Startedhere.Python 3.6 or aboveInstallationTo install, usepippipinstall--upgradeibm-whcs-sdkUsing the SDKFor general SDK usage information, please seethis linkQuestionsIf you are having difficulties using this SDK or have a question about the IBM Cloud services,
please ask a question atStack Overflow.IssuesIf you encounter an issue with the project, you are welcome to submit abug report.
Before that, please search for similar issues. It's possible that someone has already reported the problem.Open source @ IBMFind more open source projects on theIBM Github PageContributingSeeCONTRIBUTING.LicenseThe IBM Watson Health Cognitive Services Python SDK is released under the Apache 2.0 license.
The license's full text can be found inLICENSE.
Package: ibm-wos-utils
IBM Watson OpenScale Utilitiesibm-wos-utilsis a utility library used to create multiple artifacts required by IBM Watson OpenScale.Important Notice:If you are usingIBM Watson OpenScale on Cloud Pak for Data 3.0.x or 3.5.x, please installibm-wos-utils v2.1.1. Drift Archive generation requiresscikit-learn v0.20.2for these releases.If you are usingIBM Watson OpenScale on Cloud Pak for Data 3.5.10 or later, please installibm-wos-utils v2.1.5. Drift Archive generation requiresscikit-learn v0.24.2for these releases.If you are usingIBM Watson OpenScale on Cloud Pak for Data 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, please installibm-wos-utils v4.0.34. Drift Archive generation requiresscikit-learn v0.24.2for these releases.If you are usingIBM Watson OpenScale on Cloud Pak for Data 4.0.8 or 4.0.9, please installibm-wos-utils version 4.1.x. Drift Archive generation requiresscikit-learn v1.0.2.If you are usingIBM Watson OpenScale on Cloud Pak for Data 4.5.x, please installibm-wos-utils version 4.5.x. Drift Archive generation requiresscikit-learn v1.0.2.If you are usingIBM Watson OpenScale on Cloud Pak for Data 4.6.x, please installibm-wos-utils version 4.6.x. Drift Archive generation requiresscikit-learn v1.0.2.If you are usingIBM Watson OpenScale on Cloud Pak for Data 4.7.x, please installlatest ibm-wos-utils version 4.7.x. Drift Archive generation requiresscikit-learn v1.1.1.If you are usingIBM Watson OpenScale on Cloud Pak for Data 4.8.xorIBM Watson OpenScale on Cloud, please installlatest ibm-wos-utils version 4.8.x. Drift Archive generation requiresscikit-learn v1.1.1.
Package: ibm-zdnn-plugin
ibm-zdnn-pluginThe ibm-zdnn-plugin is a device plugin for TensorFlow (PluggableDevice) that leverages theIBM z Deep Neural Network(zDNN) library for accelerated inferencing. The zDNN library contains a set of primitives that support Deep Neural Networks. These primitives transparently target the IBM Integrated Accelerator for AI on IBM z16™ hardware.DocumentationDocumentation for the ibm-zdnn-plugin can be foundhere.Licenses and TrademarksThis library is distributed under theInternational License Agreement for Non-Warranted
Programs.The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark on a worldwide basis.TensorFlow, the TensorFlow logo and any related marks are trademarks of Google Inc.Additional license and notice files are within thelicenses-and-noticesdirectory of the the GitHub repository foundhere.DisclaimerIBM's statements regarding its plans, directions and intent are subject to change or withdrawal without notice at IBM's sole discretion. Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision. The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or functionality. Information about potential future products may not be incorporated into any contract. The development, release, and timing of any future features or functionality described for our products remains at our sole discretion.
Package: ibnsession
网络自动化运维工具该工具包含了网络设备一些基础操作，极大的简化了编程难度，对国产设备有着良好的支持。account_verification() 检查账号是否具有config权限get_running_config() 获取设备的running configinspect_config() 检查指定的配置，就是 show run | in XXXinspect_session() 对于防火墙，可以用该方法检查防火墙sessionexecute_script() 对设备进行配置设备支持列表:山石防火墙华为路由交换设备思科的asa防火墙，路由器运行依赖[root@local ~]# pip show netmiko
Metadata-Version: 1.1
Name: netmiko
Version: 2.0.2编程示例from collections import namedtuple

ac_info = namedtuple('ac_info', ['username', 'password', 'enable_pass'])
ac_info.username = "username"
ac_info.password = "password"
ac_info.enable_pass = "en_pass"

dev_info = namedtuple('dev_info', ["dev_ip", "dev_name"])
dev_info.dev_ip = "192.168.0.1"

# 这里的 hs_SG6000 指的是所支持的山石防火墙的型号
# 目前支持 huawei_S5720 , asa_5545, srx_550 等等
dev_ob = hs_SG6000(ac_info,dev_info)

# 可以进行账号校验，判断账号是否登录成功且具有config权限
if dev_ob.account_verification():
    print("账号校验成功，具有CONFIG权限")

# 可以配置脚本
cmd_lines = []
cmd_lines.append('address "TTTT_172.19.1.1"')
cmd_lines.append('  ip 172.19.1.1/32')
cmd_lines.append('exit')

dev_ob.execute_script(cmd_lines):其他说明在执行 execute_script 函数之前最好先看一下配置有问题请联系zofon@qq.com版本记录当前版本：1.5.21.5.2给linux增加一个get_running_config函数，可以用这个简单获取服务器的运行状态1.5.1ibnsession.init.pycisco -> cisco_ios1.5.0重新调整设备的分类，和 netmiko 保持一致1.4.3一些格式上的，兼容性优化1.4.2更新 linux 主机相关的函数优化 网络设备代码1.4.0添加linux主机相关的函数，后续会陆续更新1.3.6优化了一些输出的BUG1.3.5调整所有支持型号的基类示例中添加 ：from collections import namedtuple细化README.md1.3.4调整一下版本位置，在更新版本之前，应该先清空 dist 目录文件夹1.3.3优化了 setup.py 文件，以后版本信息就通过这个位置自动获取了1.3.2优化了山石防火墙的账号校验部分添加中文的介绍，以后会优先更新中文添加了一个思科路由器的型号 cisco_C3900，把原本的 asa_5545 变成基类setup 的版本和这个保持同步1.3.1添加华为的设备配置过程不在输出内容添加一个参数：config_mode_tag1.0.0添加 huawei.py添加 cisco.py0.1.0SRX 防火墙功能更新添加功能（还不完善）: generate_routing_script(self, route_info_list)添加功能 : get_running_config(self)0.02 Add hillstone related update添加功能（还不完善） : generate_access_script(self,basic_info,session_list)添加功能（还不完善） : execute_access_script(self,access_script_list)0.01 Design this package
Package: ibolang
ContentsIntroductionExampleInstallChange LogIntroductionIgbo is an indigenous language popularly spoken in Nigeria, Ibolang is a full
extension of the Igbo language in Python.
With Ibolang, you can write and run python like programs in IgboIbolang acts like python 3 and plays like python 3, it maintains all the python syntax
and methods.
user could use it to learn programming in their native language.Exampleibolang is highly user friendly, the following is a simple “HelloWorld” programdeputa(“Uwa Aloo”)running this, will diplayUwa Alooto console, which translated to English is “Hello World”you can code more complex code by installing ibolang to your PC:To run programs is as simple as:$ ibolang filename.iblfrom your preferred shell or command lineyou can go through the dictionary on:
*https://github.com/ORC-1/ibolang/blob/master/dictionary.txtto get an exhaustive list of all currently available commands and there English translationInstallIf you’d like to play Ibolang with full features included, you should install Ibolang.You could use pip or easy_install command to install Ibolang:$ pip install Ibolangor$ easy_install -U Ibolangto use easy_install command, you should install distribute module for python 3 first:http://pypi.python.org/pypi/distribute/And check your system path params if it contains python3.x/bin path.ex: edit .bashrc to include “/Library/Frameworks/Python.framework/Versions/3.x/bin” in your PATH parameter.For sytem running multiple version of python, you are better of using a virtual enviroment
with Ibolang:$ conda create -n Ibolang python==3.XXor using Virtualenv$ virtualenv ibolang python==3.XXLastly you can clone the repo using this urlhttps://github.com/ORC-1/ibolang.git: navigate to the folder path and run python setup.py
Copy the source files into your script folder, you should highly consider using
a virtual enviroment if you are using this option and the previous options are better
offChange LogYou could view the ChangeLog to see what’s new in these version.https://github.com/ORC-1/ibolang/blob/master/CHANGELOG.txt
Package: ibonds
I BondsThis is a python library that calculates the current value of aSeries I Savings Bond.
The historic rates are supplied via a data file which is updated every time
a new rate is released byTreasury Direct.InstallationThis project can be installed viapip.
To install the library, run:pip install ibondsIf you are interested in tracking more than one I Bond, and would prefer
a command line interface, please check outlakshmi. If you like a spreadsheet
instead,eyebonds.infois a great resource.AcknowledgementsI would like to acknowledgeeyebonds.infoandBogleheadswebsites which I used to understand
I Bond interest rate calculations.DisclaimerThis library has no link to official Treasury Direct website. No claim is
made for any accuracy of data that you generate using this code. Although
I have tried my best to implement the formula presented in Tresury Direct,
the values returned by this module might be incorrect. When in doubt, go to
the official Treasury Direct website to verify any and all information.
Package: ibooks
“ibooks” is a small python module that can be used to extract cover images
and basic metadata from iBooks Author files.Author:Titusz <tp at py7 de>PyPi:http://pypi.python.org/pypi/ibooksSource Code:http://github.com/titusz/ibooksLicense: BSDInstallationUse easy_install or pip:pip install ibooksCommandline UsageWith the commandline script you can print metadata to the console and extract
the cover from .ibooks files:ibooks my-ibooks-author-file.ibooksLibrary UsageHere is how you can use ‘ibooks’ as a lib in your code:>>>from ibooks import iBooks
>>>ibook = iBooks('my-ibooks-author.ibooks')

# Get some metadata
>>> ibook.title
"Title of iBooks file"
>>>ibook.author
"Authors Name"

# Extract cover
>>>ibook.cover
/temp-path-to/OPS/assets/images/cover-image.jpg
# Be sure to process the image file before the "ibook" object is released0.3Release date: 2013-07-29added wheel package and other packaging fixesfix error when calling as script without argument0.2Release date: 2013-07-26custom exceptionsadded .is_preview()0.1Release date: 2013-06-19Initial release
Package: iBoot
iBoot —— AI模型服务化引擎用于将Python程序封装成为Web互联网服务的Web服务化引擎（框架）。尤其适用于AI模型推理程序的互联网化封装和部署。目前提供RESTful API、WebSocket和可视化Web GUI等多种形式的互联网API接口服务，支持二进制数据传输和文件上传。开源主页https://git.openi.org.cn/OpenI/cubeai_iboot依赖包主页https://pypi.org/project/iboot依赖包安装$ pip install iboot -i https://pypi.tuna.tsinghua.edu.cn/simple应用开发实例CubeAI智立方：https://git.openi.org.cn/OpenI/cubeai模型样例集：https://git.openi.org.cn/cubeai?tab=repository
Package: ibotta-uplift
IntroductionThere are currently several packages for uplift models (seeEconMLandGRF). They tend to focus on interesting ways of estimating the heterogeneous treatment effect. However models in their current state tend to focus on the single response, singe treatment scenario. In addition the metrics they use do not give estimates to the expectations of response variables if the models were used in practice.This package attempts to build an automated solution for Uplift modeling that includes the following features:It allows for Multiple Treatments. In addition one can incorporate meta features for each treatment. For example; a particular treatment might have several shared features with other bonuses. Instead of creating a dummy indicator for each bonus the user can create a vector of categorial or continuous variables to represent the treatment.ERUPTfunctionality that estimates model performance on OOS data. This metric calculates the expected response if the model were given to the average user.Support for multiple responses. This allows estimation of tradeoffs between maximizing / minimizing weighted sums of responses. An example can be foundhereIt does so by estimating a neural network of the form y ∼ f(t,x) where y, x, and t are the response, explanatory variables and treatment variables. It is assumed the treatment was randomly assigned. There is functionality to predict counterfactuals for all treatments and calculates ERUPT metrics on out of sample data.Quick Start ExampleIn a python enviornment :importnumpyasnpimportpandasaspdfromdataset.data_simulationimportget_simple_uplift_datafromibotta_uplift.ibotta_upliftimportIbottaUplift#Generate Datay,x,t=get_simple_uplift_data(10000)y=pd.DataFrame(y)y.columns=['revenue','cost','noise']y['profit']=y['revenue']-y['cost']#Build / Gridsearch modeluplift_model=IbottaUplift()param_grid=dict(num_nodes=[8],dropout=[.1,.5],activation=['relu'],num_layers=[1,2],epochs=[25],batch_size=[30])uplift_model.fit(x,y[['profit']],t.reshape(-1,1),param_grid=param_grid,n_jobs=1)#OOS ERUPT Curveserupt_curves,dists=uplift_model.get_erupt_curves()#predict optimal treatments with new observations_,x_new,_=get_simple_uplift_data(5)uplift_model.predict_optimal_treatments(x_new,weights=np.array([.6,-.4,0,0]).reshape(1,-1))Relevant Papers and Blog PostsFor Discussion on the metric used to calculate how model performs see:ERUPT: Expected Response Under Proposed TreatmentsUplift Modeling with Multiple Treatments and General Response TypesHeterogeneous Treatment Effects and Optimal Targeting Policy EvaluationFor tradeoff analysis see:Estimating and Visualizing Business Tradeoffs in Uplift Models
Package: ibott-files
Files, Folders, Images and PDFsThis Python package contains 4 different classes to work with files, folder, images and pdfs in your python developements
for more information about how to develop your RPA projects with python checkhttps://automatehub.es/1. files.pyClass to handle files.
Arguments:file_path (str): path to the fileAttributes:file_path (str): path to the fileexists (bool): whether the file existsfile_name (str): name of the filebyte_size (int): size of the file in bytescreation_datetime (datetime): datetime of the file's creationmodification_datetime (datetime): datetime of the file's last modificationMethods:rename(new_file_name): renames the filemove(new_location): moves the file to a new locationremove(): removes the filecopy(new_location): copies the file to a new locationwait_for_file_to_exist(timeout=10): waits for the file to exist2. folders.pyClass to handle folders.
If folder doesn't exist it automatically creates a new one.
Arguments:path (str) -- path to folder to be instanced.Attributes:path (str) -- path to folder to be instanced.name (str) -- name of folderMethods:rename(new_folder_name) : Rename foldermove(new_location): move folder to new locationremove(allow_root=False, delete_read_only=True) : remove folder and all files and folders insideempty(allow_root=False): delete all files and folders in folder, receives allow_root as parametercopy(new_location=None) : Copy folder to new locationsubfolder_list(): list of subfoldersfile_list(): list of files in folderdownload_file(url, name=None): downloads file from url3. images.pyImage Class, heritates from File class
Attributes:size {tuple}: size of imageformat {str}: format of imageMethods:rotate(): rotate imageresize(): resize imagecrop(): crop imagemirrorH(): mirror image horizontallymirrorV(): mirror image vertically3. pdfs.pyPDF Class Heritates from File Class
Arguments:file_path (str): Path of the fileAttributes:file_path (str): Path of the filepages (int): number of pages in the fileinfo (str): info of the fileMethods:read_pages(page_num, encoding=None): Returns a string with the text in the pageappend(pdf_document2,merge_path): Appends a pdf document to the current documentsplit(): split pdf into several pdfs.
Package: ibott-mail
Mail ActivitiesThis Python package contains Mail class to work with emails,
for more information about how to develop your RPA projects with python checkhttps://automatehub.es/Mail classTheMailclass represents a mail account and provides methods for sending and fetching emails.Argumentsemail: The email address of the mail account.password: The password of the mail account.smtp_server: The SMTP server of the mail account.smtp_port: The SMTP port of the mail account.imap_server: The IMAP server of the mail account.imap_port: The IMAP port of the mail account.Attributesusername: The username of the mail account.password: The password of the mail account.smtp_server: The SMTP server of the mail account.smtp_port: The SMTP port of the mail account.imap_server: The IMAP server of the mail account.imap_port: The IMAP port of the mail account.Methodssend(send_to, subject, text=None, html=None, files=None)Thesendmethod is used to send an email.Argumentssend_to: The email address to send the email to.subject: The subject of the email.text(optional): The text content of the email.html(optional): The HTML content of the email.files(optional): A list of files to attach to the email.fetch(folder, Query)Thefetchmethod is used to fetch a list of emails from the mail box.Argumentsfolder: The folder to fetch emails from.Query: A query object used to filter the emails. More information about theQueryobject can be foundhere.download_attachmentsThis function is used to download attachments from a mail message.Arguments:mail: AMailMessageobject representing the mail from which attachments need to be downloaded.download_folder: The folder where the attachments will be downloaded to.extension: (Optional) The extension of the attachments to be downloaded. If specified, only attachments with this extension will be downloaded. If not specified, all attachments will be downloaded.More informationFor more information about theMailclass and theQueryobject, please refer to theIMAP Tools documentation.