Saravanan666/pypi-org huggingface dataset:
Package: kakaowork
kakaowork-py(Unofficial) Kakaowork Python clientTable of ContentsPrerequisitesInstallationUsagesContributingLicensePrerequisitesPython >= 3.7InstallationUse the package managerpipto install kakaowork-pypipinstallkakaoworkIf you want to use CLI, install with the extras 'cli'pipinstallkakaowork[cli]UsagesfromkakaoworkimportKakaoworkdefmain():client=Kakaowork(app_key="your_app_key")r=client.users.list(limit=10)# get a response of users using limitprint(r.users)whiler.cursor:# loop until it does not to existprint(r.users)r=client.users.list(cursor=r.cursor)# get a response of users using cursorif__name__=='__main__':main()importasynciofromkakaoworkimportAsyncKakaoworkasyncdefmain():client=AsyncKakaowork(app_key="your_app_key")r=awaitclient.users.list(limit=10)# get a response of users using limitprint(r.users)whiler.cursor:# loop until it does not to existprint(r.users)r=awaitclient.users.list(cursor=r.cursor)# get a response of users using cursorif__name__=='__main__':loop=asyncio.get_event_loop()loop.run_until_complete(main())If you have installed it with the extras 'cli', you can use the command line below in your shell.$kakaowork--help
Usage:kakaowork[OPTIONS]COMMAND[ARGS]...

Options:-k,--app-keyTEXT--helpShowthismessageandexit.

Commands:botsconversationsdepartmentsmessagesspacesusers

$kakaowork-k<your_app_key>botsinfo
ID:1Name:Test
Status:activatedContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseCopyright (c) 2021 Sung-Kyu Yoo.This project is MIT license.
Package: kaki
Kaki - Advanced application library for KivyThis library enhance Kivy frameworks with opiniated features such as:Auto reloading kv or py (watchdogrequired, limited to some uses cases)Idle detection supportForeground lock (windows only)ExampleThis is a bootstrap that will:automatically declare the modulelive.ui(live/ui.py) as a provider for the widgetUIbuild the application widget, and show it to a windowIf the bootstrap is started with the environment variableDEBUG=1, it will start a watchdog, and listen for changes, according toAUTORELOADER_PATHS.
When something changes, the current application widget will be cleared out, and a new one will be instanciated, after reloading.fromkaki.appimportAppfromkivy.factoryimportFactoryclassLive(App):CLASSES={"UI":"live.ui"}AUTORELOADER_PATHS=[(".",{"recursive":True}),]defbuild_app(self):returnFactory.UI()Live().run()Application class configuration#: Control either we activate debugging in the app or not
#: Defaults depend if "DEBUG" exists in os.environ
DEBUG = "DEBUG" in os.environ

#: If true, it will require the foreground lock on windows
FOREGROUND_LOCK = False

#: List of KV files under management for auto reloader
KV_FILES = []

#: List of path to watch for autoreloading
AUTORELOADER_PATHS = [
    # (".", {"recursive": False}),
]

#: List of extensions to ignore
AUTORELOADER_IGNORE_PATTERNS = [
    "*.pyc", "*__pycache__*"]

#: Factory classes managed by kaki
CLASSES = {}

#: Idle detection (if True, event on_idle/on_wakeup will be fired)
#: Rearming idle can also be done with rearm_idle()
IDLE_DETECTION = False

#: Auto install idle detection check when activated
IDLE_DETECTION_AUTO_START = True

#: Default idle timeout
IDLE_TIMEOUT = 60

