Saravanan666/pypi-org huggingface dataset:
Package: khan-api-wrapper
khan_api_wrapper (Python 3 Wrapper forKhan Academy API)AboutThis is a simple implementation of using the Khan Academy API with python. It uses the alternative method of logging in with your own account, and should be sufficient if you are only looking to retrieve data from your students.RequiresrequestsrauthSet up:Install:$ pip install khan_api_wrapperRegister your app with Khan Academy, to get the necessary tokens. That is it, you should now be able to use the wrapper in your python script.General use:test in an interactive shell:$python>fromkhan_api_wrapper.khanimportKhanAcademySignIn,KhanAPI>>consumer_key="Key from registering app">consumer_token="Token from registering app">khan_identifier="username_of_account_used_to_register_app">khan_password="password_of_account_used_to_register_app">kauth=KhanAcademySignIn(consumer_key,consumer_token,khan_identifier,khan_password)>token,secret=kauth.authorize_self()>>kapi=KhanAPI(consumer_key,consumer_token,token,secret)>kapi.user()# should print your user data to console.>># Use your own endpoint>kapi.get("/api/internal/user/missions")# should show your missionsExaminekhan.pyfor all the available methods orexample.pyfor ideas on how to use in your application.Token freshness:Through trial I have discovered that the access token and secret are valid for 2 weeks. So you may consider storing them in a separate file or database, and write a function to only fetch tokens if they are expired.defget_tokens():# fetch token data from saved json filewithopen("tokens.json","r")asf:tokens=json.loads(f.read())# check if tokens are expirednow=time.time()ifnow-tokens["timestamp"]>3600*24*14:kauth=KhanAcademySignIn(consumer_key,consumer_secret,token,uname,pwd)token,secret=kauth.authorize_self()# update file with new tokens and timestampwithopen("tokens.json","w")ast:t.write(json.dumps({"token":token,"secret":secret,"timestamp":now}))# return fresh tokensreturntoken,secret# tokens are still valid, so return themreturntokens["token"],tokens["secret"]# Then use the function to ensure we only use fresh tokens when necessarytoken,secret=get_tokens()kapi=KhanAPI(consumer_key,consumer_secret,token,secret)...
Package: khandytool
KhandytoolHow to use it1.Download and install, old version could get from pip, but new version which oversize for pypi, should download source and build, it added some jmeter run function)pip install khandytool2.Run in the codefrom core.bladeTest import interactive
interactive.run(8999) #you can change the port if you like

