Saravanan666/pypi-org huggingface dataset:
Package: kamo-cli
Kamo CLIKamo Commandline ToolThe Kamo tool is a simple user-facing CLI tool for communicating with the Kamo backend and Knode backend rest services.Getting startedThis tool is being rapidly developed and it is recommended that you install it in development mode.$pipinstall-e.Once the tool is installed you need to add a profile and create or set a tenant. e.g.$kamoprofileaddkamo
>kamo.io

$kamotenantslist

$kamotenantscreatetesttenant

$kamotenantssettesttenantTest that everything works:$kamoversion
$kamojobslist--allAdvanced usageFor all commands you can use the-o jsonflag to produce json output which is handy when doing automation or using the jq tool to do further processing.For example, to get a list on all objects you might run:$kamo-ojsondbobjectslist|jqWhen debugging or inspecting the restful api it can be useful to use the-v infoog-v debugflags to get further information about what the tool is doing.Try these for example to see how the cli tool gets objects from the kamo db$kamo-vinfodbobjectslist--num1$kamo-vdebugdbobjectslist--num1
Package: kamunu
KamunuOrganizations IDs finder /  Akan - son of god NyameDescriptionA package for searching organization identifiers in multiple search engines.PluginTake a look on for some examples in the repositoryhttps://github.com/fedevergara/kamunuInstallationDependencies**** The other dependecies can be installed with pip installing this package.NOTE:To start the script on conda please run the next stepsmkdir -p $HOME/data/dbmongodb mongod --dbpath $HOME/data/db/Packagepip install kamunuUsageLet's start the script executingkamunu_run -S "Name_of_an_organization" -O "name_of_organitation_source"LicenseBSD-3-Clause LicenseLinkshttp://colav.udea.edu.co/
Package: kamzik3
Kamzik3 is a modular and lightweight experiment control framework written in Python3.It is focused on minimalist yet unified way to control and orchestrate wide range of
devices used in experimental setup.It uses ZeroMQ to exchange messages between server and clients. Qt5 is used for the
graphical interface. Kamzik3 provides tools for logging, visualizing and evaluation
of experimental data. Users can create and execute custom macros and scans using the
built-in macro-server.The experimental setup is defined in one configuration file written in YAML,
human-readable data serialization standard.The framework can be downloaded from PyPI (https://pypi.org/project/kamzik3/).DocumentationThe documentation is available at:https://cfel-sc-public.pages.desy.de/kamzik3/RequirementsPython: 3.8 or 3.9Python Modules: Backendnumpypyzmqpintbidictpyqt5pyqtgraphpyserialoyamlpsutilnatsortreportlabpandastablesPython Modules: Optionalpytangopyopenglsysutilpydaqmxpypiwin32rocketchat-APIpytestpytest-covpytest-lazy-fixturepytest-mockChangelog.. include:: HISTORY.rst
:end-before: EOF
Package: kan
(看) Kan: To ReadKan is book search utility so you spend less time searching and more
time reading.InstallationInstall from PyPi$pipinstallkanFrom SourceTo get the latest version to try out, clone the github repo.$gitclonehttps://github.com/jjangsangy/kan.gitUsesetup.pyto install# For Python 2.x Install$pythonsetup.pyinstall# For Python 3.x$python3setup.pyinstallUsage# Print Out Help Instructions$kan-hUsage: kan [-h] [-v] [--title name] [--author name] [--max n]
           [--subject topic] [--language code]
           {title,isbn,author} ...

Kan helps you find the book

positional arguments:
  {title,isbn,author}  Search by
    title              Book title
    isbn               ISBN code
    author             Book author

optional arguments:
  -h, --help           show this help message and exit
  -v, --version        show program's version number and exit
  --title name         Title of the book
  --author name        Name of the author
  --max n              Maximum results to get per query: default=10, max=40
  --subject topic      Specify subject matter by category
  --language code      Restrict the search results to those with a certain
                       language codeSimplest way is to search for book by title. By default, you’ll get the
top 3 matches.$ kan title 'Fifty Shades'Title: Fifty Shades of Grey
Author: E L James
ISBN_13: 9781448149452

Title: Fifty Shades Darker
Author: E. L. James
ISBN_10: 0385537689

Title: Fifty Shades Freed
Author: E L James
ISBN: N/ASearch more generally and tweak your search parameters.$kan--languageko--max5author'J. K. Rowling'--topTitle: 해리포터와마법사의돌
Author: J. K. Rowling, 김혜원
OTHER: OCLC:226262132

Title: 해리포터와혼혈왕자
Author: J. K. Rowling, 최인자
OTHER: OCLC:226262119

Title: 해리포터와비밀의방
Author: J. K. Rowling, 김혜원
OTHER: OCLC:226262164

Title: 해리포터와불의잔
Author: 조앤 K. 롤링, 김혜원
ISBN_10: 8983920955

Title: 해리포터와죽음의성물
Author: J. K. Rowling, 최인자
ISBN_10: 898392067XRelease History0.0.2Bug fixes and speed improvements. More compact interfaceBook models updateCompleted Backend API for Google BooksAdded verbose flag0.0.1Bug FixesImproved loadtime by applying fieldstring parameter at url creation.Added SubparserAllow search using ISBN0.0.0Initial registration and release on pypiBuilt command line parserBasic Client Interface and Implementation for Google BooksAdded support for optional search arguments
Package: kanagata
Providing extracted dict (subclass of collections.UserDict).how to use(todo: description)models.pyfromkanagataimportRestrictionBuilder# group: name, users# user: name, age, Option[skills], Option[school]# skill: namewithRestrictionBuilder()asb:withb.define_dict("Group")asgroup:group.add_member("name",required=True)group.add_list("users","User",required=True)withb.define_dict("User")asuser:user.add_member("name",required=True)user.add_member("age",required=True)user.add_dict("school","School",required=False)user.add_list("skills","Skill",required=False)withb.define_dict("Skill")asskill:skill.add_member("name",required=True)withb.define_dict("School")asschool:school.add_member("name")school.add_list("groups","Group",required=True)frommodelsimportUser# user can have only name, age, skills. (skills is optional)user=User(name="foo",age=20,skills=[])print(user)# {'name': 'foo', 'age': 20, 'skills': []}try:user2=User(name="bar")# ValueError: User: required fields {'age'} are not foundexceptValueError:passtry:user["xxx"]="bar"# ValueError: User: unsupported field 'xxx', field members=['name', 'age', 'school', 'skills']exceptValueError:pass# user.skills can have only name.user["skills"].append({"name":"math"})print(user)# {'skills': [{'name': 'math'}], 'age': 20, 'name': 'foo'}try:user["skills"].append({})# ValueError: Skill: required fields {'name'} are not foundexceptValueError:pass0.0.1default option support
Package: kan-alexandria
(看) Kan: To ReadKan is book search utility so you spend less time searching and more
time reading.InstallationInstall from PyPi$pipinstallkanFrom SourceTo get the latest version to try out, clone the github repo.$gitclonehttps://github.com/jjangsangy/kan.gitUsesetup.pyto install# For Python 2.x Install$pythonsetup.pyinstall# For Python 3.x$python3setup.pyinstallUsage# Print Out Help Instructions$kan-hUsage: kan [-h] [-v] [--title name] [--author name] [--max n]
           [--subject topic] [--language code]
           {title,isbn,author} ...

Kan helps you find the book

positional arguments:
  {title,isbn,author}  Search by
    title              Book title
    isbn               ISBN code
    author             Book author

optional arguments:
  -h, --help           show this help message and exit
  -v, --version        show program's version number and exit
  --title name         Title of the book
  --author name        Name of the author
  --max n              Maximum results to get per query: default=10, max=40
  --subject topic      Specify subject matter by category
  --language code      Restrict the search results to those with a certain
                       language codeSimplest way is to search for book by title. By default, you’ll get the
top 3 matches.$ kan title 'Fifty Shades'Title: Fifty Shades of Grey
Author: E L James
ISBN_13: 9781448149452

Title: Fifty Shades Darker
Author: E. L. James
ISBN_10: 0385537689

Title: Fifty Shades Freed
Author: E L James
ISBN: N/ASearch more generally and tweak your search parameters.$kan--languageko--max5author'J. K. Rowling'--topTitle: 해리포터와마법사의돌
Author: J. K. Rowling, 김혜원
OTHER: OCLC:226262132

Title: 해리포터와혼혈왕자
Author: J. K. Rowling, 최인자
OTHER: OCLC:226262119

Title: 해리포터와비밀의방
Author: J. K. Rowling, 김혜원
OTHER: OCLC:226262164

Title: 해리포터와불의잔
Author: 조앤 K. 롤링, 김혜원
ISBN_10: 8983920955

Title: 해리포터와죽음의성물
Author: J. K. Rowling, 최인자
ISBN_10: 898392067X
Package: kanao
Kanao 📚Project OverviewKanao is a project designed to train a GPT (Generative Pre-trained Transformer) model on custom datasets. It provides the capability to train the model using various data sources, including PDFs, Word documents, plain text files, and URLs.FeaturesVersatile Training: Train the GPT model on diverse data types, including PDFs, Word documents, plain text files, and URLs.Conversational AI: Utilize the trained model for generating responses in a conversational manner.Easy Integration: Seamlessly integrate Kanao into your projects for natural language understanding and generation.Getting StartedTo get started with Kanao, follow the installation instructions and examples in thedocumentation.InstallationpipinstallKanaoUsagefromkanao.core.kanaoimportKanaoopen_ai_api_key=""# Initialize Kanaokanao_instance=Kanao(open_ai_api_key)# Train the model on custom datakanao_instance.train_on_pdf('path/to/pdf/file.pdf')# Generate a responseresponse_txt=kanao_instance.generate_response("What is in the document?")For more detailed usage, refer to thedocumentation.ContributionContributions are welcome! Feel free to open issues or pull requests.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: kanbanflow2wekan
Kanbanflow2WekanDonate to help keep this project maintainedSummaryThis is a library to perform kanban migration from Kanbanflow to Wekan in an automated way.RequirementsrequestsQuick Start GuideInstall kanbanflow2wekanpip install kanbanflow2wekanInitialize kanbanflow2wekanimport os
from dotenv import load_dotenv
from kanbanflow2wekan import k2w

load_dotenv()

print('kanbanflow2wekan | by: @mdiniz97\n\n')

migration = k2w(
    os.getenv('WEKAN_URL'),
    os.getenv('WEKAN_USER'),
    os.getenv('WEKAN_PASSWORD'),
    os.path.join(os.getcwd(), 'kanbanflow'), # path to kanbanflow dump's folder
    os.getenv('KANBANFLOW_USER'),
    os.getenv('KANBANFLOW_PASSWORD'),
    kf_download_attachments=True,
)

migration.migrate()
Package: kanbanize-sdk
Welcome to Kanbanize SDKKanbanize-sdk is a python library built on top of the Kanbanize platform API V2.
In addition to providing interaction with the platform's resources, we make objects available through dataclasses that
they facilitate the composition of parameters used in research and payloads for updating and inserting data into the platform.InstallationTo install the library in your project, you can do it through the pip package managerpip install kanbanize-sdkHow to use?Once installed, you can import the class responsible for creating the resource instance, passing the authentication data,
and other dataclasses that helped you set up queries and interactions with the desired resources. For example:from kanbanize_sdk import Kanbanize, UserListParams

if __name__ == '__main__':
	service = Kanbanize({'subdomain': <subdomain_string>, 'api_key': <apikey_string>})
	params = UserListParams(is_enabled=0, users_id=[1,5,20])
	response = service.users().list(params=params)Every output response will follow the examples listed on the Kanbanize platform, except for making a small adjustment to the response the application will give you.
Example from:{
    "data": [
        {
            "user_id": 0,
            "email": "string",
            "username": "string",
            "realname": "string",
            "avatar": "string",
            "is_enabled": 0,
            "is_confirmed": 0,
            "is_tfa_enabled": 0,
            "registration_date": "2023-10-30"
        }
    ]
}To:[
    {
        "user_id": 0,
        "email": "string",
        "username": "string",
        "realname": "string",
        "avatar": "string",
        "is_enabled": 0,
        "is_confirmed": 0,
        "is_tfa_enabled": 0,
        "registration_date": "2023-10-30"
    }
]
Package: kanbanpy
kanbanpyA console-based Kanban task manager created in Python.Create and manage tasks visually in your terminal using simple commands.FeaturesSimple CLI commandsASCII based kanban boardEasy setupStores tasks in a readable format (JSON).InstallationInstall using pip running the following command in the terminal:pipinstallkanbanpyConfigurationkanbanpy requires a config file located in the user's home directory. This file
can be generated using thesetupcommand:# Run the setup wizardkanbanpysetup# Or use the defaultskanbanpysetup-yUsageIf you installed the library, you can use the CLI as a system command:kanbanpy[...args]Or call it as a Python import:python-mkanbanpy[...args]ExamplesHere are some examples of the commands available:# Just display the kanban boardkanbanpy# Create a new taskkanbanpycreate"A new todo"# Move task with id 1 to the next statuskanbanpynext1# Revert a task with id 1 to the previous statuskanbanpyprev1# Remove task with id 1kanbanpyremove1Commands also have convenient aliases:create:cnext:nprev:premove:rTo explore the full list of commands, run:kanbanpy--helpTipsAliasesA handful technique is to define a shell alias to call the cli and take
advantage of the command aliases defined by the package.# Instead of running:kanbanpycreate"my new todo"# Define an alias in your .bashrc or .zshrc:aliaskb="kanbanpy"# And type shorter commands:kbc"my new todo"Important tasksInclude a '!' in a task todo to mark it as important. The task will be
highlighted when displaying the board:kanbanpycreate"an important todo!"kanbanpycreate"project!: todo title"kanbanpycreate"(!) new todo"ContributingThank you for considering contributing to my project! Any pull requests are
welcome and greatly appreciated. If you encounter any issues while using
the project, please feel free to post them on the issue tracker.To contribute to the project, please follow these steps:Fork the repository.Add a new feature or bug fix.Commit them using descriptive messages, usingconventional commitsis recommended.Submit a pull request.LicenseThis project is licensed under the MIT License. See theLICENSEfile
for more details.
Package: kanboard
Client library for Kanboard API.Author: Frédéric GuillotLicense: MITInstallationpython3-mpipinstallkanboardThis library is compatible with Python >= 3.5.Note:Support for Python 2.7 has been dropped since version 1.1.0.On Fedora (36 and later), you can install the package using DNF:dnfinstallpython3-kanboardExamplesMethods and arguments are the same as the JSON-RPC procedures described in theofficial documentation.Python methods are dynamically mapped to the API procedures:You must use named arguments.By default, calls are made synchronously, meaning that they will block the program until completed.Creating a new team projectimportkanboardkb=kanboard.Client('http://localhost/jsonrpc.php','jsonrpc','your_api_token')project_id=kb.create_project(name='My project')Authenticate as userimportkanboardkb=kanboard.Client('http://localhost/jsonrpc.php','admin','secret')kb.get_my_projects()Create a new taskimportkanboardkb=kanboard.Client('http://localhost/jsonrpc.php','jsonrpc','your_api_token')project_id=kb.create_project(name='My project')task_id=kb.create_task(project_id=project_id,title='My task title')Use a personalized user agentimportkanboardkb=kanboard.Client(url='http://localhost/jsonrpc.php',username='admin',password='secret',user_agent='My Kanboard client')SSL connection and self-signed certificatesExample with a valid certificate:importkanboardkb=kanboard.Client('https://example.org/jsonrpc.php','admin','secret')kb.get_my_projects()Example with a custom certificate:importkanboardkb=kanboard.Client(url='https://example.org/jsonrpc.php',username='admin',password='secret',cafile='/path/to/my/cert.pem')kb.get_my_projects()Example with a custom certificate and hostname mismatch:importkanboardkb=kanboard.Client(url='https://example.org/jsonrpc.php',username='admin',password='secret',cafile='/path/to/my/cert.pem',ignore_hostname_verification=True)kb.get_my_projects()Ignore invalid/expired certificates and hostname mismatches, which will make your application vulnerable to man-in-the-middle (MitM) attacks:importkanboardkb=kanboard.Client(url='https://example.org/jsonrpc.php',username='admin',password='secret',insecure=True)kb.get_my_projects()Asynchronous I/OThe client also exposes async/await style method calls. Similarly to the synchronous calls (see above),
the method names are mapped to the API methods.To invoke an asynchronous call, the method name must be appended with_async. For example, a synchronous call
tocreate_projectcan be made asynchronous by callingcreate_project_asyncinstead.importasyncioimportkanboardkb=kanboard.Client('http://localhost/jsonrpc.php','jsonrpc','your_api_token')loop=asyncio.get_event_loop()project_id=loop.run_until_complete(kb.create_project_async(name='My project'))importasyncioimportkanboardasyncdefcall_within_function():kb=kanboard.Client('http://localhost/jsonrpc.php','jsonrpc','your_api_token')returnawaitkb.create_project_async(name='My project')loop=asyncio.get_event_loop()project_id=loop.run_until_complete(call_within_function())See theofficial API documentationfor the complete list of
methods and arguments.
Package: kancylog
使用教程importkancylogaslog# 控制是否打印彩色日志，默认是True# log.disablePrintColor()# 使用默认的Logger实例log.debug("debug log")log.info("info log")log.warn("warn log")log.error("error log")log.success("success log")log.log("good log","GOOD")# 自定义Logger对象logger=log.Logger(color=True,tag="demo",file="test_{date}.log")logger.debug("debug log")logger.info("info log")logger.warn("warn log")logger.error("error log")logger.success("success log")logger.log("good log","GOOD")1）文字效果2021-11-27 01:17:56.316447 DEBUG 115872 <mainthread> - [log_tests.py::6] : debug log
2021-11-27 01:17:56.316447  INFO 115872 <mainthread> - [log_tests.py::7] : info log
2021-11-27 01:17:56.316447  WARN 115872 <mainthread> - [log_tests.py::8] : warn log
2021-11-27 01:17:56.316447 ERROR 115872 <mainthread> - [log_tests.py::9] : error log
2021-11-27 01:17:56.316447    OK 115872 <mainthread> - [log_tests.py::10] : success log
2021-11-27 01:17:56.316447  GOOD 115872 <mainthread> - [log_tests.py::11] : good log
2021-11-27 01:17:56.316447 DEBUG 115872 <mainthread> - [log_tests.py::16] (demo) : debug log
2021-11-27 01:17:56.316447  INFO 115872 <mainthread> - [log_tests.py::17] (demo) : info log
2021-11-27 01:17:56.316447  WARN 115872 <mainthread> - [log_tests.py::18] (demo) : warn log
2021-11-27 01:17:56.316447 ERROR 115872 <mainthread> - [log_tests.py::19] (demo) : error log
2021-11-27 01:17:56.316447    OK 115872 <mainthread> - [log_tests.py::20] (demo) : success log
2021-11-27 01:17:56.316447  GOOD 115872 <mainthread> - [log_tests.py::21] (demo) : good log2）图片效果
Package: kandinsky.py
kandinsky.pyReverse Engineered fusion-brain APIInstallationpip install kandinsky.pyExample of usagefromkandinskyimportKandinskypipe=Kandinsky(auth_token='your-authorization-token-from-headers')job=pipe.create(prompt="cat")result=pipe.wait(job)#b64 stringimage=pipe.load(result)#BytesIO object
Package: kando
kando is a simple todo list manager. It can be used from the command-line, as a
Python 3 module, and with a text editor.This is version 0.1.0 of the program.Licensekando is free software under the terms of the Apache License, version 2.0.ContactThe author of kando is Niels Serup. Bug reports and suggestions should be sent
tons@metanohi.namefor the time being.InstallingWay #1Just run this:# easy_install kandoWay #2Get the newest version of kando athttp://metanohi.name/projects/kando/or athttp://pypi.python.org/pypi/kandoExtract kando from the downloaded file, cd into it and run this in a terminal:# python setup.py installUseFrom the command-lineRun:kando --helpWith EmacsTo use kando with Emacs, SAK Mode has been developed. SAK Mode can be
downloaded at <http://metanohi.name/projects/showandkill/>. A special mode is
not needed to edit a kando todo list in a text editor, but it makes it easier.Developmentkando uses Git for code management. The newest code is available at:$ git clone git://gitorious.org/kando/kando.gitThis documentCopyright (C) 2011 Niels SerupCopying and distribution of this file, with or without modification, are
permitted in any medium without royalty provided the copyright notice and this
notice are preserved.  This file is offered as-is, without any warranty.
Package: kaneda
Kaneda is a Python library that allows to report events and metrics of your applications.
It provides a several builtinmetricsmethods in order to store any amount of data that you want to then
analyze it or for performance studies.UsageFirst of all, you need to installKanedapackage:pip install kanedaThen you need a backend in order to keep data in a persistent storage.
The following example it shows how to send metrics with Elasticsearch as a backend:fromkaneda.backendimportElasticsearchBackendfromkanedaimportMetricsbackend=ElasticsearchBackend(index_name='myindex',app_name='myapp',host='localhost',port=9200,user='kaneda',password='kaneda')metrics=Metrics(backend=backend)metrics.gauge('answer_of_life',42)FeaturesBuiltinmetricsfunctions and custom metric reports.Configurable reportingbackendsclasses andasynchronousqueue classes.Builtin Elasticsearch, MongoDB, InfluxDB and RethinkDB backends.Builtin Celery, RQ and ZMQ asynchronous queue classes.Django support.DocumentationVisit thedocumentationfor an in-depth look at Kaneda.
Package: kanglib
welcome to Kang digital magic world:
V0.3：calculate_weighted_value
thank you for your trust. if you have any questions, please contact me.kangxiaowen@gmail.com首先，创建两个DataFrame：一个是活动水平序列，另一个是权重序列。请看以下的Python代码：importpandasaspdimportkanglibimportmatplotlib.pyplotasplt# 创建一个日期范围dates=pd.date_range(start='2022-01-01',periods=365)# 创建活动水平DataFrameactivity_levels_df=pd.DataFrame({'date':dates,'activity_level':[0.2]*len(dates)})# 创建权重DataFrameweights_df=pd.DataFrame({'date':dates,'weight':[0.5]*len(dates)})# 合并这两个DataFramedf=pd.merge(activity_levels_df,weights_df,on='date')# 使用calculate_weighted_value函数df=kanglib.calculate_weighted_value(df,['activity_level'],'weight','result')# 打印DataFrameprint(df)# 绘制结果plt.plot(df['date'],df['result'])plt.title('Weighted Activity Level over Time')plt.xlabel('Date')plt.ylabel('Weighted Activity Level')plt.show()这段代码首先创建了两个DataFrame，一个包含活动水平，另一个包含权重，都是针对相同的日期范围。然后，它们被合并到同一个DataFrame中，然后使用calculate_weighted_value函数计算加权活动水平。然后它打印出这个DataFrame，并将结果列绘制成一条折线图，x轴是日期，y轴是加权活动水平。python setup.py sdist bdist_wheeltwine upload dist/*使用示例下面是如何使用kanglib.calculate_weighted_value函数的示例：importpandasaspdimportkanglibimportmatplotlib.pyplotaspltimportnumpyasnp# 创建一个日期范围dates=pd.date_range(start='2022-01-01',periods=365*2)# 创建活动水平DataFrameactivity_levels_df=pd.DataFrame({'date':dates,'activity_level':np.random.rand(len(dates))})# 创建权重DataFrameweights_df=pd.DataFrame({'date':dates,'weight':np.random.rand(len(dates))})# 合并这两个DataFramedf=pd.merge(activity_levels_df,weights_df,on='date')# 使用calculate_weighted_value函数df=kanglib.calculate_weighted_value(df,['activity_level'],'weight','result')# 打印DataFrameprint(df)# 绘制结果plt.plot(df['date'],df['result'])plt.title('Weighted Activity Level over Time')plt.xlabel('Date')plt.ylabel('Weighted Activity Level')plt.show()
Package: kango
KangoAPIConnectionimport kango

#--- connect
db = kango.db(hosts="http://host:8529", username="root", password:str)

#--- select collection
coll = db.select_collection('test')

#--- insert item
coll.insert({k:v, ...})

#--- insert item with custom _key
coll.insert({k:v,...}, _key='awesome')