#: Raise error
#: When the DEBUG is activated, it will raise any error instead
#: of showing it on the screen. If you still want to show the error
#: when not in DEBUG, put this to False
RAISE_ERROR = TrueIdle ManagementThe idle detection feature is designed to trigger an action if the user has not touched the screen for a certain period of time. This can be used to display an attractor screen, screensaver, or other content.To enable idle detection, set theIDLE_DETECTIONconfiguration toTrue.
Kaki will then listen for touch down/move events. If no such events occur within theIDLE_TIMEOUTinterval, or if therearm_idlefunction has not been called, theon_idleevent will be triggered on the application class. If a touch event occurs orrearm_idleis called while the system is in idle mode, theon_wakeupevent will be triggered on the application class.If you are playing a video and do not want idle detection to be triggered, you can use therearm_idlefunction on the application class to reset the idle timer to 0 seconds.
Package: kak-plugins
Zach's Overengineered Kakoune PluginsThey say that for any given job, ifPythonisn't the best tool for the job, then it's the second-best tool for the job.Kakounehas a lot of amazing plugins and user-modes, and they're usually not written in Python.So, since I must be working with the second-best tool for the job, I thought I would go the whole 9 yards and overengineer the h*ck out of it 😉. In trueabstractlyZachfashion, this project includes:reimplementations of awesome scripts that could be one-liners inbashwith, like, 5 pipesdependency injectionreadability as a prioritycomposition over inheritancerigorous testinghelpful command-line menusmilliseconds of extra run-time! Python is an interpreted language!intense CI practiceslinting and autoformattinglots of documentationminimal use of Mocks, maximal use of better test doubles like Fakes and Stubsrobust error-handlingfine-grained logging optionsAlso, I was pretty excited aboutkakoune.cr, but I was super fuzzy on how to actually use it. Hopefully these plugins will serve as living documentation on some good ways to leverage this tool.Installationas a userI recommend usingpipxfor installation. It allows you to install python packages on your machine in separate virtual environments without having to manage the virtual environments yourself.pipalso works if you prefer that.pipx install kak-pluginsas a developerWe usepoetryto do package and dependency management. For bonus points, install it usingpipxinstead of their recommended method.pipx install poetry

git clone https://github.com/abstractlyZach/kak_plugins.git
cd kak_plugins

