Saravanan666/pypi-org huggingface dataset:
Package: ka-ut-com
Communication AreaInstallationka_ut_comcan be installed from PyPI or Anaconda.To install withpip:$python-mpipinstallka_ut_comTo install withconda:$condainstall-cconda-forgeka_ut_comThis requires that thereadmeextra is installed:$python-mpipinstallka_ut_com[readme]ConfigurationThe Configuration of general or tenant specific Package logging is defined in Yaml Configuration Files in the data directory <Package Name>/data of the Package.Configuration FilesLogging TypeConfiguration FileDescriptiongenerallog.ymlthe Python Logger compatible general Configuration file is used to
define tenant independend loggingtenantlog.main.tenant.ymlthe Python Logger compatible tenant Configuration file is used to
define tenant dependend loggingModuleska_ut_comcontains the following modules.Base ModulesBase ModulesModuleDescriptioncom.pyThe com module contains the the Base Communication class Com
and Utility Classes:ClassDescriptionComBase Communication SetupStandardStandard Log ConfigurationPersonPerson based Log ConfigurationCfgConfiguration ManagementMgoMongo Db Configuration ManagementAppSetup Application ManagementExitSetup Exit HandlingUtility ModulesUtility ModulesModuleDescriptionpacmod.pyThe pacmod module contains the Pacmod Class with the following
Components (Functions and sub classes):ComponentTypeDescriptionshfunctionshow pacmod dictionaryCfgclassConfiguration ClassPmdclassPackage Module Sub ClassPathclassPath Management Classioc.pyThe ioc module contains I/O Classes for the following file types:
yaml, jsonClassDescriptionYamlI/O for yaml filesJsonI/O for json filesSpecial ModulesSpecial Tehnical ModulesModuleDescription__init__.pydummy Init Module: contains no Statements__version__.pycontains Assignment Statements for Version System Variables:System VariableExample__title__‘ka_ut_com’__description__‘Communication Area Utilities.’__url__‘https://ka-com.readthedocs.io/en/latest’__version___‘2023.2.2’__build__0x022200__author_email__‘Bernd Stroehle’__license__‘Apache-2.0’__copyright__‘Copyright 2023 bs29’__cake__u’u2728 U0001f370 u2728’AppendixTable of ContentInstallationConfigurationModulesBase ModulesUtility ModulesSpecial ModulesAppendix
Package: kAuth
Open Kage's useful Auth methods
But, this is develope version.
So, suddenly it will be big change when I got some more good idea.Installpip3installkAuthCustom Dictionary ClassContentsAdded New commandsis_right_password()    : Check requirements in the password stringgen_random()           : Generate random passwordenc_passwd()           : Encript passworddec_passwd()           : decript passwordis_right_email()       : check right email formatis_right_domain()      : check right domain (not yet)update_password_to_system()      : update password to Linux systemcheck_password_to_system()       : check username and password from the linux systemread_otp_key_from_user_account() :send_otp_to_email()              : Send my opt number to emailverify_otp()                     : Verify OTP numberrequirements
requirement package names are crypt, pyotp, pyqrcode, kmiscInitialize Auth methodimportkAuthis_right_password() : Check right password or notdefault check everythingRL=True/False : Check Low charactersRC=True/False : Check Capital charactersRI=True/False : Check Integer (0-9)RS=True/False : Check SymbolsLN=8          : Password length (default 8)>>>password='Test Password'>>>rt=is_right_password(password,RI=False,RS=False)ifrt[0]:print('right format')else:print(rt[1])gen_random() : generate random stringreq=[,,] : requirements'str'     : Strings (Capital and Lower)'lower'   : lower strings'captial' : Capital strings'int'     : integer (0-9)'sym'     : symbolslength   : make a string length (default 8)>>>print(gen_random(req=['lower','int'],length=12))'h06ypaeay1mn'
Package: kavahq-api
Installationpipinstallkavahq-apiUsageimportkavahqimportkeyringimportgetpassSERVICE='kavahq-api'username='imposeren'password=keyring.get_password(SERVICE,username)ifpasswordisNone:password=getpass.getpass()keyring.set_password(SERVICE,username,password)api=kavahq.KavaApi(username=username,password=password,company_name='42 Coffee Cups')# almost all attributes of Api return instances of ApiObject which do not query results until they are required:projects_api=api.projects# no requests madefirst_project_api=projects_api.children[0]# project list api called but project details are notfirst_project_estimate_api=first_project_api.estimate# zero apis calledfirst_project_api.estimate['avg_time_per_cp']# estimates api called and result is returned# you can also get all results of api as a dict:dict(first_project_api)# you can also get specific project api by it's slug:kava_project_api=api.projects.get('kavyarnya')dict(kava_project_api)# {u'days_num_bugs_showing': X, ...}dict(api.kavauser['akhavr'])# {u'username': u'akhavr', u'is_active': True, ...}dict(kava_project_api.estimate)# {u'avg_time_per_cp': u'2.1'...}kava_project_api.properties['owner']# u'akhavr'# as you can see api calls can be "chained":api.projects.estimate# ApiObject for /api/project/estimateapi.projects.properties# ApiObject for /api/project/properties# but some attributes of ApiObject "break chaining":api.projects.children[0].estimate.response# returns dict with response from APIapi.projects.get# method to get projects by slug, (see examples above)api.projects.keys()# will return keys of response dict# alternate way to call specific api:dict(api.projects.estimate.get(project='kavyarnya',company='42 Coffee Cups'))# this is equivivalent to:api.company_name='42 Coffee Cups')dict(api.projects.get('kavyarnya').estimate)Running testspythonsetup.pynosetests
Package: kavanaghdistributions
kavanaghdistributionskavanaghdistributions is a python package for generating samples from Normal, Poisson and Binomial Distributions.InstallationUse the package managerpipto install kavanaghdistributions.pipinstallkavanaghdistributionsUsagefromkavanaghdistributions.functionsimportrandom_drawfromkavanaghdistributions.classesimportNormalDistribution,PoissonDistribution,BinomialDistribution#random_draw functionrandom_draw(sample_shape=5,distribution='normal',mean=1,sd=2)# generates: array([1.82261281, 0.81926903, 3.06892213, 1.62636623, 2.05127246])random_draw(sample_shape=5,distribution='poisson',lam=10)# generates: array([12,  8,  7, 14,  8])random_draw(sample_shape=(2,2),distribution='binomial',num=2,prob=0.3)#generates: array([[0, 0],#                  [1, 0]])#NormalDistributionnd=NormalDistribution(mean=3,sd=1,sample_shape=5)nd.draw()#generates array([3.59149631, 3.13146966, 3.98872244, 3.59125381, 4.36412151])nd.summarise()#generates:#Min: 3.1314696620512454#Max: 4.3641215077437945#Mean: 3.733412745193425#Standard Deviation: 0.41609169604466906#PoissonDistributionpd=PoissonDistribution(lam=(2,3,2),sample_shape=[2,2,3])pd.draw()#generates:#array([[[0, 0, 2],#        [2, 1, 1]],##       [[3, 3, 1],#       [2, 1, 3]]])pd.summarise()#generates:#Min: 0#Max: 3#Mean: 1.5833333333333333#Standard Deviation: 1.0374916331657276#BinomialDistributionbd=BinomialDistribution(num=4,prob=0.5,sample_shape=6)bd.draw()#generates: array([2, 3, 2, 1, 1, 1])bd.summarise()#generates:#Min: 1#Max: 3#Mean: 1.6666666666666667#Standard Deviation: 0.74535599249993LicenseMIT
Package: kavanoz
🫙 kavanoz 🫙Statically unpacking common android banker malware.
Ever wanted to get payload from packed malware without running android emulator ? Me neither.:eyes: Installationpip install kavanoz:zap: Usagefrom cmdlinekavanoz/tmp/filepathfrom python libraryfromkavanoz.coreimportKavanozfromkavanozimportutilsutils.set_log("DEBUG")k=Kavanoz(apk_path="tests/test_apk/coper.apk")forplugin_resultink.get_plugin_results():ifplugin_result["status"]=="success":print("Unpacked")print(plugin_result)break:snake: Scripts:rc4.pyGeneric rc4 encrypted asset file. Script covers multiple versions.old_rc4.pyAnother Generic rc4 encrypted asset file.subapp.pyDecryption of file with key derived from Manifest file ProtectKey variablemultidex.pyMultidex like loader with inflated packed file. (zlib compression)coper.pyExtract rc4 key from native lib with emulation (AndroidNativeEmu)moqhao.pyEmulation for moqhau unpacking.sesdex.pysimple_aes.pysimple_xor.pysimple_xor2.pysimple_xor_zlib.pysubapp.pyDecrypt asset with package name:gear: DevelopmentTo add new plugins just create new file in loader folder. Extend Unpacker class from unpack_plugin.py file. Define start_decrypt function with your implementation.defstart_decrypt(self,apk_object:APK,dexes:"list[DEX]"):Add following function to make early exit from plugin.deflazy_check(self,apk_object:APK,dexes:"list[DEX]"):If extraction is succesful assign self.decrypted_payload_path with extracted file path.
You can use helper functions from unpacker class:get_array_dataget_smalifind_method(class_name,method_name,descriptor="")check_and_write_file(file_data) : checks file has dex, zip and zlib headers and writes unpacked dex with name : "external-{m[:8]}.dex":book: Tipsself.dexes hold dex objects. You can get class withdex.get_class(smali_annotation_of_class).You can use get_smali function and give target method obj to get smali represantation of target method. Then apply some regex to get data from smali. There are lots of defined regexs insmali_regexes.pyfile to lookup.Most of the time packers use file from asset folder. You can get files withself.apk_object.get_files()Most of the time packers use Application class to start unpacking sequence. Useapplication = self.apk_object.get_attribute_value("application", "name")to get application class defined in manifest file.Thanks:apkdetect.comfor unique samples to work with.
Package: kavian-info
Kavian InfoInstructionsFollow these instructions to keep goingFirst you can get to know me by callingkavian_infofunctionfrompackage_testimportinfoinfo.kavian_info()"Hello, My name is Kavian and I'm currently 26 years old"After know me, you can chat with me too:frompackage_testimportinfoinfo.greet('Salam Kiara')'Hello kiara Welcome'info.greet('bye')'Bye'
Package: kaviar
Simplified event and data formatting and logging.Kaviar aids developers in need of a convenient way to produce structured
representation of key-value pairs for logging or representation with a
fixed syntax suit suited for later evaluation or just aesthetic reasons.ExampleLogging a certain event:importloggingfromkaviarimportEventKvLoggerAdapterlogging.basicConfig(level=logging.DEBUG)logger=EventKvLoggerAdapter.get_logger(__name__)logger.info('NEW_CLIENT',client_id=42,peer_name='93.184.216.119')Separating the event definition from actual logging:importloggingfromfunctoolsimportpartialfromkaviarimportEventKvLoggerAdapterlogging.basicConfig(level=logging.DEBUG)logger=EventKvLoggerAdapter.get_logger(__name__)log_event=partial(logger.define_logger_func(logging.INFO,'server peer_name'),'NEW_CLIENT')log_event('example.org','93.184.216.164')
Package: kavk-api
KAVK_APIУстановкаpip install kavk_apiПримерimportasynciofromkavk_apiimportVkfromkavk_api.longpollimportBotLongPollasyncdefmain():vk=Vk('token')longpoll=LongPoll(vk)awaitvk.wall.post(message="Привет kavk_api!")asyncforeventinlongpoll.listen():print(event.type,event.object)asyncio.run(main())TODOЗамена asyncio.run()
Package: kavyanarthaki
KAVYANARTHAKI// -------------------------------------------------------- //The unique rhythmic structure of verse/poems in Malayalam are referred to as Malayalam meter or Vrutham. It is also referred to as Bhasha Vruthams, Maathra Vruthams, and Dravida Vrithams (the last two are  only approximate references).  Sanskrit meters have also been used in Malayalam language, but of late, they have not been very popular (When Sanskrit meters are used in Malayalam, they undergo a change, succumbing to the flexibility of Malayalam tradition). Also, meter-free poems (Muktha-Chandass) have gained an upperhand in current times.  A padyam(verse) or kavitha(poem) can be ‘read’, ‘recited’ or ‘sung’. In each of these performances, a poem may exhibit specific rhythmic patterns. Poetic meter is intimately related to such rhythmic patterns.  In Malayalam, the rhythmic pattern that manifests in the ‘recital’ or ‘singing’ of the poem, is reckoned as its meter (“Vritham”). Maveli, Tharangini, Nathonnatha, Annanada, Kakali, Keka, Omanakuttan etc are some of the famous Malayalam meters. To analyse meters of Malayalam poems, we need some basic computational analysis of verses. Kavyanarthaki package caters to some of such requirements and is an ongoing project at the University of Kerala India.
Package: kawaii
In what followspython3is an alias forpython3.5or any later version (python3.6and so on).InstallationInstall the latestpip&setuptoolspackages versionspython3-mpipinstall--upgradepipsetuptoolsReleaseDownload and install the latest stable version fromPyPIrepositorypython3-mpipinstall--upgradekawaiiDeveloperDownload and install the latest version fromGitHubrepositorygitclonehttps://github.com/lycantropos/kawaii.gitcdkawaiipython3setup.pyinstallBumping versionInstallbumpversion.Choose which version number category to bump followingsemver specification.Test bumping versionbumpversion--dry-run--verbose$VERSIONwhere$VERSIONis the target version number category name,
possible values arepatch/minor/major.Bump versionbumpversion--verbose$VERSIONNote: to avoid inconsistency between branches and pull requests,
bumping version should be merged intomasterbranch as separate pull request.Running testsPlainpython3setup.pytestInsideDockercontainerdocker-composeupInsideDockercontainer with remote debugger./set-dockerhost.shdocker-composeupBash script (e.g. can be used inGithooks)./run-tests.sh
Package: kawaiiapi
kawaii apiThekawaii apifrom Error44 aspython packageDownloadpip install kawaiiapiExamplesimportkawaiiapiapi=kawaiiapi.Kawaii("anonymous")# you can't use stats with this tokenawaitapi.endpoints("gif")awaitapi.get("gif","kiss")awaitapi.random("gif")awaitapi.gif("kiss")stats=awaitapi.stats()All Statsstats.endpointsstats.allstats.failedstats.historystats.most_endpointstats.most_endpointsstats.most_typestats.most_types
Package: kawasemi
kawasemiis a Python library for sending notifications.Kawasemi provides the following features:Very simple ways to send notificationGitHub, HipChat, Slack, Twitter, and Yo are supportedIntegrations with web application frameworks helps to load configurationsDjango is supportedNote: This project was nameddjango-channels.
We renamed our project not to be confused with the officialDjango Channels.At a GlanceAfter installation and configuration, you can send notifications with a following simple code:# PythonfromkawasemiimportKawasemikawasemi=Kawasemi(config)kawasemi.send("Sample notification.")# In Django applicationfromkawasemi.djangoimportsendsend("Sample notification.")SeeQuickstartpage for more details.LinksDocumentationGitHub
Package: kaxe
KaxeKaxe is an lightweight graphing tools for functions, equations, points and more written in pure pythonPlotsKaxe supports diffrent plotting windows includingA standard basis plotting windowLogaritchmic plotPolar plotBox plotKaxe is build to be simple, flexiable and equipped with an flat learning curve.Gettings startedTo get started create a plot objectimportkaxeplt=kaxe.Plot(window:list)plt.save("plot.png")Alternatively other windows can be usedPolarplotkaxe.PolarPlot(window:list)Box plotkaxe.BoxPlot(window:list)Box plotplt=kaxe.LogPlot(window:list,firstAxisLog:bool=False,secondAxisLog:bool=True)Adding objects to windowAdding objects to a window is as easy asplt.add(obj:object)ObjectsKaxe supports diffrent objectsTo add a legend for any object do the followingobj.legend(text)Functionkaxe.Function(f:FunctionType,color:tuple=None,width:int=10,*args,**kwargs)To add a fill under a graph use the fill methodFunction.fill(x0,x1)To add a tangent to the function use the tangent methodFunction.tangent(x0)PointsPoints in two lists x and y can be added to windows usingkaxe.Points(x:list|tuple,y:list|tuple,color:tuple,size:int,symbol:str=symbols.CIRCLE,connect:bool=False)EquationEquations can be expressed as to functionskaxe.Equation(left:FunctionType,right:FunctionType,color:tuple,width:int)E. gkaxe.Equation(lambdax,y:2*x,lambdax,y:y)StylingFor styles avaliable useplot.help()For setting a style useplot.style({"Marker.showLine":False},width=2000)Or use a predetermined theme withplot.theme(kaxe.themes.A4Half)Axis titles can be changed withplot.title(*titles:str)
Package: kaxi
kaxiRun pipelines similar to github actionsInstallationpipinstallkaxiUsageYou can run a pipeline by running the following command:kaxi<pipeline_file>.yamlOr you can programmatically run a pipeline by running the following command:fromkaxiimportRunnerrunner=Runner(your_pipeline)runner.execute()Pipeline fileA pipeline file is a yaml file that contains a list of steps to execute. Each step is a dictionary with the following keys:uses: The callable to execute (e.g.pandas.read_csv)name(optional): The name of the stepwith(optional): A dictionary of arguments to pass to the callableIf you want to use arguments without the respective name, you can use theargskey inside thewithdictionary.Exampleverbose:truesteps:-uses:os.path.isfilename:file_existswith:path:example.yaml-uses:kaxi.log.infowith:args:-${file_exists}Environment variablesYou can use environment variables in your pipeline file by using the${ENV_VAR}syntax.To define environment variables, you can set them inside theenviromentkey:environment:ENV_VAR:valueAnother way to use environment variables is to use the ouput of a step as an environment variable, this can be done by using thenameof the step inside the${}syntax:steps:-uses:os.path.isfilename:file_existswith:path:example.yaml-uses:kaxi.log.infowith:args:-${file_exists}
Package: kaya-module-sdk
Kaya Module SDK[Description]: The Python3 SDK is a subcomponent of the Kaya Module
Packer (KMP), but is deployed standalone to PyPI as it and can be
individually installed using pip. It's purpose is to help Morty write custom
Kaya modules stress free :) or at least - as stress free as one could
possibly write instructions for processing complex financial data that will
be playing with his wallet.[Setup]: Installing SDK dependencies with the help of the Build WizZard -~$ sudo ./build.sh --setup[Test]: Running all SDK autotesters with the help of the Build WizZard -~$ ./build.sh --test[Check]: Check source files make use of type hints and adhere to PEP8 -~$ ./build.sh --check[Build]: Building, installing and publishing distribution packages -# Building creates the source and binary distribution files. If the build
# wizzard script is not customized, BUILD is ON by default, so there's no
# need to specify it when running the wizzard.

