Saravanan666/pypi-org huggingface dataset:
Package: kueri
kueriA query toolkitDescriptionThere are two module in kueri package:Query extractor from DAG file : Used for extract query from each task in a dag fileQuery validator : Validate query using dry run api bigquery. This module usestandard sql dialectHow to run unit testNeed to install berfore run unit testpytest (pip install pytest)pytest-cov (pip install pytest-cov)rootpath (pip install rootpath)mocksqlparserootpathapache-airflow[gcp]==1.10.5requestsCommand to run unit testpytest (output only pass or failed testing)pytest --cov-report term --cov=kueri tests/  (Give percentage coverage of unit testing)pytest --cov-report term-missing --cov=kueri tests/ (give line of code function that not covered in unit test)Installationpip3installkueriNoteBefore you install kueri, please make sure that you have installed all module that's your dag needUsageQuery validatorkuericmd='query_validator'query='{query need to validate}'project_id='{project id of your query}'example:kuericmd='query_validator'query='select * from `mapan-data-prd.mapan_data_prod_dv.hub_arisan_chairmen`'project_id='mapan-data-prd'Query extractor from DAG filekuericmd="dag_bq_extractor"path_to_folder_file='{path to folder folder file DAG}'file_name='{name of file}'example:kuericmd="dag_bq_extractor"path_to_folder_file='/Users/mapan_1004/Documents/workspace/list_of_dag/'file_name='test_retrieve_bigquery_param_bql_dag.py'NotePlease use'(single quote) instead of"(double quotes) in parameter.
Package: kueue
KueuePython Distributed Task Queue - backed by KafkaMotivationKueue was born out of the lack of a library that leveragesKafkafor distributed task processingFeaturessimpleintuitive apiextensibleCode Exampleimporttimefromkueueimporttask,TaskExecutorConsumer,KueueConfigKueueConfig(kafka_bootstrap='localhost:9092')@task(topic="my-topic")defsleepy_task(sleep:int):time.sleep(sleep)print("done sleeping",sleep)returnsleepsleepy_task.enqueue(args=(15,))consumer=TaskExecutorConsumer(["my-topic"])consumer.start()# prints "done sleeping, 15"Installationpip install kueueDevelopmentInstallpoetryand runpoetry installat the root of the repository. This should create a virtual environment with all the necessary python dependencies.TestsThe test framework makes heavy use ofpytestfixtures in order to spin up full integration environment consisting of a kubernetes cluster usingkindandpytest-kindand kafka usingstrimzipytestLicenseMIT ©Jose Rojas
Package: kueventparser
event-parserイベント情報が載っているウェブページから情報を抽出し、特定のデータ形式に変換するパッケージ。Usageinstallpipを利用する場合(主にインストールした後バージョン管理をpipでしたい人向け)$pipinstallkueventparserrun scriptparse_event[-h][--help]Developgitclonehttps://github.com/kkiyama117/KUEventParser.git# recommend using pipenvpipenvinstall--devyou can also use venv with requirements.txtDocsgetfromkueventparserimportgetget(url="url of event")get_allfromkueventparserimportget_allget_all()kueventparserimportkueventparserkueventparser.kueventparser('get_all',year=2019,month=2)eventは指定URLのイベントページから抽出したイベント情報(Event)で、以下の構造になっている。classEvent:"""イベント情報を含んだclass"""def__init__(self,name:str,url:str,location:str,description:str,date:datetime.date,start:datetime.time,end:datetime.time):"""イニシャライザーArgs:name: イベント名url: イベント情報のURLlocation: 開催地description: 詳細説明文date: 開催日start: 開始時間end: 終了時間"""detailより正確なドキュメント群はsphinxで書かれている.# /docs/build/html/ にドキュメントが作成される.cddocs
pythonmake_docs.py
Package: kufar
Kufar Private APIThis library is result of researching around Kufar Mobile App. Project is still development. But you can use it now.:recycle: RequirementsPython 3.10+:pill: UsageInstall library using pip (or another package manager):pipinstallkufarImport nessesary classes:fromkufarimportKufarAPI,State,RequsterCreate state, and open Request context manager:asyncdeftest():state=State('here you should specify path to the file that will store your state')asyncwithRequster()asclient:api=KufarAPI(client,state)# !!! Required step !!!awaitapi.init()# Here you can call any methods what you wantapi.authenticate("kufar_email@gmail.com","kufar_password")print(awaitapi.user_ads.get_my_ads_count())What you can with this library# Authenticate and save tokens in the your state and file that you specifiedawaitapi.authenticate("email","password")# Get current account ads countads_count=awaitapi.user_ads.get_my_ads_count()print(ads_count)# Get Current Account Infocurrent_account=awaitapi.account.get_current_account()# Get Saved Searchessaved_searches=awaitapi.saved.get_searches(current_account.account.account_id)# Get unread messages countmessages_unread_count=awaitapi.messaging.unread_count()# Get all categoriescategories=awaitapi.categories.get_categories()
Package: kuflow-robotframework
KuFlow Robot FrameworkThis library provides keywords to interact with the KuFlow API from a Robot Framework Robot. Its purpose is to facilitate interaction from the robot logic (RPA). Its use helps to keep the manipulation of robot results by Workflow decoupled as much as possible.List of available keywords:Set Client AuthenticationConfigure the client authentication in order to execute keywords against Rest APIAppend Log MessageAdd a log entry to the taskClaim TaskAllow to claim a taskRetrieve ProcessAllow to get a process by IDRetrieve TaskAllow to get a task by IDSave Element DocumentSave a element task of type documentDelete Element DocumentAllow to delete a specific document from an element of document type using its id.Save ElementSave a element taskDelete ElementAllow to delete task element by specifying the item definition code.Convert To Principal ItemGiven an Id of a Principal user, create an item that represents a reference to the Principal.Convert To Document Item From UriGiven an Id of a Document or the URI reference of a Document, create an item that represents a reference to the Document elementand can be used.Convert JSON String To ObjectGiven a JSON string as argument, return new JSON objectSave Json Forms Value DataAllows a JSON Forms to be saved in the task.Upload Json Forms Value DocumentAllows you to upload a document to the referenced task and then include a reference to it in the task's JSON Forms.DocumentationMore detailed docs are available in thedocumentation pages.ContributingWe are happy to receive your help and comments, together we will dance a wonderful KuFlow. Please review ourcontribution guide.LicenseMIT License
Package: kuiper
KuiperA terminal-based dating application for UTD students, built with thecursesAPI.InstallationUnfamiliar with terminal stuff? Here's what you need to start using Kuiper:Install PythonOpen up your terminal or command lineType inpython3 -m pip install kuiper. You may receive some nasty output, that's alright. Mac users might need to install XCode toolsNow you're ready to use Kuiper! Just typekuiperinto your command line, and the TUI should boot.Usage$kuiper# Start the TUI$kuiper-cUSERNAMEPASSWORD# Login with credentials$kuiper-d# Print configs$kuiper-i# Initialize the database$kuiper-h# View the help menu$kuiper-lnew_configs.yaml# Update server configs$kuiper--local_server# Connect to localhost server$kuiper-q# Suppress server output$kuiper-s# Start serverMenu navigation is controlled by the up and down arrow keys.When filling out a form field, the string in the bottom-right corner is the current buffer.
Hit "Enter" to save the form field.ConfigsThe follow are the configuration options supported by Kuiper.To modify Kuiper's configs, create aconfig.yamlfile with the keys and values you'd like to overwrite,
and callkuiper -l config.yamlConfigDefault ValueDescriptionbind_host"127.0.0.1"The address on which the server will be hosted viakuiper -sport8000The port on which the server will be hosted viakuiper -saccess_host"35.172.42.184"The address to the server the client will ping. The defualt value is the static IP address of Kuiper's main serverdb_path"kuiper.db"The path to the server's user and post databaserequired_email_suffix"@utdallas.edu"The email suffix required during registration. For no requirement, set to""org_name"UTD"The organization name to be displayed at login and registrationserver_email_username/passwordNone/NoneThe login information for the email the server will use to send email verification codesserver_email_smtp_addr/port"smtp.gmail.com"/465The SMTP address/port used to send emailstext_editor"vim"The text editor called via thesubprocessmodule to write posts and commentsInspirationUTD Bruh Moments IG PostOriginal Reddit Post
Package: kukajto-downloader
KukajTo Downloader - get a direct url to a video or subtitle fileThis program can find the direct url of a video or subtitle file fromkukaj.to, that can be opened in theVLC media player.InstallationGoogle Chrome(a reasonable version) must be installed in orderto use web gui of the downloader.WindowsInstall precompiledlatest setup from releasesPython and cmd useInstall from pip packagepip install kukajto-downloaderHow to useRun the program or typekukajto-downloaderSelect the video and clickAnalyzeOpen VLC, then navigate toMedia→Open Network Streamor pressCtrl+NPaste video url intoPlease enter a network URLinputFor those who want to add subtitlesCheckShow more optionsCheckPlay another mediaPaste subtitles intoExtra mediainputClickPlaySupported sourcesKukajto is currently using following source:ShortcutDomainSupportPlay*FormatTAPstreamtape.com✅✅mp4MIXmixdrop.co✅✅mp4MONfilemoon.sx✅✅m3u8DOD----NET----*Can be analyzed without playing video first.PreviewUsing in codeYou can use the library in your code:fromseleniumimportwebdriverfromkukajto_downloaderimportKukajdriver=webdriver.Chrome()# mixdrop source, english, czech subtitlesdriver.get("https://film.kukaj.io/matrix/1?subs=0&lng=EN")# analyze kukaj siteresult=Kukaj(driver).get()# prints the url of video and subtitlesprint(result.video)print(result.subtitles)driver.quit()Custom scraper can be created too. This is an example howMixdropScraperis implemented:fromseleniumimportwebdriverfromsrc.kukajto_downloaderimportKukajfromsrc.kukajto_downloaderimportScraper,UnsupportedStructureErrordriver=webdriver.Chrome()classMixdropScraper:"""Scraper class must have following methods:__init__Arguments:driver - selenium webdriver instancegetMethod that extracts url from the sourceArguments:iframe - selenium iframe object of sourceReturns:url - An url that will be displayed"""def__init__(self,driver)->None:self.driver=driverdefget(self)->str:# required methodurl=self.driver.execute_script("return MDCore.wurl")ifnoturl:raiseUnsupportedStructureErrorreturnurl# mixdrop source, english, czech subtitlesdriver.get("https://film.kukaj.io/matrix/3?subs=0&lng=EN")# create scraper instancescraper=Scraper(driver)# attach new scraperscraper.attach("mixdrop.co",MixdropScraper)# analyze kukaj siteresult=Kukaj(driver).get(scraper)# prints the url of video and subtitlesprint(result.video)DisclaimerFOR EDUCATIONAL AND INFORMATIONAL PURPOSES ONLY.The information provided in or through this website is for educational and informational
purposes only and solely as a self-help tool for your own use.THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. YOU MAY USE THIS SOFTWARE AT YOUR OWN RISK. THE USE IS COMPLETE RESPONSIBILITY OF THE END-USER. THE DEVELOPERS ASSUME NO LIABILITY AND ARE NOT RESPONSIBLE FOR ANY MISUSE OR DAMAGE CAUSED BY THIS PROGRAM.LicenseThis program is released under MIT License.CreditsIn my project I used following icons from other sources:kukajtofavicon 228x228iconflaticoniconsdownload file icon
Package: kukolex
KUKoLexKUKoLex is a Korean morphological analyzer and tagger made by NLP&AI LAB at Korea University. Main functions are as follows.RequirementsPython 3InstallFrom PyPi:pip install kukolexFrom GitHub:pip install git+https://github.com/nlpai-lab/KU_KoLex.gitUsagepos_tagging(input)It takes "sentences" as an input and gives a list of morphemes and their POS tags as an outputmorphs(input)It takes "sentences" as an input and gives a list of morphemes.pos(input)It takes "sentences" as an input and gives a list of POS tags.nouns(input)It takes "sentences" as an input and gives a list of nouns.from KUKoLex import kukolex

    kukolex.pos_tagging('안녕하세요. 저의 이름은 홍길동입니다.')
    # [('안녕', 'NNG'), ('하', 'XSA'), ('시', 'EP'), ('어요', 'EM'), ('.', 'SF'), ('저', 'NP'), ('의', 'JKG'), ('이름', 'NNG'), ('은', 'JX'), ('홍길동', 'NNP'), ('이', 'VCP'), ('ㅂ니다', 'EM'), ('.', 'SF')]

    kukolex.morphs('안녕하세요. 저의 이름은 홍길동입니다.')
    # ['안녕', '하', '시', '어요', '.', '저', '의', '이름', '은', '홍길동', '이', 'ㅂ니다', '.']

    kukolex.pos('안녕하세요. 저의 이름은 홍길동입니다.')
    # ['NNG', 'XSA', 'EP', 'EM', 'SF', 'NP', 'JKG', 'NNG', 'JX', 'NNP', 'VCP', 'EM', 'SF']

    kukolex.nouns('안녕하세요. 저의 이름은 홍길동입니다.')
    # ['안녕', '저', '이름', '홍길동']