poetry installDependenciesKakoune, of course 😄kakoune.crenables us to retrieve info from Kakouneprovides an interface to control KakouneA clipboard command-line utility. I use these:pbcopyfor OSXxclipfor Linuxwl-clipboardfor Wayland (if you don't know what this is and you use Linux, you'll probably usexclip)SetupThere are some environment varibles you will need to define in order to use these plugins. You would probably define these in your~/.bashrc,zshrc, or~/.profile. I define minehere# program that reads stdin and writes to your system clipboard
export CLIPBOARD="pbcopy"Pluginsgithub-permalinkCreate a permalink to a file on GitHub with lines pre-selected.Example. The selected line or range of lines matches your current selection in Kakoune and will be copied to your clipboard program.github-permalink --helpin kakThis method is great for using in your everyday editingopen a file in Kakounemake a selectionin normal mode, use:$ github-permalinkyou now have a permalink to your kakoune selection. it should look something like thishttps://github.com/abstractlyZach/kak_plugins/blob/write-readme/README.md#L40I likebinding this commandto hotkeys so I can hit 2 buttons and then paste the link into Slack or something.in a terminalThis method is great for learning, development, and debuggingopen a file in kakounemake a selectionopen a connected terminal. there are a couple of recommended methodsuse:>in normal modekcr-fzf-shellgithub-permalink --help
Package: kak-rope
kak-ropeIntegratingroperefactoring
library with kakoune.InstallationFirst, install thekak-ropebinary and its dependencies:pipxinstallkak-ropeThen, configure kakoune, for instance usingplug.kak:plug "git+https://git.sr.ht/~dmerej/kak-rope" config %{
  # Suggested mappings
  declare-user-mode rope
  map global user r ' :enter-user-mode rope<ret>' -docstring 'enter rope mode'
  map global rope a ':rope-add-import ' -docstring 'add import'
}UsageSee builtin kakoune help. All commands defined in this module starts withrope-.ContributingInstallpoetryInstall required dependenciespoetry installBefore submitting a change, run the following commands:poetry run invoke lintYou can now usegit-send-emailand send a patch tohttps://lists.sr.ht/~dmerej/kak-rope
Package: kak-spell
kak-spellPyEnchant wrapper for Kakoune.InstallationInstall the C Enchant library, and the required dictionaries. SeePyEnchant documentationfor details.Install thekak-spellscript, for instance withpipx:pipx install kak-spellInstallplug.kakand add the following lines in yourkakrc:plug "dmerejkowsky/kak-spell"(optional): declare a user mode and some mappings:plug "dmerejkowsky/kak-spell" config %{
  declare-user-mode kak-spell
  map global user s ': enter-user-mode -lock kak-spell<ret>' -docstring 'enter spell user mode'
  map global kak-spell a ': kak-spell-add<ret>' -docstring 'add the selection to the user dict'
  map global kak-spell d ': kak-spell-disable<ret>' -docstring 'clear spelling highlighters'
  map global kak-spell e ': kak-spell-enable en_US<ret> :kak-spell <ret>' -docstring 'enable spell check in English'
  map global kak-spell f ': kak-spell-enable fr_FR<ret> :kak-spell <ret>' -docstring 'run spell check in French'
  map global kak-spell l ': kak-spell-list <ret>' -docstring 'list spelling errors in a buffer'
  map global kak-spell n ': kak-spell-next<ret>' -docstring 'go to next spell error'
  map global kak-spell p ': kak-spell-previous<ret>' -docstring 'go to next spell error'
  map global kak-spell r ': kak-spell-replace<ret>' -docstring 'suggest a list of replacements'
  map global kak-spell x ': kak-spell-remove<ret>' -docstring 'remove the selection from the user dict'
}Note thatkak-spell-enabledoes several things:Set a buffer scoped optionkak_spell_langthat is used by other commandsAdd a highlighter so that spelling errors are colored with theErrorfaceAdds aBufWritePosthook to spell check the buffer each time it gets writtenThe commandkak-spell-disableundoes all of the above.For now, there's no option to disable the hook, or to have it run in response to other events. Please open an issue if this bothers you.DiscussYou can discuss features of this plugin ondiscuss.kakoune.com.I'd like to thank all the people who contributed code and ideas to make usage of this plugin easier.
Package: kakuro
A package to represent adn solve Kakuro puzzles. Puzzles are input as two
dimensional arrays of either Blank objects (entries to be filled in or that are
already filled in with a value) or Block objects (greyed out entries, possibly
specifying a vertical and / or horizontal sum).The package uses an iterative process to refine the board, and backtracking by
branching on an entry with the fewest number of possible values when refinement
fails to make any progress.A generator is used to provide solutions in the case of boards with no solutions
or ambiguous boards with multiple solutions.
Package: kakuyomu-cli
kakuyomu CLICommand line interface for kakuyomu.jp writers.installpip install kakuyomu-clikakuyomu --helpCommandscommanddescriptionepisodeEpisode commandsinitInitialize work tomlloginLoginlogoutLogoutstatusShow login statusworksList work titlesusage小説のルートディレクトリに移動ログインkakuyomu login初期設定kakuyomu init小説を選択
Package: kalam
KalamSuperpowers for writing!Getting StartedDevelopingCreate a python virtual envpython-mvenvvenv# create python environment../venv/bin/activate# activate python enviromentInstall poetrycurl-sSLhttps://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py|pythonorpipxinstallpoetryInstall noxpipinstallnoxNoxRun tests, lint check, type check, doc tests, coveragenox
Package: kalapaocr
KALAPA OCR PackageThis is a PackagekalapaocrModel ONNX. The package will simply load onnx model and init an ocr engine. Give an image path and the engine will return text result.Install LocallyAfter git clone, you can access the codebase and simply run the following command line:conda create -n kalapa_env python=3.8
conda activate kalapa_env
pip install -e .After installed, you can importkalapaocrpackage at anywhere when you are inkalapa_envenvironmentDownload modelspython src/kalapaocr/tool/model_downloads.py -p cached/Basic UsageAfter installing, You can view examples/sample.py to get usage ofkalapaocrlibYou can runexamples/sample.pyfile as following:python example/sample.py -cnn cached/cnn.onnx -en cached/encoder.onnx -de cached/decoder.onnx -i 'image/test.jpg'You can runexamples/create_submission.pyfile as following for creating submission:python example/create_submisson.py -cnn cached/cnn.onnx -en cached/encoder.onnx -de cached/decoder.onnx -i "your local data path/OCR/public_test" -o "your local path/your file name.csv"Config TextRecognitorYou can initializeTextRecognitorfromkalapaocr.Let us show you:from kalapaocr import TextRecognitor
# Using Deep Learning Models to Extract ocr results
predictor = TextRecognitor(
                        cnn_path="your cnn model path",
                        encoder_path="your encoder model path",
                        decoder_path="your decoder model path",
                    )
