Saravanan666/pypi-org huggingface dataset:
Package: ketza
Ketza - HTML defined in pythonContentsRationaleBasicsExample with an unordered listFormattingFuture IntentionsRationaleThis project provides a framework for defining reusable units of HTML in
python code, as opposed to being a runtime or a templating engine.My intention is to provide a powerful but simple interface, allowing for
extensibility and interplay with other technologies without headaches.BasicsAt the core of Ketza is thetagfunction, which allows you to build a
html element in a series of function calls as follows:fromketzaimporttagmain=tag("main")# Apply element nameapp=main({"id":"app"})# Apply attributes as key-value pairshello_world=app("Hello World!")# Apply inner string content# hello_world is now equal to `<main id="app">Hello World!</main>`However, Ketza also provides pre-defined named tags for recognised
HTML elements based on the WHATWG living standard.
A further example is presented below, making use of predefined tags.Example with an unordered listLet's say, for argument's sake, I would like to define a list like this:<ulid="list-of-three"><liclass="list-triplet">Foo</li><liclass="list-triplet">Bar</li><liclass="list-triplet">Baz</li></ul>This can be done as follows:fromketzaimportul,lilist_of_three=ul({"id":"list-of-three"})(li({"class":"list-triplet"})("Foo"),li({"class":"list-triplet"})("Bar"),li({"class":"list-triplet"})("Baz"),)However, we can simplify this even further:fromketzaimportul,litriplet=li({"class":"list-triplet"})list_of_three=ul({"id":"list-of-three"})(triplet("Foo"),triplet("Bar"),triplet("Baz"))For our purposes, this yields html which is functionally equivalent to our
intendedlist-of-three. Even so, the raw html will look more like this:<ulid="list-of-three"><liclass="list-triplet">Foo</li><liclass=....While this does essentially result in pre-minified HTML output, there are
situations which call for human-readable raw HTML. As such, the following
section shall briefly touch on formatting.FormattingKetza provides a utility function for indenting minified html:fromketza.formattersimportindentlist_of_three=indent(list_of_three)Theindentfunction turns this:<ulid="list-of-three"><liclass="list-triplet">Foo</li><liclass=....Into this!<ulid="list-of-three"><liclass="list-triplet">Foo</li><liclass="list-triplet">Bar</li><liclass="list-triplet">Baz</li></ul>Future IntentionsThough I am confident that Ketza provides the means to define
components representing common HTML boilerplate, I am also considering
defining utilities to further streamline HTML boilerplate creation.I am also open to feedback for how I can improve and
extend Ketza, as well as its interoperability with other web technologies.
Package: keum
py-keumThis is a work in progressKeum is a modular implementation of cryptographic components which can be used
as a toolbox to bootstrap projects and experimentations. The library aims to be
the building block of higher level cryptographic protocols like Plonk, Groth16,
folding schemes, recursion layer, etc.It is not supposed to be used in production!
It is inefficient and not audited (and will never be).For instance, keum includes (or will include):Finite field implementationElliptic curve operations in different forms (Edwards, Montgomery,
Weierstrass) and different coordinates (affine, jacobian, projective)Arithmetisation oriented hash functions (Poseidon, Griffin, Anemoi, Rescue)Polynomial operationsPolynomial commitmentsThe generic primitives are instantiated with standard parameters. For instance, the following elliptic curves are currently supported:pallasvestagrumpkintweedledeetweedledumsecp256k1secp256r1bn254APIFinite fieldsFor a more complete documentation, have a look atff.py.fromkeumimportPrimeFiniteField# Instantiate a finite field is easy as creating a subclass of PrimeFiniteField and define the class attribute ORDER to the actual order of the prime finite fieldclassF13(PrimeFiniteField):ORDER=13# generate random valuesa=F13.random()b=F13.random()# add two field elementa+bElliptic curvesFor a more complete documentation, have a look atec.py.The following curves are currently supported:pallasvestagrumpkintweedledeetweedledumsecp256k1secp256r1bn254Add a new curveNew elliptic curves can be instantiated easily. See the files given above for
the structure to use. When a new curve is added, it must be exposed in__init__.py, and added in the test environment intest_ec.py. The CI will take care of running the tests for
the newly added curve.fromkeumimportpallas# generate random valuesp1=pallas.AffineWeierstrass.random()p2=pallas.AffineWeierstrass.random()# add two pointsp1+p2How to contributePython 3.11 is required. Use pyenv to install it.Install the dependencies usingpoetry installRun the tests withpoetry run pytest tests/Format withpoetry run black keum/*.py tests/*.py
Package: kev-checker
KEV CheckerThis tool retrieves and processes the latest CISA's Known Exploited Vulnerabilities (KEV) data. The data is stored in a CSV file and is processed using thepandaslibrary.Main RequirementsPython 3pandasrequestsargparseInstallationpip3 install --upgrade git+https://github.com/santosomar/kev_checkerMake an editable install if you want to make changes/enhancements to the codegit clone https://github.com/santosomar/kev_checker
cd kev_checker
pip3 install --upgrade -e .Usagekev-checker <search><search>can be either:a CVE ID in the format "CVE-YYYY-NNNNN"a vendor or open source projecta product name (keyword search)or a date range in the format "YYYY-MM-DD:YYYY-MM-DD".All input is case insensitive.ExamplesCVE IDThis command will retrieve and process the KEV data, and output all records that have a "cveID" field that matches "CVE-2023-21674".kev-checker CVE-2023-21674Output:cveID vendorProject  product  dateAdded
869  CVE-2023-21674     Microsoft  Windows 2023-01-10Vendor or Open Source ProjectThis command will retrieve and process the KEV data, and output all records that have a "vendorProject" field that matches "Microsoft".kev-checker opensslOutput:cveID vendorProject  product  dateAdded
658  cve-2014-0160       openssl  openssl 2022-05-04ProductThis command will retrieve and process the KEV data, and output all records that have a "product" field that matches "Cisco IOS XR products".kev-checker "IOS XR"Output:cveID vendorProject product
59    CVE-2020-3118         Cisco  IOS XR
60    CVE-2020-3566         Cisco  IOS XR
61    CVE-2020-3569         Cisco  IOS XR
564   CVE-2010-3035         Cisco  IOS XR
566   CVE-2009-2055         Cisco  IOS XR
662  CVE-2022-20821         Cisco  IOS XRTime RangeThis command will retrieve and process the KEV data, and output all records that have a "dateAdded" field within the range of January 1, 2023 to December 31, 2023.kev-checker 2023-01-01:2023-12-31Output:cveID vendorProject                               product  dateAdded
868  CVE-2022-41080     Microsoft                       Exchange Server 2023-01-10
869  CVE-2023-21674     Microsoft                               Windows 2023-01-10
870  CVE-2022-44877           CWP                     Control Web Panel 2023-01-17
871  CVE-2022-47966          Zoho                          ManageEngine 2023-01-23
872  CVE-2017-11357       Telerik  User Interface (UI) for ASP.NET AJAX 2023-01-26
873  CVE-2022-21587        Oracle                      E-Business Suite 2023-02-02
874  CVE-2023-22952      SugarCRM                     Multiple Products 2023-02-02
Package: kevin-toolbox
kevin_toolbox一个通用的工具代码包集合环境要求numpy>=1.19
pytorch>=1.2安装方法：pipinstallkevin-toolbox--no-dependencies项目地址 Repo使用指南 User_Guide免责声明 Disclaimer版本更新记录：v 1.3.1 （2024-01-05）【new feature】【bug fix】nested_dict_list【new feature】add set_default()，该方法实现了类似于 dict.setdefault() 的行为，当 name 指向的位置在 var 中不存在时，将会把 default 插入到对应的位置。添加了测试用例。patches.for_optuna【new feature】add build_sampler()，用于从配置构建采样优化算法实例【new feature】add build_storage()，用于从配置构建数据库实例【new feature】add build_study()，用于从配置构建实验【new feature】add copy_study()，用于复制实验。该函数改进自 optuna.copy_study，但是支持更多复制方式：内存与静态数据库之间，内存到内存，静态数据库到静态数据库等等。【new feature】add serialize，新增序列化模块，用于将 optuna 中的 trial、study 对象序列化为可以使用 json 或者 ndl 保存的结构。包含以下子模块：for_trial，包含 dump() 和 load() 方法。for_study，包含 dump() 和 load() 方法。添加了对应的测试用例。patches.for_numpy.linalg【bug fix】fix bug in softmax()，修复了当输入的概率分布是整数类型时会引发的异常。computer_science.algorithm.pareto_frontmodify get_pareto_points_idx()，增加了枚举类型 Direction 用于检查函数的 directions 参数，让其对异常输入能够及时报错。patches【new feature】add module for_logging，内含 build_logger() 函数用于构建 logger，并注册到给定的 registry 空间中。添加了对应的测试用例。
Package: kevin-toolbox-dev
kevin_toolbox一个通用的工具代码包集合环境要求numpy>=1.19
pytorch>=1.2安装方法：pipinstallkevin-toolbox--no-dependencies项目地址 Repo使用指南 User_Guide免责声明 Disclaimer版本更新记录：v 1.3.1 （2024-01-05）【new feature】【bug fix】nested_dict_list【new feature】add set_default()，该方法实现了类似于 dict.setdefault() 的行为，当 name 指向的位置在 var 中不存在时，将会把 default 插入到对应的位置。添加了测试用例。patches.for_optuna【new feature】add build_sampler()，用于从配置构建采样优化算法实例【new feature】add build_storage()，用于从配置构建数据库实例【new feature】add build_study()，用于从配置构建实验【new feature】add copy_study()，用于复制实验。该函数改进自 optuna.copy_study，但是支持更多复制方式：内存与静态数据库之间，内存到内存，静态数据库到静态数据库等等。【new feature】add serialize，新增序列化模块，用于将 optuna 中的 trial、study 对象序列化为可以使用 json 或者 ndl 保存的结构。包含以下子模块：for_trial，包含 dump() 和 load() 方法。for_study，包含 dump() 和 load() 方法。添加了对应的测试用例。patches.for_numpy.linalg【bug fix】fix bug in softmax()，修复了当输入的概率分布是整数类型时会引发的异常。computer_science.algorithm.pareto_frontmodify get_pareto_points_idx()，增加了枚举类型 Direction 用于检查函数的 directions 参数，让其对异常输入能够及时报错。patches【new feature】add module for_logging，内含 build_logger() 函数用于构建 logger，并注册到给定的 registry 空间中。添加了对应的测试用例。
Package: kevlar
Kevlar is an API regression testing framework. It uses a black-box testing methodology to ensure you maintain perfect backwards compatibility as your API evolves.Tagline> Keep your API bulletproof.InstallationIt’s in Python, so pip is the way to go:pip install kevlarUsageThere are two phases when using kevlar: 1) establishing a baseline and 2) regression testing and accepting/rejecting behavior changes.First, you define a set of API requests to be made against an API. After kevlar runs your test suite, you’ll carefully review and generalize the responses it recieved back to make sure they’re exactly what you’re expecting.After you’ve established a baseline, run the test suite on every commit, push, build, or even on an hourly cron job that’ll test production to make sure absolutely nothing has changed in what you’re responding to your clients with. Since APIs evolve and grow overtime, adapt your baseline as appropriate whenever you add new functionality or have differences reported from kevlar.### Why?Because manual smoke testing an API is really painful. It’s meant to be consumed by a machine, so let a machine do your smoke testing for you! ʕノ•ᴥ•ʔﾉ*:･ﾟ✧### Is it any good?thumbsup:
Package: kewpie
kewpieKEyWord PIckEr with tf-idfWork in Progress.InstallationpipinstallkewpieBasic UsagefromkewpieimportKwPickerdocs=["I am a cat.","I am a dog."]picker=KwPicker.build(docs,savedir='/dir/to/save/model/')sentence="I am a cat."span,keyword=picker.get_keywords(sentence)print(keyword)# -> 'cat'
Package: kewr
KEWRA simple python script runner.Many processes we use python for consist of a set of scripts, with particular inputs and outputs. tskr can be used to track all the scripts in a workflow and run them independently.For example, our project might include scripts to preprocess some data, do some analysis, then produce some plots. Each of these scripts might take arguments or options. We might complete the sequence like thispython ./preprocess_script.py /path/to/data
python ./analysis_script.py argument_1 --optional-flag  
python ./plotting_script.py /path/to/plot/dirtskr aims to keep our scripts organized along with their arguments.Installationpip install kewrUsageFirst create a new config filepython -m kewr create #creates a new tskr config file in the directoryIn this file we define the stages of our script sequence. The config is a .toml file with sections for each stage.[stage1]
help = "description of what the stage does"
cmd = "python example_script.py --option"
deps = ["/path/to/input/file"]
outs = ["/path/to/output/file"]List the available stages withpython -m kewr listRun each stage withpython -m kewr run stage1You can also run multiple stages at once withpython -m kewr run stage1 stage2 stage3Or run all stages at oncepython -m kewr run all
Package: keyagent
Copyright (c) 2018 Radical PrimePermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.Description: # keyagentKeyChest agent for local monitoring of keys and certificates -  keystore scanning on the host and local networksPlatform: UNKNOWNClassifier: Development Status :: 3 - AlphaClassifier: Intended Audience :: DevelopersClassifier: Programming Language :: PythonClassifier: Programming Language :: Python :: 2Classifier: Programming Language :: Python :: 2.6Classifier: Programming Language :: Python :: 2.7Classifier: Programming Language :: Python :: 3Classifier: Programming Language :: Python :: 3.3Classifier: Programming Language :: Python :: 3.4Classifier: Programming Language :: Python :: 3.5Classifier: Topic :: Internet :: WWW/HTTPClassifier: Topic :: SecurityClassifier: Topic :: System :: NetworkingClassifier: Topic :: Internet :: Proxy Servers
Package: keyar-mining
Keyar-mining is a Python library for machine learning and data mining.:warning:WARNING: This package is created just for learning about machine learning algorithm!:warning:WARNING: Not recommended to be using for high task data!LinksPyPI:https://pypi.org/project/keyar-miningKeyar-mining Doc:https://synitcool.github.io/keyar-mining/Installing keyar-miningPyPITo install keyar-mining, just executepipinstallkeyar-miningPypi download filesIf pypi files won't load the file :installkrminingunzip krmining.tar.gzmove the files in keyar-mining to site-packagesWhy this happen cause i always forget to specify the config and setup :PLicenseMIT License

