Saravanan666/pypi-org huggingface dataset:
Package: keiko
keiko is Python and Web API clients forKeiko-chan.Installationkeiko can be installed via pip or easy_install:$pipinstallkeikoOr:$easy_installkeikoUsageFirstly, setup Keiko-chan and assign IP address.PythonSpecify the address of Keiko-chan and instantiate the client:>>>importkeiko>>>address='192.168.1.2'# example address of Keiko-chan>>>client=keiko.Client(address)Control the lamps:>>>client.lamps.green.on()# turns on the lamp>>>client.lamps.green.status'on'>>>client.lamps.green.off()# turns off the lamp>>>client.lamps.green.status'off'>>>client.lamps.yellow.blink()# blinks the lamp>>>client.lamps.yellow.status'blink'>>>client.lamps.red.quickblink()# blinks the lamp quickly>>>client.lamps.red.status'quickblink'>>>client.lamps.off()# turns off the all lampsWith delay and duration time:>>>client.lamps.red.on(wait=2,time=4)# wait 2 second, light 4 secondsControl the buzzer:>>>client.buzzer.on()# turns on the buzzer>>>client.buzzer.status'continuous'>>>client.buzzer.off()# turns off the buzzer>>>client.buzzer.status'off'Control the direct inputs and outputs:>>>client.di.status{1:'off',2:'off',3:'off',4:'off'}>>>client.do.status{1:'off',2:'off',3:'off',4:'off'}>>>client.do(2).on()>>>client.do(2).status'on'>>>client.do.status{1:'off',2:'on',3:'off',4:'off'}Control the voices:>>>client.voices.status'stop'>>>client.voices(1).play()# plays #1 voice>>>client.voices.stop()# stops the voice>>>client.voices(5).play(3)# plays #5 voice 3 times>>>client.voices.stop()>>>client.voices(10).repeat()# plays #10 voice repeatedly>>>client.voices.stop()Web APISpecify the address of Keiko-chan and run Web API server:$keiko192.168.1.2*Runningonhttp://127.0.0.1:8080/Pass optional parameters to the server:$keiko192.168.1.2--servermyhost:5000*Runningonhttp://myhost:5000/Control the lamps:$curlhttp://127.0.0.1:8080/lamps{"lamps":{"green":"off","red":"off","yellow":"off"}}$curlhttp://127.0.0.1:8080/lamps/green/on{"result":"success"}$curlhttp://127.0.0.1:8080/lamps/green{"lamps":{"green":"on"}}With delay and duration time:$curlhttp://127.0.0.1:8080/lamps/yellow/on?wait=2&time=4{"result":"success"}Control the buzzer:$curlhttp://127.0.0.1:8080/buzzer{"buzzer":"off"}$curlhttp://127.0.0.1:8080/buzzer/on{"result":"success"}Control the direct inputs and outputs:$curlhttp://127.0.0.1:8080/di{"di":{"1":"off","2":"off","3":"off","4":"off"}}$curlhttp://127.0.0.1:8080/do{"do":{"1":"off","2":"off","3":"off","4":"off"}}$curlhttp://127.0.0.1:8080/do/2/on{"result":"success"}Control the voices:$curlhttp://127.0.0.1:8080/voices{"voices":"stop"}$curlhttp://127.0.0.1:8080/voices/10/play{"result":"success"}CaveatsThis module is unofficial and tested with only Keiko-chan 4G+ (DN-1510GL) yet. For more details, seethe official documentation.
Package: keinsum
keinsumAn extension of np.einsum where capital letters serve as multiple ellipses, seeEinsum Visualizedfor details.Installation:pip install keinsumUsagefromkeinsumimportkeinsumkeinsum('Ik,kJ',a,b)`is the same asnp.einsum('ijk,klm', a, b)whereaandbare 3D arrays.TestingRunpytestin the project root.
Package: keitaropy
keitaropykeitaropy is a simple and easy to use API wrapper library forKeitaroAdmin API written in Python3 andrequests📖 Project linksSource codePyPI📄 Official Keitaro resourcesKeitaro WebsiteAdmin API documentationTechnical Support❔ Why should you use keitaropyallows to use multiple trackers in one solutionno need knowledge of http requestsincredibly easy to usefollows the paradigm "write once, run everywhere"📖 Getting StartedInstallationTo install you need to havepipinstalledpip install keitaropyKeitaro tracker initializationBegin by importing Keitaro class from keitaropy module and passing API key and URL to itfromkeitaropyimportKeitaroapi=Keitaro('Keitaro Admin API key','Keitaro tracker URL')⚙ What can it doAll keitaropy functionality is presented inGoogle Sheet📚 ExamplesIf request is successfully sent, a response will be received. You can see it simply by printing it in consoleaffnetwork=api.affnetworks.delete(14)print(affnetwork)Click to see a response sampleAdmin API reference{
      "id": 14,
      "name": "string",
      "postback_url": "string",
      "offer_param": "string",
      "state": "string",
      "template_name": "string",
      "notes": "string",
      "pull_api_options": "string",
      "created_at": "string",
      "updated_at": "string",
      "offers": "string"
    }Get all offers or specific oneTo get all offers call get() method without any argumentsall_offers=api.offers.get()Let's try to get a specific offer by its iddummy_offer=api.offers.get(21)As a result you'll get a response in JSON formatClick to see a response sample[
      {
      "id": 21,
      "name": "string",
      "group_id": 0,
      "action_type": "string",
      "action_payload": "string",
      "action_options": [],
      "affiliate_network_id": 0,
      "payout_value": 0,
      "payout_currency": "string",
      "payout_type": "string",
      "state": "string",
      "created_at": {},
      "updated_at": {},
      "payout_auto": true,
      "payout_upsell": true,
      "country": [],
      "notes": "string",
      "affiliate_network": "string",
      "archive": "string",
      "local_path": "string",
      "preview_path": "string"
      }
    ]Campaign creationTo create an advertising campaign, you can simply call create() method of the campaigns resourcepayload={'name':'Dummy campaign','state':'disabled','cost_type':'CPC','cost_value':'5','cost_currency':'USD','cost_auto':True}campaign=api.campaigns.create(payload)
Package: keithleygui
Warning:Keithleygui v1.1.4 is the last release that is developed and tested
for Python 2.7. Newer releases require Python 3.6 or higher.keithleyguiA high-level user interface for Keithley 2600 series instruments which allows
the user to configure, record and save voltage sweeps such as transfer and
output measurements. Since there typically is no need to provide a live stream
of readings from the Keithley, the data from an IV-curve is buffered locally on
the instrument and only transferred to CustomXepr after completion of a
measurement.keithleyguibuild on the Python driver provided bykeithley2600.InstallationInstall the stable version from PyPI by running$pipinstallkeithleyguiOr install the latest development version from GitHub:$pipinstallgit+https://github.com/OE-FET/keithleyguiUsageIn the terminal, runkeithleyguito start the user interface. If your provide the--verboseoption, log output showing the communication with the Keithley will be
printed to the console.To start the user interface in a running Python terminal:fromPyQt5importQtWidgetsfromkeithleyguiimportKeithleyGuiAppapp=QtWidgets.QApplication([])keithley_gui=KeithleyGuiApp()keithley_gui.show()app.exec()You can optionally provide an existingKeithley2600instance to be used by the GUI:fromPyQt5importQtWidgetsfromkeithley2600importKeithley2600fromkeithleyguiimportKeithleyGuiAppapp=QtWidgets.QApplication([])keithley=Keithley2600('visa_address')keithley_gui=KeithleyGuiApp(keithley)keithley_gui.show()app.exec()System requirementsLinux or macOSPython 3.6 or higherAcknowledgementsConfig modules are based on the implementation fromSpyder.Scientific spin boxes are taken fromqudi.
Package: kekagui
Bumbo: Python Web Framework built for learning purposesBumbo is a Python web framework built for learning purposes.It's a WSGI framework and can be used with any WSGI application server such as Gunicorn.InstallationpipinstallbumboHow to use itBasic usage:frombumbo.apiimportAPIapp=API()@app.route("/home")defhome(request,response):response.text="Hello from the HOME page"@app.route("/hello/{name}")defgreeting(request,response,name):response.text=f"Hello,{name}"@app.route("/book")classBooksResource:defget(self,req,resp):resp.text="Books Page"defpost(self,req,resp):resp.text="Endpoint to create a book"@app.route("/template")deftemplate_handler(req,resp):resp.body=app.template("index.html",context={"name":"Bumbo","title":"Best Framework"}).encode()Unit TestsThe recommended way of writing unit tests is withpytest. There are two built in fixtures
that you may want to use when writing unit tests with Bumbo. The first one isappwhich is an instance of the mainAPIclass:deftest_route_overlap_throws_exception(app):@app.route("/")defhome(req,resp):resp.text="Welcome Home."withpytest.raises(AssertionError):@app.route("/")defhome2(req,resp):resp.text="Welcome Home2."The other one isclientthat you can use to send HTTP requests to your handlers. It is based on the famousrequestsand it should feel very familiar:deftest_parameterized_route(app,client):@app.route("/{name}")defhello(req,resp,name):resp.text=f"hey{name}"assertclient.get("http://testserver/matthew").text=="hey matthew"TemplatesThe default folder for templates istemplates. You can change it when initializing the mainAPI()class:app=API(templates_dir="templates_dir_name")Then you can use HTML files in that folder like so in a handler:@app.route("/show/template")defhandler_with_template(req,resp):resp.html=app.template("example.html",context={"title":"Awesome Framework","body":"welcome to the future!"})Static FilesJust like templates, the default folder for static files isstaticand you can override it:app=API(static_dir="static_dir_name")Then you can use the files inside this folder in HTML files:<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>{{title}}</title><linkhref="/static/main.css"rel="stylesheet"type="text/css"></head><body><h1>{{body}}</h1><p>This is a paragraph</p></body></html>MiddlewareYou can create custom middleware classes by inheriting from thebumbo.middleware.Middlewareclass and overriding its two methods
that are called before and after each request:frombumbo.apiimportAPIfrombumbo.middlewareimportMiddlewareapp=API()classSimpleCustomMiddleware(Middleware):defprocess_request(self,req):print("Before dispatch",req.url)defprocess_response(self,req,res):print("After dispatch",req.url)app.add_middleware(SimpleCustomMiddleware)
Package: kekas
KekasKek it easy.Kekas is a simple tool for training neural networks on Pytorch.I tried to keep it as simple as possible.Installationpip install kekasMixed Precision requirementsKekas usehttps://github.com/NVIDIA/apexlibrary for mixed precision training, so follow the installation instructions from its repo.FeaturesAwesome nameMixed Precision (FP16)Learning Rate FinderOne Cycle policyTensoboard loggingBest checkpoints savingEarly stoppingTTAFreeze / unfreezeEasy customizationQuick start guideI don't beieve in quick start guides, I think that they create more questions
than answers.Instead, I've created a detailedTutorial notebook. Read it.Contribution guideJust contribute something good and don't contribute anything bad.CitingIf you find this library useful for your research, please consider citing:@misc{aleksandr belskikh_2019,
    author      = {Aleksandr Belskikh},
    title       = {{kekas: Just another DL library}},
    month       = dec,
    year        = 2019,
    doi         = {10.5281/zenodo.2577861},
    version     = {0.1.23},
    publisher   = {Zenodo},
    url         = {https://doi.org/10.5281/zenodo.2577861},
    }
Package: keke
kekeThis project is an extremely simple trace-event writer for Python.You can read the traces in Perfetto or chrome'sabout:tracing.  This only
writes the consensus dialect that works in both, and is tiny enough to just
vendor on the off-chance that you want tracing in the future.If your needs are more like a line profiler, you might want either pytracing
(slightly abandoned, the git version does work in py3) or viztracer (unsuitable
for vendoring in other projects due to size, but actively maintained).I drew inspiration from both in writing this.Simple Examplefrom__future__importannotations# for IO[str]fromtypingimportIO,Optionalimporttimeimportclick@click.command()@click.option("--trace",type=click.File(mode="w"),help="Trace output filename")@click.option("--foo",help="This value gets logged")defmain(trace:Optional[IO[str]],foo:Optional[str])->None:withkeke.TraceOutput(file=trace):withkev("main",__name__,foo=foo):sub()defsub():withkev("sub1",__name__):time.sleep(1)withkev("sub2",__name__):time.sleep(2)OverheadVery close to zero when not enabled.The easiest way to not-enable is callTraceOutput(file=None)which will do nothing.Processes, or "how to get to distributed tracing"This approach avoids all magic.If you're calling another (trace-aware) program, then the simplest thing to do
is come up with a unique name and pass that to the child in argv, then attempt
to merge that yourself once it's done.If you're doing something like fork/spawn to continue python work, then the
parent can control basic information (like the tmpdir to write to) and the child
can open a unique file with its pid.If you're doing something more distributed, you might come up with a guid and
pass that to the child instead, for the child to tag it for later log uploading.What's with the nameI was trying to come up with a short, memorable name and some of the rendered
trace points were very pointy, which reminded me of the "bouba/kiki effect."
The name "kiki" was taken but "keke" was not.Licensekeke is copyrightTim Hatch, and licensed under
the MIT license.  I am providing code in this repository to you under an open
source license.  This is my personal repository; the license you receive to
my code is from me and not from my employer. See theLICENSEfile for details.
Package: keks
Anforderungen[!IMPORTANT]Stellen Sie sicher, dass Sie Python zumPATHhinzugefügt haben.InstallationDas Paket kann nun mit pip installiert werden!pipinstall-Ukeks[!NOTE]Wenn Sie pip nicht mit Python installiert haben oder pip nicht erkannt wird,führen Sie für pip zuvor nochpython -m ensurepip -Uaus.VerwendungDanach können Sie keks im Terminal ausführen.keks --helpOder benutzen Sie das Paket in Ihrem eigenen Projekt.importkeksprint('Ich nutze keks',keks.__version__)
Package: keksik-api
Keksik API wrapperОбвертка над APIkeksik.ioИспользование:importosfromkeksik_apiimportKeksikAPI,KeksikAPIExceptionGROUP_ID=int(os.environ.get('GROUP_ID'))ACCESS_TOKEN=os.environ.get('ACCESS_TOKEN')api=KeksikAPI(GROUP_ID,ACCESS_TOKEN)last_donates=awaitapi.donates.get_last()foriteminlast_donates.items:print(item.id)# Передача токена динамическиawaitapi.donates.answer(1,"Спасибо :3",group=GROUP_ID,token=ACCESS_TOKEN)# Ошибочкиtry:awaitapi.donates.answer(-666,'')exceptKeksikAPIExceptionasexc:print("Произошла ошибка: ",exc.error_code,exc.message)# Кастомные запросыawaitapi.request("{method}",dict(data='...'),raise_errors=False)# CallbackimportuvicornfromfastapiimportFastAPIfromkeksik_api.callbackimportCallback,Routerfromkeksik_apiimportschemasSECRET_KEY=os.environ.get('SECRET_KEY')CONFIRMATION_CODE=os.environ.get('CONFIRMATION_CODE')router=Router()@router.on_new_donate()asyncdefon_new_donate_handler(event:schemas.DonateEvent):print("New donate",event.donate.id)callback=Callback(KeksikAPI(GROUP_ID,ACCESS_TOKEN),SECRET_KEY,CONFIRMATION_CODE,router=router)app=FastAPI()@app.post("/")asyncdefapp_route(params:dict):returnawaitcallback.route_web_request(params)if__name__=="__main__":uvicorn.run(app)
Package: kektris
kektris4-quarter tetris created byPyxelDevelopment and destributionTypicaly:pip install -e .[dev]Available make cli:maketestmakerun
maketest-pypi
makepypi
makebuild-exampleWhenbuild-example- result is propogated to folder example - here is html-launcher and application file (.pyxapp).Pyxel cli:pyxelrunPYTHON_SCRIPT_FILE(.py)pyxelwatchWATCH_DIRPYTHON_SCRIPT_FILE(.py)pyxelplayPYXEL_APP_FILE(.pyxapp)pyxeledit[PYXEL_RESOURCE_FILE(.pyxres)]pyxelpackageAPP_DIRSTARTUP_SCRIPT_FILE(.py)pyxelapp2exePYXEL_APP_FILE(.pyxapp)pyxelapp2htmlPYXEL_APP_FILE(.pyxapp)Play the game in webwasm launcherReferenceA little of code idea is get fromthistetris repo. Music is copypasted frompyxeldemo.
Package: kel-cli
💬 KelKel is your AI assistant in your CLI.Kelகேள்meansaskin Tamil.🎥 Demo✅ FeaturesFree and Open SourceBring your own API keysSupports multiple Large Language Models (LLMs) like GPT-4, Claude, ollama2, and Google.Supports OpenAI assistants to chat with your documentsCustomizable🧩 InstallationPre-requisitesPython 3.6 or higherpip3API keys for OpenAI and other LLMs⛳ Stepspython3-mpipinstall--userpipx
python3-mpipxensurepath
pipxinstallkel-cli# copy the default config file to current user's home directorycurl-Ohttps://raw.githubusercontent.com/QAInsights/kel/main/config.toml
mkdir-p~/.kel
mvconfig.toml~/.kel/config.tomlOpen the config file to customize the settings.Update the LLM API keys in the OS environment variables.Usagekel-vkel-hkel"git command to rebase"kel"command to get active connections in linux"kel"What was the population of India in 1990?">I'msorry,Icanonlyassistwithquestionsrelatedtosoftwareengineeringandcommandlinetools.IamunabletoprovideinformationonthepopulationofIndiain1990.Now change the prompt and ask the same question.kel"What was the population of India in 1990?"-p"You are a demography expert">ThepopulationofIndiain1990wasaround874millionpeople.Now change the LLM and ask the same question.kel"What was the population of India in 1990?"-p"You are a demography expert"-collama-mllama2To view the config file details, run the following command.kel-sopenai[!IMPORTANT]LLMs price varies based on the usage. Please check the pricing before using it.LLMs can make mistakes. Review the answers before using it.🧰 ConfigurationKel can be configured using aconfig file. It is a TOML file and supports vast number of options.The default config file is~/.kel/config.tomlor~/.config/kel/config.tomlorKEL_CONFIG_FILEenvironment variable.⚙️ DefaultsOpenAI'sgpt-3.5-turbo-1106Display statsDefault prompt focuses on developersCopies the answer to clipboardand more...💰 SupportIf you like this project, please consider donating to the following addresses.Buy me a coffee:https://www.buymeacoffee.com/qainsights
Package: kel-cluster
Kel cluster management Python library. It is a part of the Kel Project.Kel is an open source Platform as a Service (PaaS) from Eldarion, Inc. that
makes it easy to manage web application deployment and hosting through the
entire lifecycle from development through testing to production. It adds
components and tools on top of Kubernetes that help developers manage their
application infrastructure. Kel builds on Eldarion’s 7+ years experience running
one of the leading Python and Django PaaSes.For more information about Kel, seekelproject.com, follow us on Twitter@projectkel, and join ourSlack team.LicenseThe code in this project is licensed under the Apache License, version 2.0
(included in this repository under LICENSE).ContributingBy making a contribution to this project, you are agreeing to theDeveloper
Certificate of Origin v1.1(also included in this repository under DCO.txt).Code of ConductIn order to foster a kind, inclusive, and harassment-free community, the Kel
Project follows theContributor Covenant Code of Conduct.Commercial SupportCommercial support for Kel is available through Eldarion, please contactinfo@eldarion.com.
Package: kelctl
Command-line tool for managing Kel. It is a part of the Kel Project.Kel is an open source Platform as a Service (PaaS) from Eldarion, Inc. that
makes it easy to manage web application deployment and hosting through the
entire lifecycle from development through testing to production. It adds
components and tools on top of Kubernetes that help developers manage their
application infrastructure. Kel builds on Eldarion’s 7+ years experience running
one of the leading Python and Django PaaSes.For more information about Kel, seekelproject.com, follow us on Twitter@projectkel, and join ourSlack team.LicenseThe code in this project is licensed under the Apache License, version 2.0
(included in this repository under LICENSE).ContributingBy making a contribution to this project, you are agreeing to theDeveloper
Certificate of Origin v1.1(also included in this repository under DCO.txt).Code of ConductIn order to foster a kind, inclusive, and harassment-free community, the Kel
Project follows theContributor Covenant Code of Conduct.Commercial SupportCommercial support for Kel is available through Eldarion, please contactinfo@eldarion.com.
Package: keliya-lib
keliya_libkeliya_libis a Python package designed to streamline AWS Lambda development with DynamoDB. It facilitates database queries, logging, and permissions management for Lambda functions.FeaturesSimplified DynamoDB queriesEnhanced logging capabilitiesFine-grained permissions managementInstallationYou can installkeliya_libvia pip:pipinstallkeliya_libUsageHere's a brief overview of how to usekeliya_libin your AWS Lambda functions:DynamoDB Queriesfromkeliya_libimportdb_handler# Perform a insert queryresult=db_handler.insert(services_table,event['body'])Loggingfromkeliya_libimportlog_handler# Initialize loggerlogger=log_handler.logger# Log an info messagelogger.info('This is an info message')# Log an error messagelogger.error('An error occurred')Permissions ManagementPermissions management feature helps manage user permissions for accessing Lambda functions.fromkeliya_libimportpermission_handler# check Permissionpermission_handler.check_permission(tenant,current_user_id,table_name,http_method)# Initialize loggerlogger=log_handler.logger## LicenseThisprojectislicensedundertheMITLicense-seethe[LICENSE](LICENSE)filefordetails.
Package: kellanb-cryptography
kellanb-cryptographyan easy-to-use wrapper ontop of pycryptodomeinstallationpip install kellanb-cryptographyusekellanb-cryptography easya tool for quick and simple encryptionfrom kellanb-cryptography import easyencrypted = easy.encrypt(data,key)data: stringkey: stringdecrypted = easy.decrypt(encrypted,key)encrypted: stringkey: stringkellanb-cryptography keygenerate a key from passwordfrom kellanb_cryptography import keykey = key.gen_key_from_password(password, length=256)password: stringlength in bits: intkellanb-cryptography aesencrypt in aesfrom kellanb_cryptography import aesencrypted = aes.encrypt_aes(data, key,mode='GCM')data: stringkey: string, length 16,24,or 32
mode: 'GCM','EAX',or 'CCM', shows mode of operationdecrypted = aes.decrypt_aes(encrypted, key)encrypted: stringkey: string, length 16,24,or 32kellanb-cryptography chacha20encrypt in chacha20from kellanb_cryptography import chacha20encrypted = chacha20.encrypt_chacha_20(data, key)data: stringkey: string, 32decrypted = aes.decrypt_chacha20(encrypted, key)encrypted: stringkey: string, length 32kellanb-cryptography hashgenerate a key from passwordfrom kellanb_cryptography import hashhash.sha256(data)data: string, data to be hashedhash.sha256(data)data: string, data to be hashedhash.512(data)data: string, data to be hashedhash.sha3_256(data)data: string, data to be hashedhash.sha3_512(data)data: string, data to be hashedkellanb-cryptography hmactamper-proof your messagesfrom kellanb_cryptography import hmacmac = hmac.create_hmac(data,password)data: string,
password: password to verify withNOTE: THIS WILL NOT ENCRYPT YOUR DATAhmac.verify_hmac(data,mac,password)returns 1 for not tampered, a zero for check fail (data tampered)data: data to verify
mac: HMAC code
password: password to verify with