img = cv2.imread("your image path")
s = predictor(img)
print(s)
Package: kalasearch
卡拉搜索 - Python SDK (kalasearch-python-sdk)卡拉搜索提供托管的API服务，5分钟即可帮助你的App、小程序、网站接入极速智能的搜索功能卡拉搜索 - Python SDK (kalasearch-python-sdk)功能简介🎬开始使用💻常见操作深入理解搜索引擎LICENSE功能简介卡拉搜索提供对开发友好的API，同时也对各语言封装了SDK。在卡拉搜索的Python SDK中，我们提供简单的接口，而你也可以在后台对于自己的搜索和搜索排序需求进行深度配置。更多关于卡拉搜索的信息，请参考：为什么要用卡拉搜索🎬开始使用请使用pip安装卡拉搜索的python SDK，目前支持python 3以上版本pip3 install kalasearch在安装后，本地应该可以导入kalasearch模块，即可开始索引对象和搜索对象。我们以豆瓣电影数据为例，说明如何打造一个简单的电影搜索引擎# 导入卡拉搜索SDK
from kalasearch import Client 

# 传入你的AppId和API Key，可在卡拉搜索网站获得
myclient = Client("YOUR AppId", "YOUR ApiKey") 

# 传入你的搜索索引的id，同样可在卡拉搜索网站获得
index = myclient.get_index("YOUR indexId") 

# 添加第一部电影 
index.add_object({'name': '大话西游', 'actors': '周星驰/吴孟达', 'year':2000})

# 用关键词进行搜索
index.search('大话')