add command line to support command quick start, you need:
$ pip install khandytool
run command:
$ toolrun
this will start some module, detail you need run toolrun -help for check
$ toolrun --module=all3.Or run in the command linepython -m core.bladeTest.interactive #will open 8999 port to contain the applicationPurposeBase one daily work, build the test tools,finnaly generate one platform. it wraped some other packages, will continue add.Main functionsblade chaose executer(may have problem by install by pip and run; but ok in deply by source)
which have two models to execute ChaoseBlade command in the remote servertransfer xmind testcase to excel testcase(some formated restrict xmind)transfer swagger url to jmeter scripts
using some opensource packge to complish thistransfer har file to jmeter scriptsfake data generation base on fakerkafka message sender and getter with filetermqtt message sender and getter with basic filterothers code snips, can add into automation testingget data from jmeshget fack datagenerate test case from xmindget sha1 passwordhttp request send and validatetime counter wrapermulti list to single listmysql operations to quick execute sqlredis operations to quick read or write data to itkafka operations to send or get data from target topicmqtt operations to send to receive data from serverTodo listadd har2locust or other protocol sender...add some general validate function in the automation testing, like datatype validate,response validate,callback function ...add some wrapped function about auto test framework, like pytest or behavedeploy jmeter agent to distribute server or docker warapped agentretry function in the auto test frameworkmock server will base one config and generate some dataemail sender and recieversocket sender and reciever under some fix configconfig parser for ini, yml, xml, json csv formatquick process data with numpy or matplotlibFunctions snapshots:mainPage:xmind:bladejmetermqttdataGen
Package: khang-stesting
vidstreamUnder construction! Not ready for use yet! Currently experimenting and planning!Developed by Florian Dedov from NeuralNine (c) 2020Examples of How To Use (Buggy Alpha Version)Creating A ServerfromvidstreamimportStreamingServerserver=StreamingServer('127.0.0.1',9999)server.start_server()# Other Code# When You Are Doneserver.stop_server()Creating A ClientfromvidstreamimportCameraClientfromvidstreamimportVideoClientfromvidstreamimportScreenShareClient# Choose Oneclient1=CameraClient('127.0.0.1',9999)client2=VideoClient('127.0.0.1',9999,'video.mp4')client3=ScreenShareClient('127.0.0.1',9999)client1.start_stream()client2.start_stream()client3.start_stream()Check out:https://www.youtube.com/c/NeuralNine
Package: khapitools
Getting StartedInstallationTo installkhapitools,khapi,ImageHash, andPillow, use the following commands in your terminal:pipinstallkhapitools
pipinstallkhapi
pipinstallImageHash
pipinstallPillowVisitKhapifor installing khapi.Example# app/models.pyfromdjango.dbimportmodelsfromkhapi.methodsimportkhapi_upload_pathclassYourModel(models.Model):photo=models.ImageField(upload_to=khapi_upload_path)# app/views.pyfromkhapitools.viewsimportImageSearchAPIfrom.modelsimportYourModelclassYourModelImageSearchAPI(ImageSearchAPI):model=YourModel# app/urls.pyfromkhapi.khapi_startimportkhapi_cache_startfrom.importviewsfromdjango.urlsimportpathkhapi_cache_start()urlpatterns=[path(views.TestImageSearchAPI.as_api(),name="image-search"),]API POST RequestIn your API POST request, send the image file as the value with "Image" as the key name. The API will return [mention the expected result].LicenseThis project is licensed under the MIT License.SupportFor questions or issues, please open an issue or contact us athamza.alkhatib.se@gmail.comAcknowledgmentsThanks to the Django community.
Package: kharazmi
KharazmiKharazmi, persian pronunciation of Khwarizmi (al-Khwarizmi, Algorithmi), is an equation parser/calculator module for python.It's main purpose is to provide an easy method to get equations from user and run them on your own data without usingevaland having the freedom of using it on different data types (number, numpy arrays, etc.)Currently it supports:Basic math operations (+-*/^)Numeric Variables (int, float, complex)Plugable functionsInstallationSimply install using pip:pipinstallkharazmiKeep in mind that Kharazmi usesPython type annotations (PEP 484), andf-Strings (PEP 498)so you'll need Python 3.6 or higher.UsageBasic UsageKharazmi provides a simple yet powerful API. First of all you haveEquationParser, the core of the Kharazmi.
It's the main class that you need to worry about. Simply instantiate it and pass your user's input to itsparsemethod:fromkharazmiimportEquationParserparser=EquationParser()user_input="2*x / (2 - y)"expression=parser.parse(user_input)All expressions are subclass ofkharazmi.models.BaseNumericalExpressionclass. You can work with them as if they were python
variables containing integers, e.g:expression1=parser.parse("3*x - y")expression2=parser.parse("z")expression3=expression1/expression2You can even build your expressions using normal python code:x=parser.parse("x")expression4=2*x+4BaseNumericalExpressionclass provides aevaluatemethod. It allows you to evaluate value of an expression given the values
you provides for variables:expression5=parser.parse("2*x + 4")expression5.evaluate(x=2)BecauseKharazmiuses python mathematical operators (+-*/^) under the hood, you can pass any value that supports these
operations and still get the correct result, e.g: you can pass numpy arrays:importnumpyasnpexpression6=parser.parse("2*x + y")x=np.ones((2,2))y=np.identity(2)expression6.evaluate(x=x,y=y)Finally, if you have an expression which you don't know its variables, you can get a list of them usingvariablesproperty of the expression.Using functionsWhat if you want to create a more complex expressions, likesin(x)^2 + cos(x)^2.Well, first of all, you'll have to tellkharazmithe list of your functions:frommathimportsin,cosfromkharazmiimportregister_functionregister_function("sin",sin)register_function("cos",cos)expression7=parser.parse("sin(x)^2 + cos(x)^2")You can even have functions with multiple inputs:register_function("min",min)expression7=parser.parse("1 + min(x, y)")If you want to use python's builtin math function, you can usekharazmi.activate_builtin_math. Calling this function
will register all builtin functions frommath, along withmin,max,round, andabs.fromkharazmiimportactivate_builtin_mathactivate_builtin_math()expression8=parser.parse("log2(8)")Using as a moduleYou can runkharazmias a module usingpython -m kharazmi, this will run a REPL like program that lets you enter
expressions, see how you can do the same thing in code, in other words howkharazmiis understanding your input, and
evaluate it.It supports all math function either.It's mostly for debugging and testing purposes, but it's there if you want to understand howkharazmiis working,
I suggest start from there.
Package: khard
khardKhard is an address book for the Unix console. It creates, reads, modifies and
removes vCard address book entries at your local machine. Khard is also
compatible to the email clients mutt and alot and the SIP client twinkle. You
can find more information about khard and the whole synchronization processhere.Warning: If you want to create or modify contacts with khard, beware that the
vCard standard is very inconsistent and lacks interoperability. Different
actors in that sector have defined their own extensions and even produce
non-standard output. A good example is the type value, which is tied to phone
numbers, email and post addresses. Khard tries to avoid such incompatibilities
but if you sync your contacts with an Android or iOS device, expect problems.
You are on the safe side, if you only use khard to read contacts. For further
information about the vCard compatibility issues have a look intothis blog
post.InstallationKhard is already packaged for quite some distributions.  Chances are you can
install it with your default package manager.  Releases are also published onPyPiand can be installed withpip.
Further instructions can be found in thedocumentation.UsageThere is anexample config filewhich
you can copy to the default config file location:~/.config/khard/khard.conf.khardhas several subcommands which are all documented by their--helpoption.The docsalso have a chapter oncommand line
usageandconfiguration.In order to build the documentation locally you needSphinx.  It can be build from the Makefile in
thedocdirectory.DevelopmentKhard is developedon GitHubwhere you
are welcome to postbug reportsandfeature requests.  Also see thenotes for contributors.AuthorsKhard was started byEric Scheiblerand is
currently maintained by @lucc.Several
peoplehave
contributed over the years.Related projectsIf you need a console based calendar too, try outkhal.
Package: kharosthi.numbers
Kharosthi numbersA naive representation of Kharosthi numerals, and a way to do simple arithmetic on them (actually, we're cheating and doing arithmetic onintversions of the numbers).Currently only supports numbers less than 10000. The naive conversion algorithm currently can't deal with arbitrarily big numbers, so we only support "𐩇" with a maximum value of 9 in front of it.Also, 0 and negative integers are not representable in Kharosthi, and not valid numbers.RequirementsPython >= 3.6Usagefromkharosthi.numbersimportKharosthiNumberasKsum=K.from_int(5)+K.from_int(50)# 7 - 4 = 3int(difference)=K("𐩃𐩂")-K("𐩃")Reference:https://en.wikipedia.org/wiki/Kharosthi#Numerals
Package: khawniawmamuang
PyPi:https://pypi.org/project/khawniawmamuang/สวัสดีจ้าาาา แพ็คนี้คือแพ็คเกจที่อธิบายวิธีการทำข้าวเหนียวมะม่วง (Mango
Sticky Rice) มีฟังชั่นโชว์วิธีการทำ ส่วนประกอบต่างๆวิธีติดตั้งเปิด CMD / Terminalpipinstallkhawniawmamuangวิธีใช้งานแพ็คเพจนี้เปิด IDLE ขึ้นมาแล้วพิมพ์…fromkhawniawmamuangimportMangoStickyRicemango=MangoStickyRice()mango.what_is_it()#ข้าวเหนียวมะม่วงคืออะไร?mango.show_ingredients()#มีส่วนผสมอะไรบ้าง?mango.show_how_to(eng=True)#วิธีการทำmango.show_youtube()#โชว์คลิปทำmango.show_google()#โชว์เทรนด์ googlemango.show_location()#โชว์ตำแหน่งร้านmango.show_image(open=True)#โชว์ภาพmango.show_ascii()#โชว์ asciiพัฒนาโดย: ลุงวิศวกร สอนคำนวณ FB:https://www.facebook.com/UncleEngineerYouTube:https://www.youtube.com/UncleEngineer
Package: khawniewmamuang
PyPi:https://pypi.org/project/khawniewmamuang/สวัสดีจ้าาาา แพ็คนี้คือแพ็คเกจที่อธิบายโปรไฟล์ของนาย Wizvolcano
และสามารถนำไปใช้กับผู้อื่นได้วิธีติดตั้งเปิด CMD / Terminalpipinstallkhawniewmamuangวิธีใช้งานแพ็คเพจนี้เปิด IDLE ขึ้นมาแล้วพิมพ์…fromkhawniewmamuangimportMangoStickyRicemango=MangoStickyRice()mango.what_is_it()mango.show_ingredient()mango.show_how_to(eng=True)mango.show_youtube()mango.show_google()mango.show_location('กรุงเทพ')mango.show_image(open=True)mango.show_ascii()By: Wizvolcano
Package: khbr
To installpip install khbrSetup an environment variable called "USE_KH2_GITPATH" which points to one level above your extracted KH2 directory (which should be called KH2)Run extract_data.py to extract the MSN/ARD/OBJ BAR files, which are required to properly generate the modRun generate_randomizations.py to pre generate the randomizations for when boss mode == "one_to_one" (currently these are dummy randomizations that won't be stable)
Note the folder generated by this script should either be in the khbr library directory, or at the same directory as your KH2 folderInstructions to build boss rush alpha exeThere is some hacky code here, make sure to uncomment for the build (Asset Generator -> TODO FIXME THIS HACKY but for now ju..)cd to khbrpyinstaller bossrush.py --collect-data KH2in the dist folder create a khbr folder, then copy the KH2/data folder therecopy extracted_data from dist folder into the dist/bossrush folderzip up the folder, and upload to gdrive
Package: kh-common
Installationpip install kh-commonUsageThere are many modules in kh-common, browse to a specific folder underkh_commonto view a more in-depth readme.DevelopmentUnder construction.
Fork the parent repository athttps://github.com/kheina-com/kh-commonand edit like any other python project. Tests are run withpytestin the command line.LicenseThis work is licensed under theMozilla Public License 2.0, allowing for public, private, and commercial use so long as access to this library's source code is provided. If this library's source code is modified, then the modified source code must be licensed under the same license or anapplicable GNU licenseand made publicly available.
Package: kheppy
KhepPyKhepPy stands forKheperaPython and is Python API with evolutionary computation and reinforcement learning algorithms for Khepera simulation engine. More information about the engine itself can be foundhere.The idea behind KhepPy is to provide algorithms able to generate high-quality steering programs for Khepera robots.Getting startedThe procedure to run KhepPy is fast and very easy.PrerequisitesPython requirementsPython 3NumPy(in future) TensorflowKhepera simulation engine binariesBuild from source:project page.Or use precompiled binaries:Linux(tested on Ubuntu 14.04)OS X/macOS(tested on macOS Sierra/High Sierra)Windows(tested on Windows 7/8)InstallingDownload or clone this repository to local directory of your choice.Add main project directory to PYTHONPATH if you want to use KhepPy in external projects.export PYTHONPATH="${PYTHONPATH}:/your/directory/kheppy"Alternatively, place main project directory insite-packages.Configure KHEPERA_LIB environment variable to point to Khepera simulation engine binaries.export KHEPERA_LIB="/your/path/to/the/engine"If you use PyCharm, go toRun > Edit Configurations...and add KHEPERA_LIB variable toEnvironment variableslist.Test installationFor basic verification run:python -c 'from kheppy.core import Simulation'No output means kheppy.core should be ready to use.ExamplesNow you can run someexamplesto familiarize yourself with KhepPy.LicenseThis project is licensed under the MIT License - see theLICENSE.txtfile for details
Package: khidi
KhidiKhidi is little library which handles sending transactions to casino cores.Installation$pipinstallkhidiNatura currently supports only two merchants Mima and EveryMatrix.Supported transactions: bet, win and rollback.Example of making transactions:example.pyfromkhidiimportMerchantFactory"""First argument in MerchantFactory is merchant_name currently you have only two options: mima and everymatrix.Second argument is schema_type you have four options here:'decamelize': [{"attrOne": "foo"}, {"attrOne": "bar"}] ->  [{"attr_one": "foo"}, {"attr_one": "bar"}]'camelize': [{"attr_one": "foo"}, {"attr_one": "bar"}] -> [{"attrOne": "foo"}, {"attrOne": "bar"}]'kebabize': [{'attr_one': 'foo'}, {'attr_one': 'bar'}] -> [{'attr-one': 'foo'}, {'attr-one': 'bar'}]'pascalize': [{"attr_one": "foo"}, {"attr_one": "bar"}] -> [{"AttrOne": "foo"}, {"AttrOne": "bar"}]"""player_obj={"_id":"507f1f77bcf86cd799439011","bet":100,"round_id":"test_round","game_id":"test_game_id"}merchant=MerchantFactory.build_merchant("everymatrix","camelize")merchant.send_bet("https://merchant/bet",100,player)merchant.send_win("https://merchant/win",100,player)merchant.send_rollback("https://merchant/rollback",100,player)
Package: khlbot
开黑啦机器人介绍khlbot是开黑啦的一款机器人框架，支持协程和多进程使用机器人创建机器人实例fromkhlbotimportBotbot=Bot(token="",_config={})创建是机器人时，token是必须的（目前只支持websocket），同时接收一个包含配置信息的dict对象，目前支持如下配置项：MAX_PROCESSING_NUMBER: 工作进程的最大数目，默认为cpu的核心数MAX_CONSUMER_NUMBER: 每个工作进程中的消费者数目，消费者都是协程， 所以一个进程中可以运行多个，默认为4MAX_EVENT_QUEUE_SIZE: 事件队列的最大长度，从KHL接收的消息都会先放入事件队列，默认为10000PROCESSING_IDLE_TIMEOUT: 工作进程的最大空闲时间，默认为60秒，当工作进程长时间没有处理消息时，将自动关闭进程中的所有消费者以节省资源默认配置如下：importos{"MAX_PROCESSING_NUMBER":os.cpu_count(),"MAX_CONSUMER_NUMBER":4,"MAX_EVENT_QUEUE_SIZE":10000,"PROCESSING_IDLE_TIMEOUT":60}设置机器人任务fromkhlbotimportCommandercommander=Commander(prefix="-")Commander类用来设置指令以及各种任务的设置，实例化Commander时需要指定一个前缀添加指令@commander.command("hello","name","id")asyncdefhandle_function(name,_id,**kwargs):pass添加指令可以使用commander.command修饰器，修饰器的第一个参数应该为 具体的指令， 其后便是指令的参数 ，机器人解析命令后将会把解析到的参数按修饰器中的顺序传给handle_function。除此之外，handle_function还接收一个kwargs，用于传递额外的信息，在任何时候，都可以通过kwargs["event"]来获取完整的事件对象（可按json对象使用)。注意，handle_function必须使用async def来定义修饰器可以对同一个handle_function多次使用，而且可以用类似functools.partial的方法来设置偏函数的参数，如：@commander.command("hello",partial=(1,))@commander.command("hello2",partial=(2,))defhandle_function(_type):print(_type)注意：partial中的参数将会按顺序自动传递到handle_function的最前面添加周期任务周期任务可以使用commander.interval修饰器来创建：@commander.interval(period=5,times=10)asyncdefhandle_function():pass修饰器只接收两个参数:period: 运行周期，单位为秒times: 运行的次数，如果为0则表示没有次数限制周期任务没有额外的kwargs订阅系统消息订阅系统消息可以使用commander.subscribe修饰器：importkhlbot.configasCONFIG@commander.subscribe(_type=CONFIG.KHL_EVENT_TYPE_GUILD_MEMBER_ONLINE,conditions={})asyncdefhandle_function(**kwargs):pass修饰器接收两个参数：_type: 系统消息的类型conditions: 过滤系统消息的条件订阅任务有额外的kwargs，可以通过kwargs["event"]来获取完整的事件对象（可按json对象使用）。TODO完善周期任务的过滤条件封装接口:服务器相关接口频道相关接口频道消息相关接口私信聊天会话接口用户私聊消息接口用户相关接口媒体模块服务器角色权限相关接口亲密度相关接口服务器表情相关接口封装事件结构：频道相关事件私聊消息事件服务器成员相关事件服务器角色相关事件服务器相关事件消息相关事件用户相关事件使用样例fromkhlbot.core.BotimportBotfromkhlbot.core.CommanderimportCommanderimportkhlbot.configasCONFIGfromkhlbot.khl.ChannelMessageAPIimportChannelMessagecommander=Commander(prefix="-")# 处理"-hello" 和 "-hello2"@commander.command("hello",partial=(2,))@commander.command("hello2",partial=(1,))asyncdefhello(i,**kwargs):event=kwargs["event"]payload={"content":"**Hello**","target_id":event.target_id,"quote":event.msg_id,"type":CONFIG.KHL_MSG_MARKDOWN}json_rep=awaitChannelMessage.create(body=payload,token="")# 周期任务，间隔3秒，运行3次@commander.interval(period=3,times=3)asyncdefinterval_test():payload={"content":"**Hello**","target_id":"","quote":"","type":CONFIG.KHL_MSG_MARKDOWN}json_rep=awaitChannelMessage.create(body=payload,token="")# 订阅系统消息，服务器有用户更新信息时将被调用@commander.subscribe(_type=CONFIG.KHL_EVENT_TYPE_UPDATED_GUILD_MEMBER)asyncdefonline(**kwargs):event=kwargs["event"]payload={"content":"**Hello**","target_id":"","type":CONFIG.KHL_MSG_MARKDOWN}json_rep=awaitChannelMessage.create(body=payload,token="")config={"MAX_CONSUMER_NUMBER":4,"MAX_PROCESSING_NUMBER":2}bot=Bot(token="",_config=config)bot.add_commander(commander)bot.run()
Package: khldaemon
KHLDaemon一个基于TWT233的khl.py的插件系统安装使用命令pip install khldaemon来安装使用使用命令python -m khldaemon init来初始化机器人将会生成pluginconfig文件夹，以及config.yml配置文件修改配置文件，填上你的开黑啦机器人的token然后使用命令python -m khldaemon start启动机器人样例插件fromkhldaemon.api.allimport*# or# from khldaemon.api.interface import *# from khldaemon.api.utils import *# from khldaemon.api.command import *# from khldaemon.api.types import  *# plugin metaPLUGIN_METADATA={'id':'test_plugin','version':'1.0.0','name':'Test Plugin','description':'A test plugin','author':'DancingSnow','link':'https://github.com/DancingSnow0517/'}classConfig(Serializable):config1:str='c1'config2:str='c1'config3:bool=Falseconfig:Config# run when bot startdefon_load(interface:PluginInterface):globalconfiginterface.logger.info('plugin loaded')interface.register_help_messages('!!hello','Hello World!')# register a commandinterface.register_command(Literal('!!hello').runs(lambdasrc:src.reply('world!')))# config interfaceconfig=interface.load_config_simple(file_name='test_config.json',target_class=Config,in_data_folder=True)config.config1='t'interface.save_config_simple(config=config,file_name='test_config.json',in_data_folder=True)# run when bot stopdefon_unload(interface:PluginInterface):interface.logger.info('plugin unloaded')# run when a message is receivedasyncdefon_message(interface:MessageInterface):interface.logger.info(interface.message.content)# run when an event is receivedasyncdefon_event(interface:EventInterface):interface.logger.info(interface.event.event_type)
Package: khleepkg01
# SSL-Lab-seminar-testSSL-Seminar-test repository:: Topic - Package Test and Deployment## Synopsis```pythonfrom ssllabtest import Caculatorcalc = Caculator(isAdd=True,isSub=False,isMul=False,isDiv=False,isRem=False)sum = calc.adder(1, 2)print(sum) # sum = 3```## Installaion```bash$ pip3 install ssllabtest```Only install module with pip## Dependancy- pytest```bash$ pip3 install -U pytest```## Document Index1. TDD (Test-Driven Development)2. From unit-test to module-test3. Package deployment (using pypi)
Package: khleepkg02
# SSL-Lab-seminar-testSSL-Seminar-test repository:: Topic - Package Test and Deployment## Synopsis```pythonfrom ssllabtest import Caculatorcalc = Caculator(isAdd=True,isSub=False,isMul=False,isDiv=False,isRem=False)sum = calc.adder(1, 2)print(sum) # sum = 3```## Installaion```bash$ pip3 install ssllabtest```Only install module with pip## Dependancy- pytest```bash$ pip3 install -U pytest```## Document Index1. TDD (Test-Driven Development)2. From unit-test to module-test3. Package deployment (using pypi)
Package: khleepkg03
# SSL-Lab-seminar-testSSL-Seminar-test repository:: Topic - Package Test and Deployment## Synopsis```pythonfrom khleepkg03.app import Caculatorcalc = Caculator(isAdd=True,isSub=False,isMul=False,isDiv=False,isRem=False)sum = calc.adder(1, 2)print(sum) # sum = 3```## Installaion```bash$ pip3 install khleepkg03```Only install module with pip## Dependancy- pytest```bash$ pip3 install -U pytest```## Document Index1. TDD (Test-Driven Development)2. From unit-test to module-test3. Package deployment (using pypi)
Package: khleetest1
SSL-Lab-seminar-testSSL-Seminar-test repository:: Topic - Package Test and DeploymentSynopsisfromssllabtestimportCaculatorcalc=Caculator(isAdd=True,isSub=False,isMul=False,isDiv=False,isRem=False)sum=calc.adder(1,2)print(sum)# sum = 3Installaion$pip3installssllabtestOnly install module with pipDependancypytest$pip3install-UpytestDocument IndexTDD (Test-Driven Development)From unit-test to module-testPackage deployment (using pypi)