~$ ./build.sh
~$ ./build.sh BUILD

# Installing the freshly built source distribution archive.

~$ ./build.sh INSTALL

# Build WizZard actions are cumulative, and are always executed in the
# following order if specified (BUILD -> INSTALL -> PUBLISH). In this
# example we are building, installing and the publishing the SDK to PyPI.

~$ ./build.sh INSTALL PUBLISH[Cleanup]: Remove files and directories created during the build process,pycachedirectories, and clear out logs with a timestamp.~$ ./build.sh --cleanup[Example]: Using Build WizZard to test, check code type hints, build,
install and publish the SDK package to PyPI -~$ ./build.sh --test --check BUILD INSTALL PUBLISH[Example]: Using the SDK to build a strategy module -from kaya.sdk import (
    KTimeSeries, KList, KInt, KFloat, KString,
    Module, run
)


class MyModule(Module):

    def __init__(self,) -> None:
        self.dummy_time_series = KTimeSeries[float]

    def main(self, args: int, debug: bool = False) -> float:
        return float(sum(args))[Example]: Using the SDK to run a strategy module -from kaya_module_sdk.sdk import run
from my_module import MyModule

module_instance = MyModule()
run(module_instance, args=(1,2,3,4,), kwargs={'debug': True})
Package: kaya-runner
Kaya Runner SDK[Description]: The Python3 SDK is a subcomponent of the Kaya Module
Packer (KMP), but is deployed standalone to PyPI as it and can be
individually installed using pip. It's purpose is to help Morty write custom
Kaya modules stress free :) or at least - as stress free as one could
possibly write instructions for processing complex financial data that will
be playing with his wallet.[Setup]: Installing SDK dependencies with the help of the Build WizZard -~$ sudo ./build.sh --setup[Test]: Running all SDK autotesters with the help of the Build WizZard -~$ ./build.sh --test[Check]: Check source files make use of type hints and adhere to PEP8 -~$ ./build.sh --check[Build]: Building, installing and publishing distribution packages -# Building creates the source and binary distribution files. If the build
# wizzard script is not customized, BUILD is ON by default, so there's no
# need to specify it when running the wizzard.

