Saravanan666/pypi-org huggingface dataset:
Package: kcfg
kcfgReplacement for the awfulkwriteconfig5(andkreadconfig5)It has a different syntax but a much improved one, some examples belowkcfg'kcminputrc/Libinput/1241/41119/E-Signal USB Gaming Mouse/PointerAcceleration'--write-0.200DiferencesIt writes the value verbatim and reads it verbatim, so special things like[$i][$e]or escapes like\sare just treated as textThis may be implemented in the future or at least show a warningInstallationThe whole logic is insidekcfg.pywhich is a self contained python script with no dependencies exceptconfigparserwhich is built into pythonPackage exists to allow easy installation/updates from pip/pipxpip / pipxI always recommend to usepipxto install the package, but if you want to use pip substitutepipxwithpipIf you need it for only one time for example in setup script but have pipx available then you can usepipx run kcfgpipx install kcfgYou can also install from gitpipx install git+https://github.com/sandorex/kcfg

# install specific branch
pipx install git+https://github.com/sandorex/kcfg.git@masterGitYou can clone whole repo and run it directly as a packagepython3 -m kcfg, you could download it with wget and run itYou can also add the repository as a submodule, like i do in my dotfilesgitsubmoduleaddhttps://github.com/sandorex/kcfg# to run itpython3-mkcfg# or directlykcfg/kcfg.pywget / curlBeware this is the least secure optionwgethttps://raw.githubusercontent.com/sandorex/kcfg/master/kcfg.pycurlhttps://raw.githubusercontent.com/sandorex/kcfg/master/kcfg.py
Package: kcf-tools
kcf-toolsis a CLI tool for making Python Component development for Keboola Connection faster and easier.PYPI project :https://pypi.org/project/kcf-tools/It provides the following functionality;Generating Configuration Schemas for the UI of Keboola ComponentsGenerating ReadMe files for Keboola ComponentsGenerating documentation for Keboola Components for help.keboola.comGenerating key definitions for parameters of Keboola ComponentsGenerating a client skeleton for Keboola ComponentsInstallationThe package may be installed via PIP:pip install kcf-toolsFunctionalityThe CLI provides multiple subcommands for various tasks for information on all subcommands run:kcf-tools -hGenerate subcommandThe generate subcommand is used for generating various files for you component. To list all possiblegeneratecommands run:kcf-tools generate -hGenerate ReadMeThe readme generator uses the component config to generate a readme file. The readme file is then saved in
generated/readme directory. To generate a readme run:kcf-tools generate readmeIf you want to write directly to your component ReadMe then add the tag-w:kcf-tools generate readme -wHelp Documentation GeneratorThe doc generator uses the component config to generate an index.md in the necessary directory. The documentation files
are then saved in generated directory. To generate a docs run:kcf-tools generate docsConfig Schema GeneratorThe Config Schema Generator will take the parameters in the config.json and create a config schema and config row schema
based on some questions answered with the cli tool. The config schemas are saved to a "generated/config_schemas"
directory. To generate your config schemas run :kcf-tools generate config_schemaIf you want to write directly to your component "component_config" directory then add the tag-w:kcf-tools generate config_schema -wKey Definition GeneratorThe Key Definition Generator will use the config.json file to generate all key definitions. These will then be printed
to the command line. To generate your key definitions run :kcf-tools generate key_definitionsClient GeneratorThe Client Generator will generate a skeleton for your component client with the Keboola Http-Client library. The
Client will be saved to the "generated/client" directory. To generate a client run:kcf-tools generate clientIf you want to write directly to your component src directory then add the tag-w:kcf-tools generate client -w
Package: kchatdriver
Installationpip install kchatdriverDocumentationDocumentation can be found athttps://vaelor.github.io/python-mattermost-driver/.UsagefromkchatdriverimportDriverfoo=Driver({"""
    Required options

    """'url':'myteam.kchat.infomaniak.com','token':'YourBotAccessToken',Becareful.ThisSHOULDNOTbeactiveinproduction,becausethislogsalot!Eventhepasswordforyouraccountwhendoingdriver.login()!"""
    'debug': False
    """})"""
