Saravanan666/pypi-org huggingface dataset:
Package: kdmt
In any project we usually need a set of functions that we use again and again and that don’t typically belong to the project.
They go in an util file because they do not belong to the specific application logic.
We also spend time in every project searching, adapting and copy/pasting these functions.In this project, I, decided to collect those functions and put them in one centralized place!FunctionalitiesUtilities libprary is broken up into broad domains of functionality in orther to easily remember where thinks are located.DictionnariesDotDictenumPython doesn’t have a built-in way to define an enum, so this module provides (what I think) is a pretty clean way to go about them.fromutilsimportenumclassModelTypes(enum.Enum):CLASSIFICATION=0REGRESSION=1# Defining an Enum class allows you to specify a few# things about the way it's going to behave.classOptions:frozen=True# can't change attributesstrict=True# can only compare to itself; i.e., Colors.RED == Animals.COW# will raise an exception.Once defined, use is straightforward:>>>ModelTypesdictsintersections, differences, winnowing, a few specialized dicts…listsflatten and unlisting. alsoflat_map!boolscurrently only provides anxorfunction.datesobjectsprovidesget_attr, which is really just a convenient way to do deepgetattrchaining:>>>get_attr(complicated,'this.is.a.deep.string',default=None)"the deep string"# or None, if anything in the lookup chain didn't existThere’s also animmutableutility, which will wrap an object and preven all attribute changes,
recursively by default. Any attempt to set attributes on the wrapped object will raise anAttributeError:>>>imm=immutable(something)>>>imm<ImmutableSomething:<Something>>>>>imm.red<ImmutableSomethingElse:<SomethingElse:red>>>>>imm.red=SomethingElse('blue')# ...AttributeError:Thisobjecthasbeenmarkedasimmutable;youcannotsetitsattributes.>>>something.red=SomethingElse('blue')>>>imm.red<ImmutableSomethingElse:<SomethingElse:blue>>You can toggle the recursive immutability by specifying the ‘recursive’ flag.Installation (via pip)pip install kdmt
Package: kdn-sdk
快递鸟 Python SDKrequirementspython >= 3.6基于快递鸟v5.41开发已实现接口列表下单类(Order)上门取件 order预约取件 preorder电子面单 eorder查询类（Query)获取即时物流轨迹 get_express_routes接口订阅轨迹 subscribe_express_routes增值接口类 (Service)单号识别 recognize_logistic_code安装pip install kdn使用fromkdn.api.kdnimportKDNkdn=KDN(client_id,api_key)kdn.query.get_express_routes("SF","1234561","111")
Package: kdp-api-python-client
The KDP API is a REST API that can be used to create, access, and update data in KDP Workspaces. Please note that the Python client library follows Python's naming convention of snake casing for fields, even though they may appear in camel case in the API specification. &lt;p&gt;&lt;b&gt;By default this api documentation targets the koverse production server at 'api.app.koverse.com' You can provide the hostname of your koverse instance to this documentation page via the 'host' query param.&lt;/p&gt; &lt;p&gt;&lt;b&gt;For example providing host -https://documentation.koverse.com/api?host&#x3D;api.myHost.com, will update requests to target the provided host.&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;Authentication request example with provided host -https://api.myHost.com/authentication&lt;/b&gt;&lt;/p&gt;  # noqa: E501
Package: kdpeak
kdpeakkdpeak is a Python package designed to identifying genomic peaks from genomic reads in bed format using kernel density estimation (KDE).InstallationInstall via PyPI with:pipinstallkdpeakAlternatively, install directly from GitHub:pipinstallgit+https://github.com/settylab/kdpeak.gitUsing kdpeakkdpeak allows for processing of a bed file. It applies KDE, pinpoints peaks based on the fragemnt end density, and records the results in an output bed file.
The package enables customization of parameters like KDE bandwidth, sequence blacklist, minimum peak size, and others. Designed to deliver a specific fraction-in-peaks (FRiP), it defaults to 0.3.Elementary usage:kdpeakreads.bed--frip0.3--outpeaks.bedParametersusage:kdpeak[-h][--outOUTPUT_FILE][-lLEVEL][--logfileLOGFILE][--blacklisted-seqschrN[chrN...]][--kde-bwFLOAT][--min-peak-sizeINT][--fraction-in-peaksFLOAT][--spanINT]READS.BEDPositional Argument:reads.bed- Path to the bed file containing the genomic reads.Options:-h, --help- Show this help message and exit.--out output_file.bed- Path to the output file where the results will be saved.
Peaks are saved in bed format with the columns:
start, end, peak name, AUC (area under the cut density curve
where cut-density is in cuts per 100 base pairs). Defaults to peaks.bed.--summits-out summits_file.bed- Path to the output file where the peak summits will be saved.
The file will have columns for start, end (start+1),
peak name, and summit height (in cuts per 100 base pairs).
If nothing is specified the summits will not be saved.-l LEVEL, --log LEVEL- Set the logging level. Options include: DEBUG, INFO, WARNING, ERROR, CRITICAL. Default is INFO.--logfile LOGFILE- Path to the file to write a detailed log.--blacklisted-seqs chrN [chrN ...]- List of sequences (e.g., chromosomes) to exclude from peak calling. Input as space-separated values.--kde-bw FLOAT- Bandwidth (standard deviation, sigma in base pairs) for the KDE. Increase for larger features to reduce noise. Default is 200.--min-peak-size INT- Minimal size (in base pairs) for a peak to be considered valid. Default is 100.--fraction-in-peaks FLOAT, --frip FLOAT- Expected fraction of total reads to be located in peaks. Default is 0.3.--span INT- Resolution of the analysis in base pairs, determining the granularity of the KDE and peak calling. Default is 10.Utilizing All Available Options:kdpeakreads.bed--outpeaks.bed--logDEBUG--logfiledebug.log--blacklisted-seqschr1chr2--kde-bw500--min-peak-size50--frip0.5--span5Disclaimerkdpeak, being in its Alpha stage, encourages usage with care. We warmly welcome users to report any issues experienced during utilization. Together, we can enhance kdpeak for a better genomic analysis experience.
Package: kdPythonAPIViewer
# kdPythonAPIViewer
通过GUI界面查看python或第三方库的API。query Python API and third party library API via GUI interface.# 安装## 方法一– 使用[kdPythonInstaller](https://github.com/bkdwei/kdPythonInstaller/releases/download/v1.0.0/kdPythonInstaller-1.0.0.exe/) 快速安装python和kdPythonAPIViewer## 方法二安装python3和pip，[安装包地址](https://www.python.org/downloads/)使用pip安装kdPythonAPIViewer，命令** pip install kdPythonAPIViewer **点击桌面的快捷方式或开始菜单启动kdPythonAPIViewer# 截图![kdPythonAPIViewer_screenshot](/screenshot/os.jpg)![kdPythonAPIViewer_screenshot](/screenshot/os.path.jpg)![kdPythonAPIViewer_screenshot](/screenshot/QLineEdit.setText.jpg)![kdPythonAPIViewer_screenshot](/screenshot/qline.jpg)![kdPythonAPIViewer_screenshot](/screenshot/QLineEdit.show.jpg)# 使用说明
- 首次使用或安装了新的Python库时，需要先点击“缓存Python库”
- 选择左侧下拉框中的库，然后在类的输入框任意输入一个类的名称即可加载该类的API。比如下拉框选择PyQt5，在类的输入框键入qli即可显示PyQt5.Qt.QLineEdit组件，回车即可显示API文档。 ![kdPythonAPIViewer_screenshot](/screenshot/使用说明.jpg)
- 加载完类的文档后，可以点击方法与属性下拉框，查看该类对应的方法和属性
- 当库的描述文档太大时（比如PyQt5.QtWidgets的文档就特别大），可以设置仅显示类的文档# 提交bug和建议
[提交bug和建议](https://github.com/bkdwei/kdPythonAPIViewer/issues)
Package: kdrive-upload
Upload files tokDrive -
InfomaniakInstallationpython3setup.pyinstallConfigurationCreate an app password here:https://manager.infomaniak.com/v3/profile/application-passwordThen you create a filekdrive-upload.cfginside current directory,
or~/.config/kdrive-upload.cfgor/etc/kdrive-upload.cfglike
this:[credentials]username=xxxpassword=xxxYou can also exportKDRIVE_USERNAMEorKDRIVE_PASSWORDenvironment variables to override theseUsage$kdrive-upload--helpusage:kdrive_upload[-h][--driveDRIVE][--keep]destfileUploadtokDrivepositionalarguments:destdestinationdirectoryfilefiletouploadoptionalarguments:-h,--helpshowthishelpmessageandexit--driveDRIVE--keepkeepfilesafteruploadAs you can see, by default it deletes local file after upload
Package: kdslib
kdslib is an internal project for KDS and is distributed under GNU Lesser General Public License v3 or later (LGPLv3+)The purpose of this project is to help standardize coding styles and provide basic utilities to all Python developers across KDS.kdsutil's callable modules include:-> Logger (for all levels)-> Teradata Connector-> SQL database connector (using either windows auth or credentials)-> Azure SQL database connector (using either windows auth or credentials)-> Exception emailer-> Log file emailer-> Notification emailer-> Parquet reader (reads all parquet files in a location and returns a Pandas dataframe)-> Metadata generator (generates a JSON file that contains metadata of a parquet file)-> Function execution timer (decorator function).kdsfunctionalutil's callable modules include:-> Power BI On-demand refresh-> IICS informatica job refreshInstallation:
pip install kdslibSubsequent updates:
pip install kdslib --upgradeDependencies:kdslib requires:
Python (>= 3.7)
Pandas (>= 1.4.0)
Package: kdtest
keyWordTest (kdtest)介绍基于“python + 关键字驱动技术”的一套以降低使用者学习成本为目地的自动化测试框架；支持“接口请求”和“UI元素操作”的“混合”处理， 使用者可以根据实际的测试场景来选择；此外框架会将一些必要的object对象、装饰器和变量暴露给开发者；开发者可以根据实际情况，开发除现有功能关键字之外的“自定义插件方法”，且框架支持对这些自定义的插件方法进行安装、更新、卸载、显示等操作。安装教程你可以通过pip包管理工具键入“框架名称” 或者 “框架.whl文件的绝对路径(存放在仓库的dist文件夹下)”完成框架的安装，详情如下:[正式版]pip install kdtest==1.1.6[测试版]pip install -i https://test.pypi.org/simple/ kdtest==1.1.6pip install  C:/xxxxxx/kdtest-1.1.6-py3-none-any.whl你可以在控制台中键入kdtest -v来验证是否安装成功。1.1.6为当前框架最新版本；推荐安装正式版说明文档框架说明文档 >>亮点灵活、易用、成本低框架特点采用关键字驱动，使用者不需要考虑功能如何实现，只需要按照需求在用例中堆叠关键字即可。用例书写采用“excel工作表”的形式，上手简单，学习成本低。框架整体独立，在控制台中输入启动命令即可运行，不需要代码编译器的参与。支持接口自动化，简化requests库的使用，使用者只需要按照要求书写接口数据即可完成接口的请求和断言。支持自定义插件开发，使用者可以根据自身测试需求开发一些独立与框架之外的插件方法，框架支持对这些方法进行“安装”、“卸载”、“更新”、“显示”。框架内部所有的对象、关键字方法、参数变量，全部支持外部调用。框架中共有43个功能强大关键字可供使用，功能覆盖面广，从基础的“元素定位”、“元素操作”到“接口请求”再到复杂的“获取数据缓存断言”等均有覆盖。框架所生成的测试报告内容更加详细直观，且支持将一些自定义的内容打印到框架的“测试报告”和“运行日志”中。框架所有的必要文件和文件夹，均支持通过命令创建，减少使用者工作量。
Package: kdtree-python
KDTreeImplementation of a multidimensional binary search tree for associative searchingReferencesJon Louis Bentley. Multidimensional binary search tree used for associative searching. September 1975.UsagefromkdtreeimportBinSearchTree,Bound,Node,Region# Create a new treetree=BinSearchTree(dimension=2)# Insert some nodes into the treetree.insert(Node((50,50)))tree.insert(Node((10,70)))tree.insert(Node((80,85)))tree.insert(Node((25,20)))tree.insert(Node((40,85)))tree.insert(Node((70,85)))tree.insert(Node((10,60)))# Create rectangle from a bound array as described in the article# Element 2*j is lower bound and element (2*j)+1 is upper bound of dimension jrectangle_1=Region.from_bounds_array(69,71,84,86)# Create rectangles as a list of Bound objectrectangle_2=Region(Bound(69,71),Bound(84,86))# Searchnodes=tree.regional_search(rectangle_1)print("Nodes within region:",nodes)
Package: kdtrees
kdtreesPython implementation of a K-D Tree as a pseudo-balanced TreeOverviewA K-Dimensional Tree, or K-D Tree, is a space-partitioning data structure which efficiently organizing points in k-dimensional space. For further details regarding K-D Trees, please see a detailed description onWikipedia.kdtrees implementation of a K-D Tree allows for construction, modification, searching, and other helpful functions such as k-nearest neighbors. It also maintains the tree in a pseudo-balanced manner through a secondary invariant where every node is the median ± dimensionality of subsidiary nodes along a specific axis.More details regarding this implementation can be found in the documentationhere.InstallationDependencieskdtrees requires:numpykdtrees is tested and supported on Python 3.4+ up to Python 3.7. Usage on other versions of Python is not guaranteed to work as intended.User Installationkdtrees can be easily installed usingpippip install kdtreesChangelogSee thechangelogfor a history of notable changes to kdtrees.Developmentkdtrees is fully implemented for basic functionality. However, it may not have every utility function or have the most optimized algorithms. We welcome contributors of all experience levels to help grow and improve kdtrees. Guides on development, testing, and contribution are in the works!Currently, particular contributions regarding pytests and documentation would be greatly appreciated. Guides and examples of usage are warmly welcomed.There are three main branches for development and release.masteris the current development build;releaseis the staging branch for releases;productionis the current public release build.Help and SupportDocumentationDocumentation for kdtrees can be foundhere.Issues and QuestionsIssues and Questions should be posed to the issue trackerhere.
Package: kdui2py
# kdui2py
将qt的UI文件批量转换成python文件。batch convert qt ui file to python file, or convert single ui file, or convert ui files in a folder include it’s subfolder.# 截图![截图](/screenshot/screen-2019-04-06-11-11-26.png.png)# 安装## 方法一– 使用[kdPythonInstaller(https://github.com/bkdwei/kdPythonInstaller/releases/download/v1.0.0/kdPythonInstaller-1.0.0.exe/) 快速安装python和kdui2py## 方法二– 安装python3和pip，[安装包地址](https://www.python.org/downloads/)– 使用pip安装kdui2py，命令> pip install kdui2py
Package: kdu-jp2
Installation and UseInstall the package:pip installkdu-jp2Import the library:from kdu_jp2 import JP2ConverterCreate an instance:converter =JP2Converter('in_dir','out_dir')Run the conversion:converter.convert()(lossy) orconverter.convert(True)(lossless)System requirementsThis depends on Kakadu -kdu_compressmust be on your path.
Package: kdump
kdumpStatic Mach-O binary metadata analysis tool / information dumperInstallationpip3installkdumpUsageusage:kdump[-h][--map][--classes][--binding][--classGETCLASS][--headers][--outOUTDIR]filename--headersDumps headers to directory specified by--out--out <directory>Directory to dump headers for class--mapPrints a map of segments/sections, and their respective VM/File offsets--classesDumps classnames--bindingPrints binding info actions--classGet info about a specific classwritten in python for the sake of platform independence when operating on static binaries and librariesSpecial thanks toIDA for making it possible to write the code without actually understanding full internalsJLevin and *OS Internals Vol 1 for actually understanding the internals and specifics + writing documentationarandomdev for guidance + code
Package: kdYoudaoDictionary
# kdYoudaoDictionary
用python3和pyqt5写的有道字典客户端# 截图
![kdYoudaoDictionary_screenshot](/doc/screen-2019-03-28-21-39-11.jpg “截图”)# 安装kdYoudaoDictionary
- 安装python和pip，[下载地址](https://www.python.org/downloads/下载地址)
- 在终端(比如cmd或者xterm)安装PyQt5。输入命令pip install kdYoudaoDictionary
- 双击快捷方式即可启动# 使用
- 免费模式跟收费模式没什么区别。
- 使用收费模式，需要去有道智云申请应用ID和应用密钥，然后写入appKey_config.json文件中
- [有道智云官网](http://ai.youdao.com)
Package: ke2daira
ke2daira.pyA Python implementation ofke2dairaInstallation$ pip install ke2dairaUsagefromke2dairaimportke2dairanizeprint(ke2dairanize("松平 健"))# "ケツダイラ マン"DevelopmentInstall dependencies with poetry:poetry installRun type check:poetry run mypy .Run tests:poetry run pytestFormat code:poetry run black .Difference from original ke2dairake2daira.pyonly supports switching the head of the first word and the one of the last word.LicenseApache-2.0
Package: kea-exporter
kea-exporterPrometheus Exporter for the ISC Kea DHCP Server.From v0.4.0 on Kea >=1.3.0 is required, as the configuration, specifically
subnet information, will be read from the control socket.InstallationThe latest stable version can always be installed from PyPi:$ pip install kea-exporterand upgraded with:$ pip install --upgrade kea-exporterFeaturesDHCP4 & DHCP6 Metrics (tested against Kea 1.6.0)Configuration and statistics via control socketCurrently not working:Automatic config reload (through inotify)Known LimitationsThe following features are not supported yet, help is welcome.HTTP REST API (as a means to query a Kea instance)Shared NetworksCustom Subnet IdentifiersUsageUsage: kea-exporter [OPTIONS] SOCKETS...

Options:
  --address TEXT      Specify the address to bind against.
  --port INTEGER      Specify the port on which to listen.
  --interval INTEGER  Specify the metrics update interval in seconds.
  --version           Show the version and exit.
  --help              Show this message and exit.Configure Control SocketThe exporter uses Kea’s control socket to request both configuration and
statistics. Consult the documentation on how to set up the control socket:https://kea.readthedocs.io/en/latest/arm/dhcp4-srv.html#management-api-for-the-dhcpv4-serverhttps://kea.readthedocs.io/en/latest/arm/dhcp6-srv.html#management-api-for-the-dhcpv6-serverPermissionsKea Exporter needs to be able to read and write on the socket, hence it’s
permissions might need to be modified accordingly.Grafana-DashboardA dashboard for this exporter is available athttps://grafana.com/grafana/dashboards/12688.
Package: keaml
KeaML DeploymentsThis is a Python library that serves as an SDK for deploying models in KeaML. It provides a simple way to initialize a client and deploy machine learning models.Table of ContentsInstallationGetting StartedUsageAPI KeyInstallationYou can install the latest version of KeaML SDK from PyPI:pipinstallkeamlGetting StartedBefore you can use KeaML SDK, you'll need to initialize the client with an API key.API KeyTo get your API key, visitKEAML Settingsand generate a new API key.UsageHere's a simple example to get you started:importkeaml# Initialize the client with your API keykea_client=keaml.init(api_key="your_api_key_here")# Deploy a machine learning modelkea_client.deploy(model_object,model_name,framework_name)Methodsinit(api_key: str) -> KeaMLSDKClientInitializes the KeaML SDK client.Parameters:api_key(str): Your KEAML API key.Returns:An instance ofKeaMLSDKClient.KeaMLSDKClient.deploy(model: Any, name: str, framework: str) -> NoneDeploys a machine learning model.Parameters:model(Any): The machine learning model object.name(str): The name of the model.framework(str): The framework used for the model (e.g., "tensorflow", "pytorch").Returns:None
Package: keanu
Keanu is a general purpose probabilistic programming library developed by Improbable’s research team.
It enables you to build Bayesian networks through which you can make
probabilistic predictions about large, complex and multifaceted problems.This is an early stage, pre-alpha version of Keanu. We have an ambitious team
attempting to build an even more ambitious product with the help of the open source community.Want to find out more about our API? Take a look at our pythondocumentation
Package: keap-flask
Quick Setup:There must be a logs directory under the root of your project. (Unless custom logger is passed)There must be a cache directory under the root of your project. (Unless a custom cache class is passed)Pip install keap-flaskfrom keap_flask.keapclient import KeapClientInitialize with: keap = KeapClient(app=app)Flask app must have three config variables set:1: KEAP_CLIENT_ID: The Client ID setup on keys.infusionsoft.com2: KEAP_CLIENT_SECRET: The Client Secret obtained when you setup your client on keys.infusionsoft.com3: AUTH_APP_BASE_URL: The Base URL of your application. Make sure to include trailing slash.Notes:https must be used. I use –cert=adhoc option when testingapp is a required argument when initializingCustom Auth Handler Class:A custom Auth Handling class can be used by passing it as an arg upon initialization.Your Auth class must contain the following methods:get_authorization: returns authupdate_authorization: updates stored authAuthorizingA blueprint is added to the flask app. It adds the following:Authorization Route: ‘/authorize-keap’ex: yoursite.com/authorize-keapthis is where you will authorize your applicationA CLI command for refreshing auth should the autorefresh fail.:Command: ‘flask keap refresh-auth’
Package: keapi-robotics
KeApiKeApi is a Python package for communicating and
sending commands to your KEBA PLC via Web Sockets.Note: This package is not affiliated with KEBA AGWho is this package for?If you have a KEBA PLC and want to send commands to
it or monitor the state of it.RequirementsRobotControl WebAPI 0.2.1-beta.1RobotControl API 0.2.1-beta.6Communication Utils Robotics 1.5.0(Optional - For compatibility layer)Key FeaturesStart and execute commands on the PLCSet and receive variables on the PLCSubscribe to cyclic and event based topicsDocumentationThe full documentation can be found athttps://keapi.readthedocs.ioGetting StartedInstallationTo install this package you can either usepython3 setup.py installorpip3 install keapi-roboticsUsageTo get startet you first need to connect to the applicalbe web sockets.import keapi as ka
cmdserver = ka.connect_commands('ws://IP:PORT/ROBOT/websocket-command')
subserver = ka.connect_subscriber('ws://IP:PORT/ROBOT/websocket-subscribe')Once connected you are all set to send commands or subscribe to events.Examplecmdserver.exec('set_active_client')

pos = {
    'joints': {
        'main_joints': [0, 0, 120, 0, 0, 0]
    }
}
ticket = cmdserver.start('path_ptp', position=pos)
ticket.wait()Compatibility LayerWhileRobotControl WebAPIis in beta some functions such asset_varwon't work. To counteract this, the Compatibility Layer
implements functions to get and set variables and to execute Teach Control
programs via TcWebApi.Exampleimport keapi as ka
tc_var = ka.compat.connect_tc_var(192.168.1.1, Admin, pass)

# Get Var
pos_x = tc_var.get_var('TX2_90.RobotData.cartSetPos.x')

# Set Var
tc_var.set_var('IO.do_1', 1)
Package: ke-apollo-client
ke-apollo-client forke自apollo-client，变更内容包括：修改部分接口url，适配贝壳apollo server修改api返回结果解析，适配贝壳apollo serverapollo-client - Python Client for Ctrip's Apollo方便Python接入配置中心框架Apollo所开发的Python版本客户端。
Tested with python 3.5+基于https://github.com/filamoon/pyapollo/修改Installationpipinstallapollo-clientFeatures实时同步配置灰度配置客户端容灾Usage启动客户端长连接监听client=ApolloClient(app_id=<appId>,cluster=<clusterName>,config_server_url=<configServerUrl>)client.start()获取Apollo的配置client.get_value(Key, DefaultValue, namespace)ContributionSource Code:https://github.com/BruceWW/pyapolloIssue Tracker:https://github.com/BruceWW/pyapollo/issuesOriginal Source Code:https://github.com/filamoon/pyapolloLicenseThe project is licensed under theApache 2 license.ReferenceApollo :https://github.com/ctripcorp/apolloContributorBruceprchenxhrgVersion log11/24/2019  Bruce  0.8.2   优化本地缓存的存储方式1/4/2020    Bruce  0.8.4   修复文件读取异常的bug3/24/2020prchen0.8.5   修复安装过程中requests模块依赖的问题7/5/2020    Bruce  0.9     主线程退出时，关闭获取配置的子线程25/5/2020xhrg0.9.1   修复文件名称读取异常13/7/2020   Bruce  0.9.2    【bugfix】修复当namespace不存在时，服务器挂起导致get_value无响应18/10/2020   Bruce  2.0     重构 | 优化数据获取方式 ｜ 优化定时任务  |  新增authorization传入