Saravanan666/pypi-org huggingface dataset:
Package: k3cgrouparch
k3cgrouparchThis lib is used to set up cgroup directory tree according to configuration saved in zookeeper, and add pid to cgroup accordingly.k3cgrouparch is a component ofpykit3project: a python3 toolkit set.NamecgrouparchA python lib used to build cgroup directory tree, add set cgroup pid.StatusThis library is considered production ready.DescriptionThis lib is used to set up cgroup directory tree according to
configuration saved in zookeeper, and add pid to cgroup accordingly.Installpip install k3cgrouparchSynopsis# {#     'cpu': {#         'sub_cgroup': {#             'test_cgroup_a': {#                 'conf': {#                     'share': 1024,#                 },#             },#             'test_cgroup_b': {#                 'conf': {#                     'share': 100,#                 },#                 'sub_cgroup': {#                     'test_cgroup_b_sub1': {#                         'conf': {#                             'share': 200,#                         },#                     },#                 },#             },#         },#     },# }fromk3cgrouparchimportmanagerdefget_cgroup_pid_file(cgroup_name):ifcgroup_name=='test_cgroup_a':return['/tmp/test.pid']# ...defget_zk_host():return'127.0.0.1:2181,1.2.3.4:2181'argkv={'cgroup_dir':'/sys/fs/cgroup','get_cgroup_pid_file':get_cgroup_pid_file,'get_zk_host':get_zk_host,'zk_prefix':'/cluser_a/service_rank','zk_auth_data':[('digest','super:123456')],'communicate_ip':'127.0.0.1','communicate_port':'3344',}manager.run(**argkv)argkv={'cgroup_dir':'/sys/fs/cgroup','get_zk_host':get_zk_host,'zk_prefix':'/cluser_a/service_rank','zk_auth_data':[('digest','super:123456')],}cgexec_arg=manager.get_cgexec_arg(['test_cgroup_a'],**argkv)# return like:# {#     'test_cgroup_a': '-g cpu:test_cgroup_a',# }AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3color
k3colorcreate colored text on terminalk3color is a component ofpykit3project: a python3 toolkit set.Installpip install k3colorSynopsis# output text in blue:>>>blue('I am blue')'\x01\x1b[38;5;67m\x02I am blue\x01\x1b[0m\x02'AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3confloader
k3confloaderk3confloader loads conf for other pykit3 modulesk3confloader is a component ofpykit3project: a python3 toolkit set.Installpip install k3confloaderSynopsisAuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3d
K3D JupyterK3D lets you create 3D plots backed by WebGL with high-level API (surfaces, isosurfaces, voxels,
mesh, cloud points, vtk objects, volume renderer, colormaps, etc). The primary aim of K3D-jupyter is
to be easy for use as stand alone package like matplotlib, but also to allow interoperation with
existing libraries as VTK. K3D can be run as:Jupyter Notebook extension 🚀Jupyter Lab extension 🎉Google Colab extension 🧪 [still experimental]Standalone HTML/JS 📑Documentation:https://k3d-jupyter.orgShowcase:YouTube:Click to watch at YouTube:Try it Now!Watch:Interactive showcase galleryJupyter
version:InstallationPyPITo install from PyPI use pip:$ pip install k3dConda/AnacondaTo install from conda-forge use:$ conda install -c conda-forge k3dGoogle ColabFirst you need to install k3d:!pip install k3d
!jupyter nbextension install --py --user k3d
!jupyter nbextension enable --py --user k3dAfter that you need to activate custom widgets and switch k3d to text protocol:import k3d
from google.colab import output

output.enable_custom_widget_manager()