~$ ./build.sh
~$ ./build.sh BUILD

# Installing the freshly built source distribution archive.

~$ ./build.sh INSTALL

# Build WizZard actions are cumulative, and are always executed in the
# following order if specified (BUILD -> INSTALL -> PUBLISH). In this
# example we are building, installing and the publishing the SDK to PyPI.

~$ ./build.sh INSTALL PUBLISH[Cleanup]: Remove files and directories created during the build process,pycachedirectories, and clear out logs with a timestamp.~$ ./build.sh --cleanup[Example]: Using Build WizZard to test, check code type hints, build,
install and publish the SDK package to PyPI -~$ ./build.sh --test --check BUILD INSTALL PUBLISH[Example]: Using the CLI tool to start the Module Runner web server -~$ kaya_runner --start
Package: kaybee-bulma
Kaybee is a Sphinx system for knowledge bases.kaybee_bulmais a theme
for Kaybee with the following goals:Based on the Bulma CSS frameworkUses no HTML/CSS/JS from SphinxUses a modern toolchain (npm, SASS, webpack)Delivers a fast, attractive, mobile-oriented, and (later) offline
web experience with unique capabilitiesHow To ReleaseReleases are driven by Travis. When a push is done with a tag, the Travis
build notices the tag and triggers the PyPI update. (Non-tagged pushes don’t
trigger the PyPI part of.travis.yml.)Commit everything.Bump the version usingbumpversion commands:bumpversion patch: 0.1.0 -> 0.1.1.dev0bumpversion release: 0.1.1.dev0 -> 0.1.1bumpversion minor: 0.1.1 -> 0.2.0.dev0bumpversion dev: 0.2.0.dev0 -> 0.2.0.dev1bumpversion release: 0.2.0.dev1 -> 0.2.0#. Tag the release.Commit, tag, push.Run bumpversion to go back to devRungitchangelog > CHANGES.rstto generate the history that goes into
the package. Tip: Use the commit message prefixes from theirreferenceCommit, push (so people can see the history.)
Package: kaydet
Kaydet is Your Personal Terminal Diary"kaydet" is a simple (112 lines if Python code) based diary app designed to
help you preserve your daily thoughts, experiences, and memories without
leaving terminal.How to Install?$ pip3 install kaydetKey Features:Short EntriesRecord your daily thoughts and experiences by typing them as a parameter in
the terminal. "kaydet" automatically saves your entry to a file dedicated to
the current day, along with a timestamp.$ kaydet "I am very good with my kids today :)"
> Entry added to: /Users/mirat/.kaydet/2023-08-02.txtLong EntriesIf you don't give any parameters to "kaydet" it opens your favourite text
editor to allow you to create long entries.$ kaydetTime-Stamped EntriesEach diary entry is precisely dated, ensuring your thoughts are organized
chronologically for easy navigation and reflection.Trustless"kaydet" uses txt files to store your entries, guaranteeing your diary
remains private and secure on your own hard disk. You don't have to trust me,
or any company.Synch in Your WayDo you want to synch your diary entries between your devices? You can use any
folder synchronization service that you trust.Customizable SettingsYou can configure "kaydet" to your preferences with customizable options,
including file naming conventions, text editor that you want to use, entry
format.