Most of the requests need you to be logged in, so calling login()
should be the first thing you do after you created your Driver instance.
login() returns the raw response.
If using a personal access token, you still need to run login().
In this case, does not make a login request, but a `get_user('me')`
and sets everything up in the client.
"""foo.login()foo.users.get_user_by_username('another.name')"""
If the api request needs additional parameters
you can pass them to the function in the following way:
- Path parameters are always simple parameters you pass to the function
"""foo.users.get_user(user_id='me')# - Query parameters are always passed by passing a `params` dict to the functionfoo.teams.get_teams(params={...})# - Request Bodies are always passed by passing an `options` dict or array to the functionfoo.channels.create_channel(options={...})# See the mattermost api documentation to see which parameters you need to pass.foo.channels.create_channel(options={'team_id':'some_team_id','name':'awesome-channel','display_name':'awesome channel','type':'O'})"""
If you want to make a websocket connection to the kChat server
you can call the init_websocket method, passing an event_handler.
Every Websocket event send by kChat will be send to that event_handler.
See the API documentation for which events are available.
"""foo.init_websocket(event_handler)# Use `disconnect()` to disconnect the websocketfoo.disconnect()# To upload a file you will need to pass a `files` dictionarychannel_id=foo.channels.get_channel_by_name_and_team_name('team','channel')['id']file_id=foo.files.upload_file(channel_id=channel_id,files={'files':(filename,open(filename,'rb'))})['file_infos'][0]['id']# track the file id and pass it in `create_post` options, to attach the filefoo.posts.create_post(options={'channel_id':channel_id,'message':'This is the important file','file_ids':[file_id]})# If needed, you can make custom requests by calling `make_request`foo.client.make_request('post','/endpoint',options=None,params=None,data=None,files=None,basepath=None)# If you want to call a webhook/execute it use the `call_webhook` method.# This method does not exist on the mattermost api AFAIK, I added it for ease of use.foo.webhooks.call_webhook('myHookId',options)# Options are optional
Package: kci.pointcloudviewer
pointcloud-viewerビルドyarn、protoc、poetryが必要です（.devcontainer/Dockerfile参照）。
以下のようにするとlib/distにtar.gzとwhlファイルが生成されます。
クライアントのHTML等はライブラリに埋め込まれています。$./build.shインストール$pipinstallpointcloud-viewerドキュメントsphinxでドキュメントの生成が可能です。$cdlib$poetryinstall$poetryrunsphinx-apidoc--append-syspath-F-o./docs.使用例lib/kci/pointcloudviewer/__main__.pyは3面図を撮る例です。$poetryrunpython-mkci.pointcloudviewerpcl_logo.pcdopen: http://127.0.0.1:8082setup...resize window and press custom control button "start"saved: screenshot_x.pngsaved: screenshot_y.pngsaved: screenshot_z.pngREPLでの使用も可能です。$poetryrunpythonPython 3.8.7 (default, Apr  9 2022, 21:34:33)[GCC 9.4.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> from kci.pointcloudviewer import PointCloudViewer>>> viewer = PointCloudViewer()>>> viewer.start()>>> # open localhost:8082 on your browser>>> with open(filename, "rb") as f:>>>     b = f.read()>>>     viewer.send_pointcloud_pcd(b)
Package: kck-data-source
This is a collection of tools to ease the use of postgreSQL in Python projects with psycopg2.Usage:Import the class DataSource with:from data_source import DataSourceThen create an instance of the DataSource class, providing a local or external database url:dataSource = DataSource(DATABASE_URL)A local DATABASE_URL might look like this:postgres://<database_user_name>:<database_user_password>@localhost:/<database_name>Methods: To be defined.
Package: kcl
Welcome to Commander clickTo generate build and dest filespython3 setup.py sdist bdist_wheelTo use on localpip3 install -e .Commands1 kaiyo login
2 kaiyo create --workspace=“”
3 kaiyo build --servicename ="bifrost" --repository = “”

xyz-bifrost
userdid-servicename

kaiyo list builds -servicename=""


4 kaiyo deploy --servicename="" --values="file.json" --version="" --worskpace=""

kaiyo logout

kaiyo update -—service=“”

kaiyo status --workspace= “”
kaiyo status --service=“”

kaiyo delete --service=“”
kaiyo delete --workspace=“”

kaiyo show --workspace=“”
kaiyo show --service=“”
kaiyo show bill 

kaiyo list builds --repository = “”
kaiyo list workspaces
kaiyo list services
kaiyo list services —worksapce = “”

kaiyo logs --service=“”
Package: kclii
K CLICreate migrationalembic revision --autogenerate -m "init"Upgrade to the latest versionalembic upgrade headDowngradealembic downgrade basecheck historyalembic historyChmodsudo kinit
sudo chmod +x /usr/local/bin/koff
sudo chmod +x /usr/local/bin/konCreate aliasalias koff=source /usr/local/bin/koff
alias kon=source /usr/local/bin/kon
Package: kclip
kclipreads Kindle clipping text files and generates objects suitable for further processing.Installation & RequirementsPython >=3.7 (only tested with Python 3.7)pip install kclipUsageModule usage:import kclip
for clipping in get_clippings_from_filename(source_filename):
    # do something with the generated object
    print(clipping)Command-line demo:Iterate the generated objects and print them to stdout:kclip.py-isource_filenameTests:test_kclip.pyLicenseMIT, seeLICENSE.txt,jbsmithjj@gmail.com
Package: kcluster
KClusterThis is project is a class that allows for a combination of clustering numeric and string data using kmean, kmedians, and kmodes all in one. You can also weight your variables.InstallationRun the following to install:pipinstallkclusterUsagefrom kcluster import KCluster
model = KCluster()
model.fit(X)Development kclusterTo install kcluster, along with the tools you need to develop and run tests, run the following in your virtualend:$pipinstall-e.[dev]
Package: kcol-graph-gen
kcol_graph_genA minimalistic python package to generate a k-colorable graph.InstallationJust runpip install kcol-graph-genand you are good to go!UsageBefore generating the graph you have to make an object of the classKColorableGraphGenerator. You can specify an optionalseedfor the defaultrandompackage which is used during the generation of the graph.Once the object is crated, you can usegeneratemethod to generate the graphs. This takes three argumentsn: number of vertices,k: specifying the number of colors,p(optional, default=0.5): Probability with which any edge is added into the graph. Higher the value ofpdenser the resulting graph will be.Below is the code snippet which demonstrates the usage:from kcol_graph_gen import KColorableGraphGenerator

generator = KColorableGraphGenerator(seed=42)
edges = generator.generate(4, 2, 0.3)  # Create a bipartite graph

print(edges)  # Printing the list of edges
# > [(2, 3), (2, 4), (1, 2)]

edges = generator.generate(
    6, 3, 0.9
)  # Create a 3-colorable dense graph with 6 vertices

print(edges)  # Printing the list of edges
# > [(2, 4), (1, 2), (3, 4), (1, 5), (2, 3), (4, 5), (2, 6), (5, 6), (3, 6), (2, 5), (1, 3)]
Package: kconfgen
kconfgenis a tool to manage Linux kernel configuration files.It enables users to:Assemble kernel configuration files from fragments;Ensure that only minimal lists of flags are kept in version control;Split a single kernel configuration file in fragments by topic.Usage:kconfgen mergeAssemble a.configfile from a set of (minimal) definitionskconfgenmerge\--kernel=/usr/src/linux-4.19.57--arch=x86\defconfig.netdefconfig.cryptodefconfig.laptop>.configIt is also possible to generate adefconfigfile, which contains only the minimal set of flags
to get to the provided.configfile:kconfgenmerge\--kernel=/usr/src/linux-4.19.57--arch=x86\--minimal\defconfig.netdefconfig.cryptodefconfig.laptop>some_host.defconfigkconfgen splitSplit a.configfile into a set of minimal definitions, based on their sections:kconfgensplit\--kernel=/usr/src/linux-4.19.57--arch=x86\--sections="net crypto fs"\./fragments/<./.configlsfragments/defconfig.netdefconfig.cryptodefconfig.fsdefconfigIt is also possible to split by maximal section size:kconfgensplit\--kernel=/usr/src/linux-4.19.57--arch=x86\--max-symbols=20\./fragments/<./.configlsfragments/defconfig.netdefconfig.net_netfilterdefconfig.cryptodefconfig.driversdefconfigkconfgen assembleAssemble adefconfigfile for a specific profile:kconfgenassemble\--kernel=/usr/src/linux-4.19.57\some-profile>defconfigThe list of profiles and thedefconfigfiles to use for them is listed in a toml file:[ profile.example ]arch="x86"include=["core","server"]extras=["defconfig.example","defconfig.wifi_intel"][ include.core ]files=["defconfig.crypto","defconfig.fs"][ include.server ]files=["defconfig.net","defconfig.net_netfilter"]It is also possible to dynamically include more sections:# Don't forget the `--` to separate the profile from extra includeskconfgenassemble\--kernel=/usr/src/linux-4.19.57\--includesoundwireless\--some-profile>defconfig
Package: kconmd
kconMD (k-Bags Convolutional Neural Network Molecular Dynamics)Molecular Dynamics (MD) simulations supported byk-Bags Convolutional Neural Network (kCON).Author: Jinzhe ZengEmail:jzzeng@stu.ecnu.edu.cnAcknowledgementMany thanks toXin Chenfor his help and development ofkCON.Requirementsnumpyscipymatplotlibscikit-learnASETensorFlowInstallationWith pippipinstallkconmdBuild from source$gitclonehttps://github.com/njzjz/kconmd
$cdkconmd/
$pipinstall.ExamplesSimple exampleSeeexamples/example.py.Client–server modelSeeexamples/server.pyandexamples/client.py.Run MD with LAMMPSSeenjzjz/Pyforcerepository and install Pyforce module. Then renameexamples/client.pyasforce.pyand put it where you run LAMMPS. Add a line in the LAMMPS input file:fix 1 all pyforce C H O
Package: kcounter
kcounterA simple package for counting DNA k-mers in Python. Written in Rust.InstalationThere are two ways to installkcounter:Using pip:pip install kcounterUsing conda:conda install -c conda-forge -c bioconda kcounterUsageCurrently,kcounterprovides a single function,count_kmers, that returns a dictionary containing the k-mers of the chosen size.>>>importkcounter>>>kcounter.count_kmers('AAACTTTTTT',3){'AAA':1.0,'ACT':1.0,'AAC':1.0,'CTT':1.0,'TTT':4.0}>>>kcounter.count_kmers('AAACTTTTTT',4){'AACT':1.0,'CTTT':1.0,'ACTT':1.0,'AAAC':1.0,'TTTT':3.0}Therelative_frequenciesparameter can be used to obtain relative k-mer frequencies:>>>kcounter.count_kmers('AAACTTTTTT',3,relative_frequencies=True){'AAC':0.125,'TTT':0.5,'CTT':0.125,'ACT':0.125,'AAA':0.125}Thecanonical_kmersparameters aggregates the counts of reverse-complement k-mers (eg.: AGC/GCT):>>>kcounter.count_kmers('AAACTTTTTT',3,canonical_kmers=True){'ACT':1.0,'AAA':5.0,'AAC':1.0,'AAG':1.0}Plans for future versions:Performance improvements.Add an parameter that makes the function return a sparse k-mer counts.Implement a function that returns a numpy array.
Package: kcp-py
kcp.pyPython bindings and networking for the KCP protocol.What is KCP?KCP is a protocol focusing on low latency data delivery with a guarantee of data delivery. It serves as an alternative to the TCP protocol.How to install?kcp.py is available onPyPi, meaning installing is as simple as runningpipinstallkcp.pyExamplesAsynchronous Serverkcp.py features an implementation of an asynchronous server using the event loop protocol API.fromkcp.serverimportConnectionfromkcp.serverimportKCPServerAsync# Create the initial server instance.server=KCPServerAsync("127.0.0.1",9999,conv_id=1,no_delay=True,)# Ability to set performance options after initialisation.server.set_performance_options(update_interval=10,)# Ran when the server starts.@server.on_startasyncdefon_start()->None:print("Server started!")# Ran when a connection is made.@server.on_dataasyncdefon_data(connection:Connection,data:bytes)->None:print(f"Received data from{connection.address}:{data}")server.start()Clientkcp.py also implements a KCP client using Python's sockets and threads.fromkcpimportKCPClientSyncclient=KCPClientSync("127.0.0.1",9999,conv_id=1,)@client.on_datadefhandle_data(data:bytes)->None:print(data)@client.on_startdefon_start()->None:print("Connected to server!")whileTrue:client.send(b"Data!")client.start()You may find more examples in theexamplesdirectory within the repo.FeaturesBindings to the C implementation of KCPPythonic API over said C bindingsAsynchronous KCP ClientSynchronous KCP ClientAsynchronous KCP ServerFull support for installation through pipCreditkcp.py usesthe official KCP implementationbehind the scenes.
Package: kcquant
kcquantThis package enables you to perform exploratory data analysis on images, as well as
easily quantize the colors of an image to be used for machine learning applications.To install this package, usepipinstallkcquantCurrently only one function (get_colors) exists, which displays the topnpixel values (RGB format) in an image.fromkcquantimportget_colors
fromPILimportImage
importnumpyasnp# open imageimg=Image.open(<filepath>).convert('RGB')# call get_colors()# if image is in RGB set color='RGB'# if image is in BGR set color='BGR'# n=5 will display top 5 pixel colors in image# n=10 will display top 10 pixel colors in imagen=10get_colors(np.array(img),color='RGB',top=n)
Package: kcrawler
kcrawlerA python crawler authored by Ken.1. 安装1.1 环境要求python>=3.0pip>=19.0python-V
pipinstall--upgradepip
pip-V1.2 查看最新版本pipsearchkcrawler1.3 初次安装pipinstallkcrawler# orpipinstall--index-urlhttps://pypi.org/simplekcrawler1.4 更新已有安装pipinstall--upgradekcrawler# orpipinstall--upgrade--index-urlhttps://pypi.org/simplekcrawler1.5 卸载pipuninstall-ykcrawler2. 命令行调用2.1 使用方式使用 pip 安装成功后，会自动在系统搜索路径创建可执行程序：kcrawler,kcanjuke,kcjuejin。通常是python或conda安装目录下的bin子目录下，例如：/anaconda3/bin/kcrawler。windows 平台会创建.exe文件。kcrawler是爬取所有网站应用的入口，命令执行格式如下：kcrawler<webapp>[webapp-data][--options]等效于：kc<webapp>[webapp-data][--options]例如：kcrawler juejin books --url "https://..."
kcjuejin books --url "https://..."2.2 使用示例以kcrawler <webapp> [webapp-data] [--options]方式运行为例。2.2.1 爬取掘金小册数据执行如下命令：kcrawlerjuejinbook命令执行成功，显示如下统计图表：并将明细数据保存在当前目录下，同时保存.csv和.xls文件，文件名格式如下：juejin_books_YYYY-MM-DD.csvjuejin_books_YYYY-MM-DD.xls2.2.2 爬取掘金专栏阅读量格式：kcrawlerjuejinpost--name<username>--limit100--url'<user_post_url>'name: 目标爬取用户的名称，可以自定义，仅仅用于区分不同用户，同时作为爬取数据保存的文件夹名称limit: 限制爬取最新专栏数url: 目标爬取用户的接口地址，这个参数真正决定了要爬取谁的专栏url 获取方式如下：为了快速体验爬取效果，也提供了 url 缺省情况下的支持，爬取用户ken的专栏：kcrawlerjuejinpost--nameken--limit100爬取明细数据，会在ken目录下，以爬取日期和时间命名，同时保存.csv文件和.xls文件。2.2.3 指定城市爬取安居客小区房价首先需要获取网站的cookie。获取方式参考《python 自动抓取分析房价数据——安居客版 》2.4 小节。将<anjuke_cookie>替换成自己cookie，运行如下命令：kcrawleranjuke--cityshenzhen--limit50--cookie"<anjuke_cookie>"也可以将cookie保存在当前目录下的anjuke_cookie(无后缀)文件中，运行如下命令：kcrawleranjuke--cityshenzhen--limit50命令成功运行成功后，会显示房价平均值，最大值，最小值，并绘制房价分布直方图，关闭直方图后，明细数据将保存在当前目录下，形如：anjuke_shenzhen_community_price_20xx-xx-xx.csv。获取其他城市的房价，只需将city参数改成安居客网站覆盖的城市拼音。可打开页面https://www.anjuke.com/sy-city.html，点击需要获取的城市，复制浏览器地址栏中城市对应的二级域名，如 beijing.anjuke.com 只取 beijing 作为 city 参数。3. 导入 python 模块3.1 Boss 接口fromkcrawlerimportBossboss=Boss()boss_positions=boss.position()boss_cities=boss.city()boss_hotcities=boss.hotcity()boss_industries=boss.industry()boss_user_city=boss.userCity()boss_expects=boss.expect()jobs=boss.job(0,1)tencent_jobs=boss.queryjob(query='腾讯',city=101280600,industry=None,position=101301)tencent_jobs=boss.queryjobpage(query='腾讯',city=101280600,industry=None,position=101301,page=2)jobcard=boss.jobcard('3c2016bbf8413f3b1XR63t-1FVI~','505ee74b-504b-4aea-921c-a3dc2016be80.f1:common-155-GroupA--157-GroupA.15')Release historyhttps://pypi.org/project/kcrawler/#historyLicenseMITCopyright (c) 2019 kenblikylee
Package: kcrw.apple-news
kcrw.apple_newskcrw.apple_newsis a simple library for using theApple News APIfrom Python 2 or 3 (>= 2.7 or >= 3.5).Free software: MIT licenseDocumentation:https://kcrwapple-news.readthedocs.io.FeaturesProvides support for making signed API requests to the Apple News Publisher APIIncludes suport for “Read Channel”, “Create Article”, “Update Article”,
“Read Article Information”, “Delete Article” API calls as well making generic
signed requests.Provides a command line toolapple_news_apifor making API calls directly.History0.2.6 (2020-04-17)Fix namespace package issues0.2.4 (2020-03-09)Fix namespace package issues0.2.3 (2020-02-27)Fixes to support applications that pin six < 1.12.00.2.2 (2020-02-26)Include response error codes and data in custom exception.0.2.1 (2020-02-25)Fix bumpversion error0.2.0 (2020-02-25)Fix botched package release0.1.0 (2020-02-24)First release on PyPI
Package: kcrw.nprapi
This is a very simple library for getting story data from theNational Public Radio (NPR) API.In order to use this API, you must register for an API key and comply
with the APITerms of Use.  In particular, theNPR APImay only
be accessed for personal non-commercial use or for non-commercial use by a
nonprofit 501(c)(3) corporation.If you requirePython < 2.6then you will need thesimplejsonpackage.If you requirePython < 2.5then you will need thecElementTreepackage.For more details, please see thepackage documentation.CreditsCreated byAlec MitchellforKCRW, anNPRstation based in Santa
Monica, California.Copyright © 2010KCRWChangelog1.0b2 (Febuary 24, 2010)Simplify structure of link elements when using the StoryMapping API.Make it compatible with Python 2.4 and 2.5 (you will need to install
cElementTree and simplejson)1.0b1 (Febuary 12, 2010)Initial release
Package: kcrw.tinymce-imagedrop
kcrw.tinymce_imagedropkcrw.tinymce_imagedropis a Plone add-on which allows users to drag and drop images into TinyMCE 4.
Dropping images will automatically create Image content in the Plone site and render them in
the WYSIWYG using UID references.This add-on supports Plone 5.x and Plone 4.3 (with TinyMCE 4 enabled viaplone.app.widgets).FeaturesProvides a Javascript Plugin for TinyMCE which handles uploading images via a browser viewProvides a Plone browser view@@create-dropped-imageswhich creates Image content in the nearest container allowed.The view can be overriden to customize the image type, the image creation location, or the markup used for the images.InstallationInstall kcrw.tinymce_imagedrop by adding it to your buildout:[buildout]

...

eggs =
    kcrw.tinymce_imagedropand then runningbin/buildout. On Plone 5+ you must install the add-on from the Add-ons control panel,
on Plone 4.3 (withplone.app.widgets) it will be enabled automatically via a monkey patch when added
to your buildout.ContributeIssue Tracker:https://github.com/KCRW-org/kcrw.tinymce_imagedrop/issuesSource Code:https://github.com/KCRW-org/kcrw.tinymce_imagedropLicenseThe project is licensed under the GPLv2.CreditsThis add-on was created by Alec Mitchell <alecpm@gmail.com> with support fromKCRWChangelog1.0.1 2020-11-24Updates to image insertion markup.
[alecpm]1.0 2020-11-24Initial release.
[alecpm]