k3d.switch_to_text_protocol()Installing directly from GitHubTo install directy from this repository (requires git and node.js + npm to build):$ pip install git+https://github.com/K3D-tools/K3D-jupyterThis also makes possible installing the most up-to-date development version (same requirements):$ pip install git+https://github.com/K3D-tools/K3D-jupyter@develTo install any historical version, replacedevelabove with any tag or commit hash.SourceFor a development installation (requires npm and node.js),$ git clone https://github.com/K3D-tools/K3D-jupyter.git
$ cd K3D-jupyter
$ pip install -e .Then, if required, JupyterLab installation:$ jupyter labextension install ./jsCode of ConductK3D-jupyter follows the Python Software Foundation Code of Conduct in everything we do.KudosTravis is ❤️OpenDreamKit is 🚀Three.js is 🥇AcknowledgmentsResearch Infrastructure project
This package was created as part of the Horizon 2020 EuropeanOpenDreamKit(grant agreement#676541).
Package: k3daemonize
k3daemonizeIt supplies a command line interface API to start/stop/restart a daemon.k3daemonize is a component ofpykit3project: a python3 toolkit set.Help to create daemon process.
It supplies a command line interface API to start/stop/restart a daemon.daemonizeidentifies a daemon by thepidfile.
Thus two processes those are set up with the samepidfile
can not run at the same time.Installpip install k3daemonizeSynopsisimporttimeimportk3daemonizedefrun():foriinrange(100):print(i)time.sleep(1)# python foo.py start# python foo.py stop# python foo.py restartif__name__=='__main__':# there is at most only one of several processes with the same pid path# that can run.k3daemonize.daemonize_cli(run,'/var/run/pid')AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3dict
k3dictIt provides with several dict operation functions.k3dict is a component ofpykit3project: a python3 toolkit set.k3dictIt provides with several dict operation functions.StatusThis library is considered production ready.Installpip install k3dictSynopsisimportk3dictmydict={'a':{'a.a':'v-a.a','a.b':{'a.b.a':'v-a.b.a'},'a.c':{'a.c.a':{'a.c.a.a':'v-a.c.a.a'}}}}# depth-first iterative the dictforrstink3dict.depth_iter(mydict):print(rst)# output:#     (['a', 'a.c', 'a.c.a', 'a.c.a.a'], 'v-a.c.a.a')#     (['a', 'a.b', 'a.b.a'], 'v-a.b.a')#     (['a', 'a.a'], 'v-a.a')forrstink3dict.breadth_iter(mydict):print(rst)# output:#     (['a'],                            {'a.c': {'a.c.a': {'a.c.a.a': 'v-a.c.a.a'}}, 'a.b': {'a.b.a': 'v-a.b.a'}#                                           , 'a.a': 'v-a.a'})#     (['a', 'a.a'],                     'v-a.a')#     (['a', 'a.b'],                     {'a.b.a': 'v-a.b.a'})#     (['a', 'a.b', 'a.b.a'],            'v-a.b.a')#     (['a', 'a.c'],                     {'a.c.a': {'a.c.a.a': 'v-a.c.a.a'}})#     (['a', 'a.c', 'a.c.a'],            {'a.c.a.a': 'v-a.c.a.a'})#     (['a', 'a.c', 'a.c.a', 'a.c.a.a'], 'v-a.c.a.a')#records=[{"event":'log in',"time":{"hour":10,"minute":30,},},{"event":'post a blog',"time":{"hour":10,"minute":40,},},{"time":{"hour":11,"minute":20,},},{"event":'log out',"time":{"hour":11,"minute":20,},},]get_event=k3dict.make_getter('event',default="NOTHING DONE")get_time=k3dict.make_getter('time.$field')forrecordinrecords:ev=get_event(record)tm="%d:%d"%(get_time(record,{"field":"hour"}),get_time(record,{"field":"minute"}))print("{ev:<12}at{tm}".format(ev=ev,tm=tm))# output:# log in         at 10:30# post a blog    at 10:40# NOTHING DONE   at 11:20# log out        at 11:20AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3down2
k3down2convert markdown segment into easy to transfer media sucha images.k3down2 is a component ofpykit3project: a python3 toolkit set.k3down2 is utility to convert markdown segment into easy to transfer media sucha images.
It depends on:pandoc to render markdown snippet to html, such as tables.graphviz to render graphviz to image.google-chrome to render svg/html to png.imagemagick to process images.mmdc to convert mermaid chart to svg. See:https://mermaid-js.github.io/mermaid/#Installpip install k3down2SynopsisAuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3etcd
k3etcdA python client for Etcdhttps://github.com/coreos/etcdThis module will only work correctly with the etcd server version 2.3.x or later.k3etcd is a component ofpykit3project: a python3 toolkit set.DescriptionA python client for Etcdhttps://github.com/coreos/etcdThis module will only work correctly with the etcd server version 2.3.x or later.Installpip install k3etcdSynopsisimportk3etcdhosts=(('192.168.0.100',2379),('192.168.0.101',2379),('192.168.0.102',2379),)try:c=k3etcd.Client(host=hosts)c.set('test_key','test_val')res=c.get('test_key')# type(res) is EtcdKeysResult# res.key == 'test_key'# res.value == 'test_val'# res.dir == False# ...# c.st_leader# out type is `dict`# {#   "leader": "991200c666cc4678",#   "followers":{#       "183ebbe2e22ee250": {#           "latency": {#               "current": 0.00095,#               "average": 0.09798531413612557,#               "standardDeviation": 1.3282931634902915,#               "minimum": 0.000635,#               "maximum": 18.407235#           },#           "counts": {#               "fail": 0,#               "success": 191#           }#       },#       "291578612bc6deb": {#           "latency": {#               "current": 0.000949,#               "average": 0.001928250000000001,#               "standardDeviation": 0.0018525034545722491,#               "minimum": 0.000876,#               "maximum": 0.017505#           },#           "counts": {#               "fail": 0,#               "success": 188#           }#       },#   }# }# c.st_self# out type is `dict`#   {#       "name": "node_1",#       "id": "991200c666cc4678",#       "state": "StateLeader",#       "startTime": "2017-06-14T05:20:04.334273309Z",#       "leaderInfo": {#           "leader": "991200c666cc4678",#           "uptime": "4h41m55.43860796s",#           "startTime": "2017-06-14T05:20:04.477688456Z"#       },#       "recvAppendRequestCnt": 0,#       "sendAppendRequestCnt": 736#   }# c.st_store# out type is `dict`#   {#       "getsSuccess": 4,#       "getsFail": 7,#       "setsSuccess": 53,#       "setsFail": 0,#       "deleteSuccess": 24,#       "deleteFail": 2,#       "updateSuccess": 2,#       "updateFail": 0,#       "createSuccess": 7,#       "createFail": 1,#       "compareAndSwapSuccess": 3,#       "compareAndSwapFail": 1,#       "compareAndDeleteSuccess": 0,#       "compareAndDeleteFail": 0,#       "expireCount": 3,#       "watchers": 0#   }n=c.names# get names of etcd servers# n=['node1', 'node2', 'node3']ids=c.ids# get ids of etcd servers# ids=['fca771384ed46928', '991200c666cc4678', '4768ce54ee212c95']peerurls=['http://192.168.0.103:2380']c.add_member(*peerurls)# only register new node# after it, start the serverpeerurls=['http://192.168.0.102:4380']c.change_peerurls('fca771384ed46928',*peerurls)exceptk3etcd.EtcdExceptionase:print(repr(e))AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3fmt
k3fmtIt provides with several string operation functions.k3fmt is a component ofpykit3project: a python3 toolkit set.Namek3fmtIt provides with several string operation functions.StatusThis library is considered production ready.Installpip install k3fmtSynopsisimportk3fmtlines=['hello','world',]# add left padding to each line in a stringk3fmt.line_pad('\n'.join(lines),' '*4)# "    hello"# "    world"# format a multi-row lineitems=['name:',['John','j is my nick'],'age:',26,'experience:',['2000 THU','2006 sina','2010 other'],]k3fmt.format_line(items,sep=' | ',aligns='llllll')# outputs:#    name: | John         | age: | 26 | experience: | 2000 THU#          | j is my nick |      |    |             | 2006 sina#          |              |      |    |             | 2010 otherAuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3fs
k3fsFile-system Utilitiesk3fs is a component ofpykit3project: a python3 toolkit set.Installpip install k3fsSynopsis>>>fwrite('/tmp/foo',"content")>>>fread('/tmp/foo')'content'>>>'foo'inls_files('/tmp/')TrueAuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3git
k3gitwrapper of git command-linek3git is a component ofpykit3project: a python3 toolkit set.k3git is wrapper of git command-line.To parse a git commandgit --git-dir=/foo fetch origin:>>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).cmds
['fetch', 'origin']

