Saravanan666/pypi-org huggingface dataset:
Package: karas-py
Karas这是一个基于mirai-api-http的轻量级，高性能qq消息处理与发送框架Version使用使用pip安装本项目pip3installkaras_py一个群聊复读机实例:(async)fromkaras.boximportYurine,MessageChain,Groupyurine=Yurine(host="localhost",port=8080,qq=114514,verifyKey="1919810")@yurine.listen("GroupMessage")asyncdefgm_event(group:Group,message:MessageChain):# async send messageawaityurine.sendGroup(group,message)yurine.run_forever()(sync send message)fromkaras.boximportYurine,MessageChain,Group,Plainyurine=Yurine(host="localhost",port=8080,qq=114514,verifyKey="1919810").start()yurine.sendFriend(1808107177,[Plain("Hello World")])yurine.close()实例ATRI使用了该框架开发，Bot的qq为1977987864Notice该框架目前处于开发中状态，如果您在使用过程中发现了bug或者您有好的建议，请尽情提出您的issues开源该框架遵循AGPL-3.0协议开源，iTXTech Mirai Console Loader
Copyright (C) 2020-2022 iTX Technologies

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.鸣谢本项目使用了JetBrains的工具PyCharm开发感谢JetBrains公司为开源项目提供的授权和支持
Package: karbor
Team and repository tagsKarborApplication Data Protection as a Service for OpenStackMission StatementTo protect the Data and Metadata that comprises an OpenStack-deployed
Application against loss/damage (e.g. backup, replication) by providing a
standard framework of APIs and services that allows vendors to provide plugins
through a unified interfaceOpen ArchitectureDesign for multiple perspectives:User: Protect App DeploymentConfigure and manage custom protection plans on the deployed resources
(topology, VMs, volumes, images, …)Admin: Define Protectable ResourcesDecide what plugins protect which resources, what is available for the userDecide where users can protect their resourcesVendors: Standard API for protection productsCreate plugins that implement Protection mechanisms for different OpenStack
resourcesLinksFree software: Apache licenseWiki:https://wiki.openstack.org/wiki/KarborDocumentation:https://docs.openstack.org/karbor/latest/Admin guide:https://docs.openstack.org/karbor/latest/admin/index.htmlSource:https://opendev.org/openstack/karborBugs:https://storyboard.openstack.org/#!/project/openstack/karborRelease notes:https://docs.openstack.org/karbor/latest/releasenotes.htmlFeaturesVersion 0.1Resource APIPlan APIBank APILedger APICross-resource dependenciesLimitationsOnly 1 Bank plugin per Protection PlanAutomatic object discovery not supported
Package: karbor-dashboard
Team and repository tagskarbor-dashboardKarbor DashboardFree software: Apache licenseSource:https://opendev.org/openstack/karbor-dashboard/Bugs:https://storyboard.openstack.org/#!/project/openstack/karbor-dashboardInstallation instructionsBegin by cloning the Horizon and Karbor Dashboard repositories:git clone https://opendev.org/openstack/horizon
git clone https://opendev.org/openstack/karbor-dashboardCreate a virtual environment and install Horizon dependencies:cd horizon
python tools/install_venv.pySet up yourlocal_settings.pyfile:cp openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.pyOpen up the copiedlocal_settings.pyfile in your preferred text
editor. You will want to customize several settings:OPENSTACK_HOSTshould be configured with the hostname of your
OpenStack server. Verify that theOPENSTACK_KEYSTONE_URLandOPENSTACK_KEYSTONE_DEFAULT_ROLEsettings are correct for your
environment. (They should be correct unless you modified your
OpenStack server to change them.)Install Karbor Dashboard with all dependencies in your virtual environment:tools/with_venv.sh pip install -e ../karbor-dashboard/And enable it in Horizon:cp ../karbor-dashboard/karbor_dashboard/enabled/* openstack_dashboard/local/enabled/To run horizon with the newly enabled Karbor Dashboard plugin run:tox -e runserver 0.0.0.0:8080to have the application start on port 8080 and the horizon dashboard will be
available in your browser athttp://localhost:8080/
Package: karcher-home
Kärcher Home Robots clientPython library and cli to authorize into Karcher Home Robots account and fetch device information.UsageTo downloadkarcher-homecli run:pip3installkarcher-homeFrom consoleUsage: karcher-home [OPTIONS] COMMAND [ARGS]...Tool for connectiong and getting information from Kärcher Home Robots.Options:-d, --debug                     Enable debug mode.-o, --output [json|json_pretty]Output format. Default: "json"-r, --region [eu|us|cn]         Region of the server to query. Default: "eu"--help                          Show this message and exit.Commands:device-properties  Get device properties.devices            List all devices.login              Get user session tokens.urls               Get region information.From codefromkarcher.karcherimportKarcherHomekh=awaitKarcherHome.create()awaitkh.login("user@email","password")devices=awaithk.get_devices()LicenseDistributed under the MIT License. SeeLICENSEfor more information.
Package: kard-private-api
Kard Private ApiPython wrapper of Kard neobank private APIMade with the helpHTTP Toolkitfor trafic sniffing <3 It's an awesome tool!Installationpip install kard-private-apiEither create a file namedsecrets.jsonin your working directory, with the following content:{"vendorIdentifier":null,"userAgent":"ghrlt/kard-private-api /v2.1","accessToken":null,"refreshToken":null,"accountPin":"Your pin (0000)","accountTel":"Your phone number (06 00 00 00 00)"}or don't, and input them in your console when asked.Usageimportkard_private_apiaskardapik=kardapi.Kard()k.init()...You are ready!Start with some exampleshereFAQHow does it login to my Kard account?The login processus include:
- Generating a unique identifier, linked to your account
- If new uid, confirm sms otp, else pass
- Confirm PIN code
Then, and only then, we have theaccessTokenandrefreshToken, which is your account sesame.The wrapper will automatically create and store your uid and obtain and store your tokens, in the current working directoryLicenseThis repository and all of its content is under theGNU GPLv3license.DisclaimerI shall not, and will not be liable for any misuse or unauthorised use, leading or not to damage to any third-party.
This API is to be used for educational purposes only.Support me
Package: kare
kareMinimal implementation ofFunction Curryingfor python.UsageYou can curry any callable by applying thecurryfunction to it:fromkareimportcurrydefmy_sum(x:int,y:int,z:int)->int:returnx+y+zcurried_sum=curry(my_sum)Curried functions take a single argument and return either a new function that takes a single argument or the result of applying all the arguments passed so far to the original function:sum_two=curried_sum(2)sum_five=sum_two(3)sum_five(1)# == 6, equivalent to my_sum(2, 3, 1)If you chain multiple calls together for a more succint notation:sum_five=curried_sum(2)(3)Thecurryfunction also works as a decorator:@currydefmy_curried_sum(x:int,y:int,z:int)->int:returnx+y+zadd_six=my_curried_sum(2)(4)Currently we only support functions with positional and specified number of arguments. The following:@curry# This wil raise an exceptiondefvariadic_positional_function(*args):...@curry# This wil raise an exceptiondefvariadic_positional_function(*,x:int,y:int):...@curry# This wil raise an exceptiondefvariadic_positional_function(x:int,y:int,**kwargs):...If you need to do partial application on keyword arguments you can usefunctools'partialas usual.
Package: karel-for-synthesis
Karel For SynthesisParser and executor for Karel. Based almost entirely on Nearai'scodewith some modifications.UsageTo use the executor, runfrom karel_for_synthesis import execute

result = execute(program, input_grid, record_trace=True)You can also parse and unparse programs by using theparseandunparsecommands.OutputsThis will give you anExecutionResultobject, with the following structureExecutionResult.result: the output grid, orNoneif there was an error.trace: the output trace.Noneifrecord_trace=Falseis passed.grids: the grids at every timestep in the execution of the  program.events: a series ofKarelEventobjects.timestep:grids[timestep]corresponds to the grid after this timesteptype: the token being executedspan:(i, j)for the first and last tokens corresponding to this blockcond_span:(i, j)for the first and last tokens contained in the conditional expression if one exists orNoneotherwisecond_value: the value of the conditional expression or number of remaining iterationssuccess: False if the action failed or the loop repeats foreverErrorsExecutorSyntaxException: occurs if the program passed in has invalid syntaxExecutorRuntimeException: occurs if the program passed in has an error in executing andrecord_trace=Falseis passed
Package: karellen-geventws
Karellen Gevent Websocket LibraryThis is aKarellenfork ofgevent-websocket.
The goal of this fork is to maintain the project to support Python 3.3,
3.4 and 3.5+ as well as latest WS standards errata.karellen-geventwsis a WebSocket library for thegeventnetworking library.Features include:Integration on both socket level or using an abstract interface.RPC and PubSub framework usingWAMP(WebSocket Application Messaging Protocol).Easily extendible using a simple WebSocket protocol plugin APIfromgeventwebsocketimportWebSocketServer,WebSocketApplication,ResourceclassEchoApplication(WebSocketApplication):defon_open(self):print("Connection opened")defon_message(self,message):self.ws.send(message)defon_close(self,reason):print(reason)WebSocketServer(('',8000),Resource({'/':EchoApplication})).serve_forever()or a low level implementation:fromgeventimportpywsgifromgeventwebsocket.handlerimportWebSocketHandlerdefwebsocket_app(environ,start_response):ifenviron["PATH_INFO"]=='/echo':ws=environ["wsgi.websocket"]message=ws.receive()ws.send(message)server=pywsgi.WSGIServer(("",8000),websocket_app,handler_class=WebSocketHandler)server.serve_forever()More examples can be found in thesrc/unittest/pythondirectory.
Hopefully more documentation will be available soon.InstallationThe easiest way to install karellen-geventws is directly fromPyPiusing pip or
setuptools by running the commands below:$ pip install karellen-geventwsGunicorn WorkerUsing Gunicorn it is even more easy to start a server. Only the
websocket_app from the previous example is required to start the
server. Start Gunicorn using the following command and worker class to
enable WebSocket funtionality for the application.gunicorn -k "geventwebsocket.gunicorn.workers.GeventWebSocketWorker" wsgi:websocket_appPerformancekarellen-geventwsis pretty fast, but can be accelerated further by installingwsaccelandujsonorsimplejson:$ pip install wsaccel ujsonkarellen-geventwsautomatically detectswsacceland uses the Cython implementation for
UTF8 validation and later also frame masking and demasking.Get in touchThe fork parent is located atgevent-websocket.Issues can be created onGitHub.
Package: karellen-kombu-ext
AboutThis project containsKarellenKombubroker extensions.In June 2016 Celery team has removed support for a variety of auxilliary
brokers from Kombu project citing the lack of funding. While in-memory
broker still exists for testing, this removal made it harder to develop
standalone pure-Python applications utilizing Celery and Kombu.This project recovered the brokers forDjangoandSQLAlchemy.Transport ComparisonClientTypeDirectTopicFanoutPriorityTTLdjangoVirtualYesYes *NoNoNosqlalchemyVirtualYesYes *NoNoNo* Declarations only kept in memory, so exchanges/queues must be
declared by all clients that needs them.DocumentationStandard Kombu documentation applies and is using Sphinx. The latest
documentation can be foundhere.Quick overviewfromkombuimportConnectionfromkarellen.kombuimportregister_transportsregister_transports()conn=Connection('sqlalchemy+sqlite:///:memory:')conn.connect()InstallationFirstly, you need to install Kombu.Installing KombuYou can install Kombu either via the Python Package Index (PyPI) or from
source.To install using pip:$pipinstallkombuTo install using easy_install:$easy_installkombuIf you have downloaded a source tarball you can install it by doing the
following:$pythonsetup.pybuild# python setup.py install # as rootSecondly, you need to install Karellen Kombu extension.Installing Karellen Kombu Extensions$pipinstallkarellen-kombu-ext$pipinstall--prekarellen-kombu-ext# if you're looking for the latest dev version$pipinstalldjango# if using Django$pipinstallsqlalchemy# if using SQL AlchemyGetting HelpYou can ask for help on Gitter or by filing an issue.Bug trackerIf you have any suggestions, bug reports or annoyances please report
them to ourIssue
TrackerContributingDevelopment of Karellen Kombu Extensions happens atGithubYou are highly encouraged to participate in the development. If you
don’t like Github (for some reason) you’re welcome to send regular
patches.LicenseThis software is licensed under the New BSD License in part that is
inherited from Kombu and Apache 2.0 as developed by Karellen. See the
LICENSE.bsd3 and LICENSE.apache files respectively in the top
distribution directory for the full license text.
Package: karellen-pyb-plugin
Karellen PyBuilder PluginKarellenPyBuilderPluginThis is the main PyBuilder plugin for all of the projects underKarellenumbrella.
This plugin governs the following PyBuilder project settings:Code style and copyright headers.Coverage passing threshold.Documentation building and style.Code packaging, packaging metadata and signing.In order to make sure your project conforms to Karellen standards, use this plugin by adding the following to yourbuild.py:frompybuilder.coreimportuse_plugin# ... #use_plugin("pypi:karellen_pyb_plugin",">=0.0.1")For DevelopersKarellen PyBuilder Plugin Issue TrackerKarellen PyBuilder Plugin Source Code
Package: karellen-sqlite
AboutThis project containsKarellenSqliteextensions
to the standard Python SQLite3 module.These extensions are verified to work with Python 3.x (x >= 3) on Linux
x86_64 and have been verified to work with GA and Debug builds of
CPython. Any CPython ABI-compliant Python should work as well (YMMV).SQLite3 Update HookTheSQLite3 update
hookallows the hook
to be notified if the database to which the connection is made was
changed.This a drop-in replacement that can be used as demonstrated in the
example below. The namepysqlite2was chosen to the driver to be
discovered automatically byDjango SQLite
backend.frompysqlite2importconnectdefhook(conn,op,db_name,table_name,rowid):"""Handle notification here. Do not modify the connection!"""withconnect(":memory:")asconn:conn.set_update_hook(hook)conn.execute("CREATE TABLE a (int id);")conn.execute("INSERT INTO a VALUES (1);")You can also use this library directly with your Python 3 without
renaming:fromsqlite3importconnectfromkarellen.sqlite3importConnectionwithconnect(":memory:",factory=Connection):# Do something useful herepass
Package: karellen-testing
KarellenTesting Frameworks and
UtilitiesThis project aggregates testing frameworks and utilities for all of the
projects underKarellenumbrella.MockA collection of Mock utilities helping with common tasksSpyfromunittestimportTestCasefromkarellen.testing.mockimportMagicSpyclassClass_A(object):defmethod_X(self):self.method_Y()defmethod_Y(self):passclassTestSpy(TestCase):deftest_class_a_api(self):mock=MagicSpy(Class_A())mock.method_X()mock.method_Y.assert_called_once_with()
Package: karel-the-robot
Please clickherefor documentation!Alternatively, the raw HTML file can be found in/karel_the_robot/docs/karel_the_robot-doc.html.Installing and ImportingKarel the Robot is now on PyPi!!!To install, run:pip install karel_the_robotSome IDEs (such as PyCharm) might be able to automatically run this command if you type the import sequence.Additionally, when usingrepl.it, you may have to import manually.
To do so, follow these steps within your repl:Click the "Packages" tabSearch for and select "karel-the-robot" (dashes instead of underscores)Press the plus (+) symbol by the package nameOnce installed, the recommended way to import is:from karel_the_robot import World, RobotOf course, there are numerous other ways to import.All credit to the concept and ideas belong to the original Karel team (made in Java). This is a PORT, not an original creation by any means.
Package: karlooper
Karlooperis a Python web micro-framework and
asynchronous networking library, originally developed atCoders.  By using non-blocking network I/O, Karlooper
can scale to tens of thousands of open connections, for moreclickHello, World!Here is a simple “Hello, World!” example web app for Karlooper:# -*-coding:utf-8-*-fromkarlooper.web.applicationimportApplicationfromkarlooper.web.requestimportRequest__author__='karlvorndoenitz@gmail.com'classHelloHandler(Request):defget(self):returnself.http_response("Hello, World!")handlers={"/hello":HelloHandler}if__name__=='__main__':application=Application(handlers,port=8000)application.run()DocumentationDocumentation and links to additional resources are available athttps://github.com/karldoenitz/karlooper
Package: karlo-py
karlo-pypipinstallkarlo-pyKarlo는 카카오에서 만든 사용자가 입력한 문장과 이미지를 기반으로 새로운 이미지를 만드는 기능입니다.생성형 인공지능(AI) Karlo는 1억 8천만 장 규모의 이미지-텍스트 학습을 통해 사용자가 묘사한 내용을 이해하고,픽셀 단위로 완전히 새로운 이미지를 생성합니다.또한 사용자가 원하는 콘셉트에 맞춰 창작 활동을 할 수 있도록 사물, 배경, 조명, 구도, 다양한 화풍을 지원합니다.B^EDIT에서 Karlo를 사용한 이미지 생성 기능을 간편하게 체험해 볼 수 있습니다.온라인 B^EDIT 체험하기사용 방법프롬프트프롬프트(Prompt)는 Karlo API를 통해 이미지를 생성하는 데 필요한 입력 정보입니다.프롬프트는 생성할 이미지를 묘사하는 제시어 또는 문장으로 구성되고, 기능별로 원본 이미지 등 추가 정보를 포함할 수 있습니다.활용 가이드에서 프롬프트를 효과적으로 구성하는 방법과 다양한 예제를 확인할 수 있습니다.지원 언어: 프롬프트의 제시어는 영문만 지원합니다. Karlo는 단순한 단어의 나열부터 장문의 묘사까지 구체적으로 이해할 수 있으므로, 영어가 유창하지 않아도 누구나 쉽게 사용해볼 수 있습니다.이미지 생성하기입력된 텍스트에 따라 이미지를 생성합니다.생성할 이미지를 묘사하는 제시어를 구성해 전달하면, Karlo가 프롬프트의 제시어를 바탕으로 새로운 이미지를 생성합니다.제시어로 계절과 같은 시기적 특징을 반영하도록 하거나, 특정 작가의 스타일을 사용하도록 지정할 수도 있습니다.사용 예시importasyncioimportosfromkarlo_pyimportgen_image,gen_variationasyncdefmain():API_KEY=os.getenv("API_KEY")ifAPI_KEYisNone:raiseValueError("API_KEY not set in environment")text="A newyork home, steampunk, snowy"output_name="py_img/output"# will be pngbatch_size=2# or an integer between 1 and 8try:awaitgen_image(text,output_name,API_KEY,batch_size)print(f"Image saved to{output_name}")exceptExceptionase:print(e)input_path="py_img/output_1.png"output_name="py_img/output_variation"# will be pngbatch_size=None# or an integer between 1 and 8try:awaitgen_variation(input_path,output_name,API_KEY,batch_size)print(f"Variation image saved to{output_name}")exceptExceptionase:print(f"Error:{e}")if__name__=="__main__":asyncio.run(main())위 실행 결과Prompt: A newyork home, steampunk, snowyVariation
Package: karlovic
NOTE: Currently in beta development. Breaking changes may happen at any time.The Karlovic library aims to simplify the process of setting up a htts server that serves machine learning models.Installpip install karlovicUsagefromkarlovicimportmodel_serverdefbottle_configuration_function(bottle):# Configure bottlepassplugins=[SomePlugin,...]app,run_server=model_server(plugins,bottle_configuration_function)# Use the app decorator to define endpoints@app.get('/hello')defhello():return"<h1>Hello World</h1>"@app.post('/world')defhello(image):return"some response"use_image_form(app,['/world'])# Creates GET '/world/form' that posts an# image to '/world'run_server()
Package: karman
This iskarman– a Python Client for theablator project.Using karman, you can connect to a hosted or self-hosted instance of ablator,
and check which functionalities to present to your user.InstallationTo install karman, use pip:pip install karmanUsageYou can include karman.py in your code and use itswhichandcaniusemethods.To do so, you’ll need a username – basically any string that uniquely identifies
one of your users – and the functionality id, which you can copy and paste from
the ablator web interface:import karman
username = "(your user name string)"
functionality_id = "f8077bfe-bb42-404c-a0d0-3fa107b01860"
ablator_client = karman.Karman(base_url='http://ablator.space/')
availability = ablator_client.which(username, functionality_id)

# this will return one of the following:
# availability == "breakthesystem.test-app.test-func.on"
# availability == NoneBoth thewhichand thecaniusemethods are blocking and will only return once
they get an answer from the ablator server. There is no caching implemented at the
moment.Thewhichmethod will return either a string that corresponds to the flavor slug
of the flavor that was selected for your user, or None, if the functionality is
disabled for your user.Thecaniusemethod will returnTrueif any flavor is activated for your user,
andFalseotherwise. Use this method if you only want to use ablator to roll
out a functionality, as opposed to a/b testing.Command LineIf you install karman via pip, you also get the karman command line tool. To use it
run it like this:karman --base_url http://ablator.space/ <username> <functionality_id>Add the -c parameter to continuously query the ablator server. If that’s too fast
add slow parameter as well like this: -c -s
Package: karma_sphinx_theme
# Karma Sphinx ThemeA simple responsive theme for sphinx. This theme is in it's early stage of development so onlycontains limited options.## Installing```pip install karma_sphinx_theme```## ConfigurationThe theme's project-wide options are defined in the `karma_sphinx_theme/theme.conf`file, and can be defined in your project's `conf.py` via`html_theme_options`. For example:```html_theme_options = {'navigation_depth': 2,'includehidden': True,'titles_only': False}```## Options* `navigation_depth` Int. Indicate the max depth of the tree, by default, 2 levels are included.* `includehidden` Bool. Specifies if the sidebar includes toctrees marked with the `:hidden:` option* `titles_only` Bool. If True, removes headers within a page from the sidebar.
Package: karnak
Karnak Data Platform Community EditionKarnak Data Platform is an opinionated framework for building big data and machine learning systems.This package contains a collection of open sourced utility libraries that are part of the
Karnak Data Platform framework.Libraries includedkarnak: legacy (karnak 2.0) libs.karnak3.core: karnak core libs.karnak3.cloud: cloud libs.karnak3.fetch: data extraction libs.