Copyright (c) 2021 SynitIsCool

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.ContactEmail:zolarpixel3@gmail.comPersonal website:synit-web
Package: keyauth
Keyauth API WrapperKeyAuth is an Open-source authentication system with cloud-hosted subscriptions available as well.Installationpip3installkeyauthUsageimportpwinputfromkeyauthimport*client=Keyauth(name="application name",owner_id="your account id",secret="application secret",version="current version",file_hash=misc.get_checksum())print(client.application)print("Validation status:%s"%(client.check()))print("Blacklist status:%s"%(client.check_blacklist()))print()print("1=login; 2=register; 3=upgrade, 4=license key")option=int(input("Option: "))ifoption==1:reply=client.login(username=input("Username: "),password=pwinput.pwinput("Password: "))ifoption==2:reply=client.register(username=input("Username: "),password=pwinput.pwinput("Password: "),license_key=pwinput.pwinput("License: "))ifoption==3:reply=client.upgrade(username=input("Username: "),license_key=pwinput.pwinput("License: "))ifoption==4:reply=client.license(license_key=pwinput.pwinput("License: "))print(client.user)
Package: keyauth-api
Keyauth_api_wrapper is a wrapper for the keyauth api. Keyauth is an authentication service used by many developers. There website can be found athttps://keyauth.comorhttps://keyauth.uk.Change Log0.0.1 (12/30/2021)First Release0.0.2 (12/30/2021)Fixed Basic bugs0.0.3 (12/30/2021)Fixed create_key
Package: keyauth-tech
Key AuthAuthentication Tool for Authenticating Users, HWIDs and Licenses to keep your Code secure from malicious activities.InstallationInstall keyauth-tech with pippipinstallkeyauth-techUsage/ExamplesfromkeyauthimportKeyAuthdefmain():print("Hack the matrix!")# Replace with your Code (success)defexit_program():print("Authentication failed.")# Replace with your Code (fail)authenticator.exit()# Creating the authenticator instanceauthenticator=KeyAuth(app_id="",max_tries=3,success=main,fail=exit_program)# Replace with your APP ID# Authenticatingauthenticator.authenticate()# Install Packages if not installedauthenticator.install(["requests","random"])# Replace with your Packages# Print your HWIDprint(authenticator.get_hwid())NoteTo get yourAPP_IDmake an Account onhttps://keyauth.tech/signup, you can get a Auth Key by contacting Support for completly free.SupportFor support, emailkeyauthtech@gmail.comor contactflankdevon Discord.
Package: keybeat
KeybeatKeybeat is a very simple CLI built in Python that creates and validates proofs of life. I originally built this for adead man's switchsystem, which is designed to allow access to files and the like in the event of a person's death, but that requires a way to prove that a person is still alive. Such a system is subject to two kinds of attacks: someone trying to create proofs in advance, and someone trying to invalidate existing proofs. By using cryptographic signatures through GPG, the latter problem is mitigated, and the former can be prevented by using a time challenge --- this is a simple idea whereby some server issues, say, a random number every hour, and this acts much like the headline on a newspaper: if you sign that, everyone else knows for sure you made that signature at earliest when the random number was published, on a specific hour.Of course, any central server may be subject to all sorts of intervention, and, although the NIST randomness beacon seems like a pretty good source for most applications, a dead man's switch needs to be resistant to attacks from state-level actors in some cases (which NIST, controlled by the US government, is likely not), so Keybeat uses a decentralised source of randomness: the hash of the latest block on the Bitcoin blockchain. As so many people contribute to this source of randomness, and as there are already clear economic incentives to do so, only a person in control of 51% of the hashing power of the network would be able to reliably interfere with what that hash ends up being or predict it in advance, and, for a daily proof of life challenge, it is effectively impossible to predict the hash of the block released around 9:00 in the morning a day in advance!UsageYou can install Keybeat like so:pipinstallkeybeatFrom here, there are three simple commands:keybeat create, which makes a new proof-of-life;keybeat validate <proof-string> -a <max-age-seconds> [-p <public-key-file>], which cryptographically validates the given proof (give-to read it from stdin) and makes sure it is no older than the given number of seconds; andkeybeat get-time <proof-string> [-p <public-key-file>], which gets the time at which a proof was created.Keybeat is backed by GPG, so you should make sure that a command likeecho test | gpg --sign | gpg --verifyworks and tells you"Good signature". If not, you may need to install GPG and create a private key, for which there are endless guides online.LicenseSeeLICENSE.
Package: keybert-base-chinese
About一个基于keybert提取中文文本关键词的python包。Install$ pip3 install -U keybert_base_chineseDirectorkeybert_base_chinese_model.py_model.pyKeyBERT类
自定义选择的model以及选取的tokenizer，提取文档的关键词。extract_keywords函数extract_embeddings函数UsageContact usmay.xiaoya.zhang@gmail.com
Package: keybhook
Just a little keyloggerpip install keybhookTested against Windows 10 / Python 3.10 / AnacondaThis script allows you to hook into the Windows keyboard events and capture the keys that are pressed on the keyboard.How to use itfromkeybhookimportstart_hook,config,VK_CODELETTERVK_CODELETTER[193]=('?',False)# adds not mapped chars (https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes), on my keyboard "?" has the code 193 -itmightbedifferentonyours.(2ndvalue:TrueifnumpadelseFalse)config.done=Falsestart_hook()# exampleoldlen=0co=0whileTrue:newlen=len(config.results)ifnewlen>oldlen:print(config.results[-1])# prints the last captured letterco+=1oldlen=newlenifco==20:config.done# break when we have 20 charactersbreak#### ('letter', 'is_numpad', 'event_code', 'event', 'scan_code', 'flags', 'time')# ('enter', False, 257, 'KEY_UP', 28, 129, 87485609)# ('right shift', False, 256, 'KEY_DOWN', 54, 1, 87486906)# ('h', False, 256, 'KEY_DOWN', 35, 0, 87487062)# ('h', False, 257, 'KEY_UP', 35, 128, 87487125)# ('right shift', False, 257, 'KEY_UP', 54, 129, 87487156)# ('e', False, 256, 'KEY_DOWN', 18, 0, 87487234)# ('e', False, 257, 'KEY_UP', 18, 128, 87487328)# ('l', False, 256, 'KEY_DOWN', 38, 0, 87487500)# ('l', False, 257, 'KEY_UP', 38, 128, 87487593)# ('l', False, 256, 'KEY_DOWN', 38, 0, 87487640)# ('l', False, 257, 'KEY_UP', 38, 128, 87487718)# ('o', False, 256, 'KEY_DOWN', 24, 0, 87487796)# ('o', False, 257, 'KEY_UP', 24, 128, 87487890)# ('right shift', False, 256, 'KEY_DOWN', 54, 1, 87488156)# ('?', False, 256, 'KEY_DOWN', 115, 0, 87488359)# ('?', False, 257, 'KEY_UP', 115, 128, 87488500)# ('right shift', False, 257, 'KEY_UP', 54, 129, 87488515)# ('spacebar', False, 256, 'KEY_DOWN', 57, 0, 87490890)# ('spacebar', False, 257, 'KEY_UP', 57, 128, 87491000)
Package: keybind
https://github.com/idlesign/keybindDescriptionGlobal key binding made easyRequires X11 (X Window System). For UNIX-like systems, e.g. Linux.Can be used both as a Python package and from CLI.Features:Create some global key bindings to your functions.Use them in your GUI or CLI application.Bind arbitrary program run to a key using CLI.From PythonfromkeybindimportKeyBinderdefdo():print('done')# The following will start key listening loop in a thread# (useful if you don't want to block your main program).KeyBinder.activate({'Ctrl-K':do,'Shift-R':None,# Do not run anything, just intercept.},run_thread=True)From CLI;ListentoCtrl-K,Ctrl-RandD(keycode40).;Provideasmany-kasyouwant.$keybind-k"Ctrl-K=ls -lah"-k"Ctrl-R=python run.py somearg --someopt"-k"40=date";Allkeysinterceptionmode.Showkeycodes.;Usewisely,keepyourmouseready.$keybind--sniff