>>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).to_args()
['--git-dir=/foo']Installpip install k3gitSynopsis>>>GitOpt().parse_args(['--git-dir=/foo','fetch','origin']).cmds['fetch','origin']>>>GitOpt().parse_args(['--git-dir=/foo','fetch','origin']).to_args()['--git-dir=/foo']AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3handy
k3handyhandy alias of mostly used functionsk3handy is a component ofpykit3project: a python3 toolkit set.k3handy is collection of mostly used  utilities.Installpip install k3handySynopsisAuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3heap
k3heapk3heap is a binary min heap implemented with referencek3heap is a component ofpykit3project: a python3 toolkit set.In this module RefHeap is a binary min heap implemented with reference: a parent has two references to two children and a child has a parent reference to its parent.RefHeap is not thread safe::import k3heap

h = k3heap.RefHeap()

x = []
h.push(x)
h.push(x)  # ValueError
h.push([]) # OKInstallpip install k3heapSynopsisimportk3heaph=k3heap.RefHeap([5,1,4,2,3])whileh.size>0:print(h.pop())AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3http
k3httpWe find that 'httplib' must work in blocking mode and it can not have a timeout when recving response.k3http is a component ofpykit3project: a python3 toolkit set.HTTP/1.1 clientUse this module, we can set timeout, if timeout raise a 'socket.timeout'.Installpip install k3httpSynopsisimportk3httpimporturllibimportsocketheaders={'Host':'127.0.0.1','Accept-Language':'en, mi',}try:h=k3http.Client('127.0.0.1',80)# send http reqeust without body# read response status line# read response headersh.request('/test.txt',method='GET',headers=headers)status=h.status# response code return from http server, type is int# 200# 302# 404# ...res_headers=h.headers# response headers except status line# res_headers = {#   'Content-Type': 'text/html;charset=utf-8',#   'Content-Length': 1024,#   ...# }# get response bodyprint(h.read_body(None))except(socket.error,k3http.HttpError)ase:print(repr(e))content=urllib.urlencode({'f':'foo','b':'bar'})headers={'Host':'www.example.com','Content-Type':'application/x-www-form-urlencoded;charset=utf-8','Content-Length':len(content),}try:h=k3http.Client('127.0.0.1',80)# send http reqeusth.send_request('http://www.example.com',method='POST',headers=headers)# send http request bodyh.send_body(content)# read response status line and headersstatus,headers=h.read_response()# read response bodyprint(h.read_body(None))except(socket.error,k3http.HttpError)ase:print(repr(e))AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3httpmultipart
k3httpmultipartThis module provides some util methods to get multipart headers and body.k3httpmultipart is a component ofpykit3project: a python3 toolkit set.Namek3httpmultipartStatusThe library is considered production ready.Installpip install k3httpmultipartSynopsisimportosimportk3httpmultipartimportk3fs# http request headersheaders={'Content-Length':1200}# http request fieldsfile_path='/tmp/abc.txt'k3fs.fwrite(file_path,'123456789')fields=[{'name':'aaa','value':'abcde',},{'name':'bbb','value':[open(file_path),os.path.getsize(file_path),'abc.txt']},]# get http request headersmultipart=k3httpmultipart.Multipart()res_headers=multipart.make_headers(fields,headers=headers)print(res_headers)#output:#{#    'Content-Type': 'multipart/form-data; boundary=FormBoundaryrGKCBY7',#    'Conetnt-Length': 1200,#}# get http request body readermultipart=k3httpmultipart.Multipart()body_reader=multipart.make_body_reader(fields)data=[]forbodyinbody_reader:data.append(body)print(''.join(data))#output:#--FormBoundaryrGKCBY7#Content-Disposition: form-data; name=aaa##abcde#--FormBoundaryrGKCBY7#Content-Disposition: form-data; name=bbb; filename=abc.txt#Content-Type: text/plain##123456789#--FormBoundaryrGKCBY7--AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3jobq
k3jobqk3jobq processes a series of inputs with functions concurrentlyk3jobq is a component ofpykit3project: a python3 toolkit set.k3jobq is a manager to create cuncurrent tasks.
It processes a series of inputs with functions concurrently and
return once all threads are done::def add1(args):
    return args + 1