index.search('孟达')关于如何获得AppId,ApiKey和indexId，请参考体验卡拉搜索💻常见操作卡拉搜索的所有数据接口均为在卡拉搜索REST-API上的封装，因此所有的操作与REST API中记录的一致。具体来说，本Python SDK中有如下操作添加对象index.add_object(object)参数名说明objectJSON格式的对象数据index.add_object({'name': '大话西游', 'actors': '周星驰/吴孟达', 'year':2000})返回值:{'_id': 'wQawuHIBeKV8--CRsu-u'}搜索对象index.search(query, searchOptions=None)参数名说明query搜索字符串，如大话西游searchOptions可选搜索参数，默认为空深入理解搜索引擎如果你对搜索技术感兴趣，或者单纯希望为用户搭建一个体验更好的搜索系统，请关注卡拉搜索的技术博客http://kalasearch.cn/blog。LICENSE卡拉搜索python-sdk为完全开源软件，同时遵循MIT license
Package: kalash
<img src=”kalash/res/kalash2.svg” alt=”logo” width=”50” style=”display: block;margin-left: auto;margin-right: auto;”/>![Test Workflow](https://github.com/Technica-Engineering/kalash/actions/workflows/test-workflow.yaml/badge.svg)[![codecov](https://codecov.io/gh/Technica-Engineering/kalash/branch/master/graph/badge.svg?token=D6KS2QVG6D)](https://codecov.io/gh/Technica-Engineering/kalash)# KalashKalash is a simple test runner built for large-scale test automation which relies on a simple YAML-based configuration or Python file configuration.## Why KalashKalash decouples the work of a QA Engineer from the need to manage automation server jobs. It makes running tests in local and automated contexts easy and pleasurable with comprehensible YAML or Python file configuration approach.[Read more…](./kalash/doc/features.md)## InstallationRunpip install kalashcommand.This will install the latest stable version of Kalash. Of course having Python andpipworking is a prerequisite.Alternatively you can install this package in development mode after cloning withpip install -e ‘.[dev]’command.## UsagePlease refer to the [documentation](./kalash/doc/basic_usage.md) within this repository.For full code documentation please go [here]() or runkalash –docs- this should display a web browser window with the contents of the documentation bundled within the Python package.## ContributingPlease read carefully our [contribution guidelines](./kalash/doc/contributing.md) before contributing to this project.## CreditsMade with love by Technica Engineering GmbH Product Testing team:[Krzysztof Czarnecki](https://github.com/kjczarne)Pablo ProlShane ButlerSpecial thanks to our friends who made this open-source release possible:Thanh PhamArantxa FernandezGuillermo CastaneraDaniel Barreiro
Package: kalayil
kalayilThis project is a python module for making machine learning workflow easier than ever before.InstallationRun the following to install:'''python
pip install kalayil
'''Usage'''pythonfrom kalayil import modelling as klRull All Machine Learning Classificatin alogorithms at once and see the resultsRunAll(models,data,phase='',scores=None,trained_models = {},use_params=False)Feature Scale your data OHE_features refers to one hot encoded features. OHE_features are to be listed to avoid themFeatureScale(data,OHE_features,scaler='MinMaxScaler')'''
Package: kalc
kalc, the Kubernetes calculatorOverviewkalcis application aware Kubernetes rebalancing tool built on pureAI planning.Quick StartRequirementsLinux x86_64Python 3.7+6+ GB RAM, decent CPUUp to 20GB of disk space in/tmpfor generated modelskubectlinstalled and connected to clusterInstallationpip install kalcIf your Linux host has other versions of Python installed you will recieve an error regarding "Could not find a version that satisfies the requirement kalc (from versions: )No matching distribution found for kalc"... If you recieve this, type the following to install kalcpython3.7 -m pip install kalcBasic usage$ kalc-optimizekalc-optimizewill generatebashscripts containingkubectlcommands to get to more optimal states. Have a look at those scripts and execute any one of them, then stop and re-runkalc-optimize.Autopilotkalccan optimize your cluster in background, gradually increasing reliability by rebalancing and reducing cost by freeing nodes with low utilization. You can runkalc-optimizeas a cron job, wait for X minutes and then run the most recent generated script file.Architecturekalc-optimizewill download current cluster state by executingkubectl get alland will start generatingbashscripts into current folderEach generatedbashscript contains a sequence ofkubectlcommands to get the cluster in a more optimal state: better balanced nodes for availability and OOM/eviction resilience and a more compact packingAskalccontinues to compute, it will emit more optimal states and bigger bash scripts with kubectl commandskalcaims to take into account current policies, anti-affility, SLO levels and best practices from successful production Kubernetes clusters.Project Statuskalcis a developer preview and currently supports a subset of Kubernetes resources and behaviour model.We invite you to follow@criticalhoponTwitterand to chat with the team at#kalconfreenode. If you have any questions or suggestions - feel free to open agithub issueor contactandrew@kalc.iodirectly.For enterprise enquiries, use the form on our website:kalc.ioor write us an email atinfo@kalc.io
Package: kal-cal
kal-calKalman Filter and Smoother RI Calibrationkal-calis a Python library developed to provide proof-of-concept tools forKalman Filtering and Smoothing Theory(seeBayesian Filtering and Smoothing by Simo S ̈arkk ̈a) as a replacement calibration framework forRadio-Interoferometric Gains Calibration(seeNon-linear Kalman Filters for calibration in radio interferometry by Cyril Tasse). This library is part of the master's thesis work ofBrian Welman(@brianWelman2on github) throughRadio Astronomy Techniques and TechnologiesunderSARAOduring the period of 2020 to 2021.RequirementsThe only external requirement is thecasacommand fromcasalite. Otherwise, all Python packages are listed inrequirements.txt.InstallationFirstly, you need at leastpython3, or even betterpython3.6.9, as this is the version the library was developed on. Use the package managerpipto installkal-calas follows:pipinstallhttps://github.com/brianwelman2/kal-cal/archive/refs/heads/main.zipUsageTo importkal-cal:importkalcalDocumentationTBDCIThis library usesgithub-actionsfor continuous integration tests on the same repository.LicenseThis package uses theMITlicense.
Package: kaldi-adapt-lm
# kaldi-adapt-lmAdapt Kaldi-ASR nnet3 chain models from Zamia-Speech.org to a different
language model.Constructive comments, patches and pull-requests are very welcome.TutorialTo create the language model we would like to adapt our kaldi model to, we first
need to create a set of sentences. To get started, download and uncompress a generic set
of sentences for you language, e.g.wget ‘http://goofy.zamia.org/zamia-speech/misc/sentences-en.txt.xz’
unxz sentences-en.txt.xznow suppose the file utts.txt contained the sentences you would like the model to
recognize with a higher probability than the rest. To achieve that, we add these
sentences five times in this examples to our text body:cat utts.txt utts.txt utts.txt utts.txt utts.txt sentences-en.txt >lm.txtwe also want to limit our language model to the vocabulary the audio model supports,
so let’s extract the vocabulary next:MODEL=”models/kaldi-generic-en-tdnn_sp-latest”
cut -f 1 -d ‘ ‘ ${MODEL}/data/local/dict/lexicon.txt >vocab.txtwith those files in place we can now train our new language model using KenLM:lmplz -o 4 –prune 0 1 2 3 –limit_vocab_file vocab.txt –interpolate_unigrams 0 <lm.txt >lm.arpaNow we can start the kaldi model adaptation process:kaldi-adapt-lm ${MODEL} lm.arpa mymodelYou should now be able to find a tarball of the resulting model inside the work subdirectory.Links<http://kaldi-asr.org/> [Kaldi ASR]<https://zamia-speech.org> [Zamia Speech]RequirementsPython 2Kaldi ASRLicenseMy own code is Apache-2.0 licensed unless otherwise noted in the
script’s copyright headers.AuthorGuenter Bartsch <<guenter@zamia.org>>
Package: kaldialign
kaldialignA small package that exposes edit distance computation functions fromKaldi. It uses the original Kaldi code and wraps it using pybind11.Installationcondainstall-ckaldialignkaldialignorpipinstall--verbosekaldialignorpipinstall--verbose-Ugit+https://github.com/pzelasko/kaldialign.gitorgitclonehttps://github.com/pzelasko/kaldialign.gitcdkaldialign
python3-mpipinstall--verbose.Examplesalign(seq1, seq2, epsilon)- used to obtain the alignment between two string sequences.epsilonshould be a null symbol (indicating deletion/insertion) that doesn't exist in either sequence.fromkaldialignimportalignEPS='*'a=['a','b','c']b=['a','s','x','c']ali=align(a,b,EPS)assertali==[('a','a'),('b','s'),(EPS,'x'),('c','c')]edit_distance(seq1, seq2)- used to obtain the total edit distance, as well as the number of insertions, deletions and substitutions.fromkaldialignimportedit_distancea=['a','b','c']b=['a','s','x','c']results=edit_distance(a,b)assertresults=={'ins':1,'del':0,'sub':1,'total':2}For both of the above examples, you can passsclite_mode=Trueto compute WER or alignments
based on SCLITE style weights, i.e., insertion/deletion cost 3 and substitution cost 4.MotivationThe need for this arised from the fact that practically all implementations of the Levenshtein distance have slight differences, making it impossible to use a different scoring tool than Kaldi and get the same error rate results. This package copies code from Kaldi directly and wraps it using Cython, avoiding the issue altogether.
Package: kaldi-decoder
IntroductionThis repository ports the C++ decoder code fromKaldiusingOpenFstwithout depending onKaldi.UsagePlease first install it usingpipinstallkaldi-decoderand see the following examples about CTC decoding:DescriptionURLDecoding with Hhttps://github.com/k2-fsa/icefall/blob/master/egs/librispeech/ASR/conformer_ctc/jit_pretrained_decode_with_H.pyDecoding with HLhttps://github.com/k2-fsa/icefall/blob/master/egs/librispeech/ASR/conformer_ctc/jit_pretrained_decode_with_HL.pyDecoding with HLGhttps://github.com/k2-fsa/icefall/blob/master/egs/librispeech/ASR/conformer_ctc/jit_pretrained_decode_with_HLG.py