Package: kukren
#Test
##Testsudo python setup.py install
python3 -m pip install --user --upgrade setuptools wheel
sudo python3 setup.py sdist bdist_wheelInstall to to upload to pypi:
python3 -m pip install --user -upgrade twine
twine upload --repository-urlhttps://test.pypi.org/legacydist/*or
python3 -m twine upload --repository-urlhttps://test.pypi.org/legacy/dist/*Test it from the test site:
python3 -m pip install --index-urlhttps://test.pypi.org/simple/numdatapiyumiyupython -m twine upload dist/*
pip install numdatapiyumiyu
Package: kuksa-client
KUKSA Python SDKKUKSA Python Client and SDK is a part of the open source projectEclipse KUKSA.
More about Eclipse KUKSA can be found in therepository.IntroductionKUKSA Python SDK provides both a command-line interface (CLI) and a standalone library to interact with eitherKUKSA ServerorKUKSA Databroker.Building and Installing the KUKSA Python SDKThe fastest way to start using KUKSA Python SDK is to install a pre-built version from pypi.org:pip install kuksa-clientIf you want to install from sources instead see the KUKSA Python SDKBuild documentation.Using the Command Line Interface (CLI)After you have installed the kuksa-client package via pip you can run the test client CLI directly by executing:kuksa-clientWith default CLI arguments, the client will try to connect to a local Databroker, e.g. a server supporting thekuksa.val.v1protocol without using TLS. This is equivalent to executingkuksa-client grpc://127.0.0.1:55555More details on how to use the CLI is available in the KUKSA Python SDKCLI documentationUsing Docker for the CLIThe KUKSA Python SDK CLI is available as aprebuilt docker container.
For more details see the KUKSA Python SDKDocker documentation.Using KUKSA Python SDK as libraryThe KUKSA Python SDK provides three APIS for connecting and communicating withKUKSA ServerandKUKSA Databroker.
For more details see the KUKSA Python SDKLibrary documentation.Contributing to KUKSA Python SDKThe KUKSA project welcomes contributions.See the KUKSA Python SDKContribition documentfor formal requirements.Development and TroubleshootingFor information on tools useful for KUKSA Python SDK development environment and help on troubleshooting frequent problems please visit
the KUKSA Python SDKdevelopment and troubleshooting documentation.
Package: kulc
Keras Utility & Layer Collection [WIP]Collection of custom layers for Keras which are missing in the main framework. These layers might be useful to reproduce current state-of-the-art deep learning papers using Keras.ApplicationsUsing this library the following research papers have been reimplemented in Keras:Attention is all you needShow, attend and tellOverview of implemented LayersAt the moment theKeras Layer Collectionoffers the following layers/features:Scaled Dot-Product AttentionMulti-Head AttentionLayer NormalizationSequencewise AttentionAttention WrapperScaled Dot-Product AttentionImplementation as described inAttention Is All You Need. Performs a non-linear transformation on the valuesVby comparing the queriesQwith the keysK. The illustration below is taken from the paper cited above.Multi-Head AttentionImplementation as described inAttention Is All You Need. This is basically just a bunch aScaled Dot-Product Attentionblocks whose output is combined with a linear transformation. The illustration below is taken from the paper cited above.Layer NormalizationSequencewise AttentionThis layer applies various attention transformations on data. It needs a time-series of queries and a time-series of values to calculate the attention and the final linear transformation to obtain the output. This is a faster version of the general attention technique. It is similar to theglobal attentionmethod described inEffective Approaches to Attention-based Neural Machine TranslationAttention WrapperThe idea of the implementation is based on the paperEffective Approaches to Attention-based Neural Machine Translation. This layer can be wrapped around anyRNNinKeras. It calculates for each time step of theRNNthe attention vector between the previous output and all input steps. This way, a new attention-based input for theRNNis constructed. This input is finally fed into theRNN. This technique is similar to theinput-feedingmethod described in the paper cited. The illustration below is taken from the paper cited above.
Package: kulgap
# kulgap[![PyPI version](https://badge.fury.io/py/kulgap.svg)](https://badge.fury.io/py/kulgap)Calculate relative entropy between Gaussian processes.# InstallingShould be able to install the package(once registered and uploaded to PyPI) with` $ pip install kulgap `# DevelopmentFor registering the package:` $ python setup.py register `To create a release, package the source code with` $ python setup.py sdist `Upload with` $ python setup.py upload `
Package: kuliza_ip2location
Usage:
from kuliza_ip2location import ip2location;
ip2location.ip_to_location(‘106.51.254.182’)Outputs:
{u’loc’: u’12.9833,77.5833’, u’isp’: u’AS24309 Atria Convergence Technologies Pvt. Ltd.  Broadband Internet Service Provider INDIA’, u’city’: u’Bengaluru’, u’country’: u’IN’, u’region’: u’Karnataka’, u’hostname’: u’No Hostname’, u’ip’: u’106.51.254.182’, u’org’: u’Atria Convergence Technologies Pvt. Ltd.,’}
Package: kulo
kuloA tool for managing Mitsubishi Heat Pump systems (mostly?) locally instead of through Kumo Cloud.This was written primarily because Kumo Cloud never works.Kulo requires Python 3.8 or newer.Usage(Planned; not implemented.)$ kulo login
Kumo Cloud username: <type your username and press enter>
Password: <type your password and press enter>