def printarg(args):
    print(args)

k3jobq.run([0, 1, 2], [add1, printarg])
# > 1
# > 2
# > 3Installpip install k3jobqSynopsis#!/usr/bin/env pythonimportk3jobqif__name__=="__main__":defadd1(args):returnargs+1defmulti2(args):returnargs*2defprintarg(args):print(args)k3jobq.run([0,1,2],[add1,printarg])# > 1# > 2# > 3k3jobq.run((0,1,2),[add1,multi2,printarg])# > 2# > 4# > 6# Specify number of threads for each job:# Job 'multi2' uses 1 thread.# This is the same as the above example.k3jobq.run(list(range(3)),[add1,(multi2,1),printarg])# > 2# > 4# > 6# Create 2 threads for job 'multi2':# As there are 2 thread dealing with multi2, output order will not be kept.k3jobq.run(list(range(3)),[add1,(multi2,2),printarg])# Output could be:# > 4# > 2# > 6# Multiple threads with order kept:# keep_order=True to force to keep order even with concurrently running.k3jobq.run(list(range(3)),[add1,(multi2,2),printarg],keep_order=True)# > 2# > 4# > 6# timeout=0.5 specifies that it runs at most 0.5 second.k3jobq.run(list(range(3)),[add1,(multi2,2),printarg],timeout=0.5)# Returning *k3jobq.EmptyRst* stops delivering result to next job:defdrop_even_number(i):ifi%2==0:returnk3jobq.EmptyRstelse:returnik3jobq.run(list(range(10)),[drop_even_number,printarg])# > 1# > 3# > 5# > 7# > 9AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3log
k3logk3log is a collection of log utilities.k3log is a component ofpykit3project: a python3 toolkit set.k3log is a collection of log utilities for logging.Installpip install k3logSynopsis# make a file logger in one linelogger=pk3logutil.make_logger('/tmp',level='INFO',fmt='%(message)s',datefmt="%H:%M:%S")logger.info('foo')logger.stack_str(fmt="{fn}:{ln}in{func}\n{statement}",sep="\n")# runpy.py:174 in _run_module_as_main#   "__main__", fname, loader, pkg_name)# runpy.py:72 in _run_code#   exec code in run_globals# ...# test_logutil.py:82 in test_deprecate#   pk3logutil.deprecate()#   'foo', fmt='{fn}:{ln} in {func}\n  {statement}', sep='\n')AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3logcollector
k3logcollectorScan log files on local machine, collector all interested logs, and send to somewhere for display.k3logcollector is a component ofpykit3project: a python3 toolkit set.NamelogcollectorScan log files on local machine, collector all interested logs, and send
to somewhere for display.DescriptionWe may want to see all error logs on all machines, so we need to collector
logs, and save it in somewhere. This module is used to collector logs on one
machine.Normally, same error info will be loged repeatedly, we do not want
to save duplicated log info, so logs produced by same source file at
same line number in one second will be combined.Confconfiguration for log files. It is a dict, the key is the log name, the value
is the configuration for the log.file_paththe path of the log file.is_first_lineis a callback function.
The argument to this function is a line in log file, if the line is the
first line of a log, then returnTrue, otherwise returnFalse.get_levelis a callback function.
The argument to this function is the complete log string, which may contains
multiple lines. It should return the level of the log, which is a string.parseis a callback function.
The argument to this function is the complete log string, which may contains
multiple lines. It should return a dict contains following fields.log_ts:
the timestamp of this log, such as1523936052, is a integer.level:
the level of this log, such as 'info'.source_file:
the source file in which the log was produced.line_number:
the number of the line at which the log was produced.levelis a list, used to specify the interested log levels.Installpip install k3logcollectorSynopsisimportk3logcollectordefsend_log(log_entry):print("send the log entry to database or other place.")defis_first_line(line):print("return True if the line is the first line of a log,")print("otherwise return False.")defget_level(log_str):print("return the level of the log.")defparse(log_str):print("parse the log.")conf={'front_error_log':{'file_path':'path/to/log/file/xxx.error.log','level':['warn','error'],'is_first_line':is_first_line,'get_level':get_level,'parse':parse,},}kwargs={'node_id':'123abc','node_ip':'1.2.3.4','send_log':send_log,'conf':conf,}k3logcollector.run(**kwargs)AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3math
k3mathno desck3math is a component ofpykit3project: a python3 toolkit set.Installpip install k3mathSynopsisxs=[1,2,3,4]ys=[6,5,7,10]# Fit polynomial curve with 4 points, at degree 0, 1, 2, 3:fordegin(0,1,2,3):poly=Polynomial.fit(xs,ys,degree=deg)print'y =',poly# Evaluate y(5) with polynomialy5=Polynomial.evaluate(poly,5)print'y(5) =',y5# Plot the curve and pointslines=Polynomial.plot([(poly,'.')],(-1,6),width=30,height=10,points=zip(xs+[5],ys+[y5],['X','X','X','X','*']))forlinlines:printl# y = 7# y(5) = 7.0#                     X#### ...............X.........*....#      X#           X# y = 3.5 + 1.4x# y(5) = 10.5#                              .#                          *...#                     X....#                .....#           .....X#      X....X# .....# y = 8.5 - 3.6x + x²# y(5) = 15.5#                              .#                             .#                           ..#                         .*#                      ...# ..               ...X#   ...X....X....X.# y = 12 - 9.166667x + 3.5x² - 0.333333x³# y(5) = 12.0## .                     ...*....#  .                  X.#   .               ..#    .            ..#     .         .X#      X....X...AuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com
Package: k3mime
k3mimeThis module provide some util methods to handle mime type.k3mime is a component ofpykit3project: a python3 toolkit set.Table of ContentNameStatusSynopsisAuthorCopyright and LicenseNamek3mimeStatusThe library is considered production ready.Installpip install k3mimeSynopsisimportk3mimeprint(k3mime.get_by_filename('file.json'))#  application/jsonAuthorZhang Yanpo (张炎泼)drdr.xp@gmail.comCopyright and LicenseThe MIT License (MIT)Copyright (c) 2015 Zhang Yanpo (张炎泼)drdr.xp@gmail.com