Found 2 indoor units:
- Main Bedroom
- Main House
$ kulo test
Testing connections to 2 indoor units:

- Main Bedroom: Success
- Main House: Success
$ kulo
Main Bedroom
    Mode:        Heat
    Temperature: 68°F
    Humidity:    48%
    Fan Speed:   3/5

Main House
    Mode:        Heat
    Temperature: 70°F
    Humidity:    49%
    Fan Speed:   2/3
$ContributingBug reports and pull requests are welcome on GitHub athttps://github.com/duckinator/kulo.The code for Kulo is available under theMIT License.
Package: kulprit
kulprit(Pronounced: kuːl.prɪt)Kullback-Leibler projections for Bayesian model selection in Python.InstallationCurrently, this package is only available for download directly from GitHub with the commandpipinstallgit+https://github.com/bambinos/kulprit.gitDocumentationThe Kulprit documentation can be found in theofficial docsDevelopmentRead our development guide inCONTRIBUTING.md.
Package: kultools
KulToolsKultools is an interface to run atomistic simulations usingASEandVASP.⚠️ Documentation under constructionInstallThe package can be installed usingpip. You would require python 3.6 or abovepipinstallkultoolsUsageNote:Examples coming soon!Running a zeolite calculation using KulTools>>>fromkul_toolsimportKulToolsasKT>>>fromase.buildimportmolecule>>>kt=KT(gamma_only=False,structure_type='zeo',is_stop_eligible=True)KT:HPC=localKT:VASP_GAMMA=FalseKT:VASP_PP_PATH=local_vasp_ppKT:VASP_COMMAND=local_vasp_std>>>kt.set_calculation_type('opt')>>>atoms=molecule('H2O')>>>atoms.set_cell(8*np.identity(3))>>>atoms.center()>>>atoms.pbc=True>>>>>>kt.set_structure(atoms)>>>kt.set_overall_vasp_params({'gga':'RP'})>>>atoms=kt.run()Task ListUpdate code documentationAdd examplesUpdate ReadmeSetup GitHub ActionsSupport and contributionIf you like the project, please ⭑ the project! Also, feel free to report unexpected behaviour atissue.Contributions are always welcome!! Please open aPRwith corresponding changes to documentation and tests.Side notesload vasp module
Package: kumade
kumadeA make-like build utility for Python.Features:You can define tasks, such as executing commands, creating files,
or invoking functions, inKumadefile.py, with standard Python code.You can run tasks from shell withkumadecommand.Any task can have its dependencies and kumade considers the dependency graph
to determin the task execution order.Kumade decides whether or not to perform a file creation task with considering
the file existence and whether its timestamp is older than its dependencies.Kumademeans rake in Japanese, and it is regarded as a lucky charm
because it collects happiness.Getting startedInstallTo install kumade, use pip:pip install kumadeWriteKumadefile.pyTo define tasks, writeKumadefile.py.For example,importkumadeaskufrompathlibimportPathimportsubprocessku.set_default("greet")help_file=Path("help.txt")@ku.task("greet")@ku.depend(help_file)defgreeting()->None:print("Hi, this is Kumade.")print(f"See{help_file}.")@ku.file(help_file)defcreate_help_file()->None:withhelp_file.open("w")asoutfile:subprocess.run(["kumade","-h"],stdout=outfile)This example defines two tasks and sets default task.The task "greet" is defined by the decorator@ku.task("greet")and it will output a greeting when executed.
This task depends on the file "help.txt" and
kumade will execute the file creation task if it does not exist.The file creation task for "help.txt" is defined by the decorator@ku.file(help_file)and it will create the file by capturing
the standard output of command execution.You can see more examples of task definition in the fileKumadefile.pyin thekumaderepository.RunTo run tasks from shell, usekumadecommand:kumadekumadecommand loads task definitions fromKumadefile.pyand
runs the specified tasks (or the default task if no task is specified).Runkumade --helpto see available options.For developmentInstallYou can install this package from GitHub directly:pip install git+ssh://git@github.com/yamaimo/kumade.gitOr, to develop, install from a cloned repository as follows:#clonerepositorygit clone git@github.com:yamaimo/kumade.gitcd kumade#createvenvandactivateitpython3.11 -m venv venvsource venv/bin/activate#installthispackageaseditablewithdependenciespip install -e .[develop]Format and LintTo format, executekumade format.To lint, executekumade lint.CoverageTo measure coverage and report it, executekumade report_coverage.