Saravanan666/pypi-org huggingface dataset:
Package: minicms
Minicms#######**Minicms** is simple CMS app for Django which supports i18n in some extent andmarkdown WYSIWYG editor inside admin.Same page in different languages accessed via the same URL. If page doesn'texist in requested locale default language is used, otherwise 404 returnedRequirements============- django >= 1.3- markdownInstallation============**Minicms** should be installed using pip: ::pip install minicmsSetup=====- 'Minicms' should be in your INSTALLED_APPS ::INSTALLED_APPS += ('minicms',)- Add 'minicms' urlpattern to base urls and specify view function ::('^cms/', include('minicms.urls'))- Run ``manage.py syncdb``Usage===========**Minicms** uses 'minicms/default.html' template, passing current page in ``page``context variable.Page attributes you can use in template:- ``lang`` - page language. Usually same as LANGUAGE_CODE context variable (see above)- ``slug`` - page slug. All translations of the same page should have the same slug.You can organize pages into some kind of hierarchy with slashes, eg:installationinstallation/requirementsinstallation/stepsinstallation/steps/1installation/steps/2installation/steps/3pricingpricing/free-plan- ``name`` - localized page name. It will appear as a text under link in menu andbreadcrumbs- ``title`` - title of a Page, intended for use in HTML title- ``keywords`` - page keywords intended for use in HTML meta keywords (for SEO)- ``description`` - same as keywords but description- ``content`` - HTML content of the pageThere are also ``minicms_breadcrumbs`` and ``minicms_menu`` template tags availablein ``minicms_tags`` tag library. You can override their appearance in templates``minicms/tags/menu`` and  ``minicms/tags/breadcrumbs``. See example templates_ fordetails.To put link on a certain page inside your templates,{% url minicms page_slug %}License=======Distrubuted under `GNU lesser general public license`_.Copyright=========Copyright (c) 2012 Pavel Puchkin (neoascetic@gmail.com)Markitup_: (c) 2008 Jay Salvat (http://markitup.jaysalvat.com/).. _Markitup:     http://markitup.jaysalvat.com/.. _GNU lesser general public license: http://www.gnu.org/copyleft/lesser.html.. _templates: https://github.com/neoascetic/minicms/tree/master/minicms/templates.. _neoascetic: https://github.com/neoascetic.. _user2589: https://github.com/user2589
Package: mini-color
一个易于使用的终端输出彩色文本库环境及安装对于python版本没有太多的要求，只要不低于python 3.6应该都可以正常使用使用pip安装：pip install mini-color快速上手在终端打印一串某个颜色的文本，你只需要像这样：frommini_color.colorimportredprint(red('我只是一个输出'))color中包含了所有可以使用print函数输出彩色字符的颜色方法这将在终端输出红色的字符串color中的内容：black(),white(),red(),yellow(),blue(),green(),cyan(),purple(),

random_color()其中random_color()是一个能够将输入的字符串转为随机颜色的方法进阶：使用背景色你只需要导入一个Color类，并在颜色方法中将Color中的属性传入back参数：frommini_color.colorimportColor,greentext=green('我只是一个输出',back=Color.BLUE)print(text)这将在终端输出绿色字体、蓝色背景的字符串Color的属性内容同上面的color类似，因为在所有的颜色方法中都调用了Color中的颜色属性Color类：BLACK,WHITE,RED,YELLOW,BLUE,GREEN,CYAN,PURPLE,

random()random()是一个方法，他能返回随机一个Color的颜色属性，这在color方法中也是可以作为参数传入的进阶：使用样式你只需要导入一个Style类，并在颜色方法中将Style中的属性传入style参数frommini_color.colorimportColor,Style,redtext=red('我只是一个输出',back=Color.BLUE,style=Style.HighLight)print(text)这将在终端输出红色字体、蓝色背景、带有高亮效果的字符串Style中包含的样式：Default：默认样式，没有任何显示效果

HighLight：高亮显示

UnderLine：下划线效果

Flash：闪烁效果

AntiWhite：反白的显示效果

Invisible：不可见联系我QQ:1435608435
Package: miniconfig
miniconfigmaking configuration phase, in your application.
(Tiny version of almost pyramid's configurator object)# yourapp/__init__.pyfromminiconfigimportConfiguratorCoreclassConfigurator(ConfiguratorCore):defmake_app(self):self.commit()returnApp(self.settings)classApp:def__init__(self,settings):self.settings=settingsyourapp/pluginA.pyclassA:passdefincludeme(config):config.settings["A"]=A()yourapp/pluginB.pyclassB:passdefincludeme(config):config.include(".pluginA")config.settings["B"]=B()application userfromyourappimportConfiguratorconfig=Configurator()config.include("yourapp.pluginB")app=config.make_app()print(app.settings.keys())# dict_keys(['A', 'B'])Adding directivesdirective means that action of configurator.how to define and use directivedefhello(config,name):defregister():assertconfig.settings["foo"]=="foo"print("hello:{}".format(name))discriminator=(hello,name)config.action(discriminator,register)config=Configurator(settings={"foo":"foo"})config.add_directive("hello",hello)config.hello("foo")it is also supported that to define directives by dotted namefoo/bar.pydefhello(config):defregister():print("hai")discriminator=id(object())# xxxconfig.action(discriminator,register)yourappconfig=Configurator()config.add_directive("hello","foo.bar:hello")config.hello()config.commit()# hai
Package: miniconfig-argparse
argparse settings with miniconfigcodefromminiconfig_argparseimportget_configuratorconfig=get_configurator()config.include("yourmodule")config.include("yourmodule.extra")args=config.make_args()# using argsin yourmodule, using config like a below.defincludeme(config):parser=config.parserparser.add_argument('-v','--verbose',action='count',default=0,help="(default option: increment logging level(default is WARNING))")parser.add_argument('-q','--quiet',action='count',default=0,help="(default option: decrement logging level(default is WARNING))")defsetup_closure(args):logging_level=logging.WARN+10*args.quiet-10*args.verboselogging.basicConfig(level=logging_level)returnargsparser.add_callback(setup_closure)default directivesmake_parserreplace_parsercall_function_as_commandmake_parser(fn) + call_function_as_commandUsingmake_parser()andcall_function_as_command()combinations are useful, sometimes.make_parser(fn)– creating parser from a function definition.call_function_as_command– call function using parsed argument object.Such as below.defgreeting(message,is_surprised=False,name="foo"):""" greeting message

    :param message: message of greeting
    :param is_surprised: surprised or not (default=False)
    :param name: name of actor
    """suffix="!"ifis_surprisedelse""print("{name}:{message}{suffix}".format(name=name,message=message,suffix=suffix))defincludeme(config):parser=config.make_parser(greeting)config.replace_parser(parser)if__name__=="__main__":fromminiconfig_argparseimportget_configuratorconfig=get_configurator()config.include(includeme)args=config.make_args()config.call_function_as_command(greeting,args)
Package: minicpuinfo
mini tool for cpu-info$ minicpuinfo -hOptions-h, --help      show this help menu
-c, --cpu       shows how many cpu's available
-d, --disk      disk partitions
-D, --dpercent  disk percentage
-m, --memusage  all memory usages
-C, --cpuload   cpu load percentageabout me-sahayavalan......
Package: minicql
Yet another Cassandra (CQL protocol) database driver.RequirementPython3.5+ExampleSimple exampleimport minicql
conn = minicql.connect('server_name', 'keyspace')
cur = conn.cursor()
cur.execute("select * from test")
for c in cur.fetchall():
    print(c)
conn.close()Use Cosmos DB cassandra APIimport minicql
conn = minicql.connect(
    'xxxxx.cassandra.cosmos.azure.com',
    'keyspace',
    user='xxxxx',
    password='?????',
    port=10350,
    use_ssl=True
)
    ...
Package: minicss
A smallClick-wrapper around the python
CLI-tool from Kyle S. atcssminifier.com.
All credits go tohim.Download$ pip install minicssUsage$ mini test.cssMIT licenseCopyright (c) 2017 Yochem van Rosmalen
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: minicurve
minicurveA very simple library developed byMarek Narozniakfor visualizing finite field over elliptic curve. The idea of making this library originates in a cryptography-related tutorial seriesElliptic Curve Cryptography and Diffie-Hellman Key ExchangeEliptic Curve Digital Signature AlgorithmSchnorr SignaturePedersen Commitments and Confidential TransactionsDisclaimer. This library is NOT secure and NOT efficient. It is meant for purely educational purposes for visualizing tutorials. Do NOT use it for any cryptography applications!InstallationSuper simple!pip install minicurveTutorialPoints addition is as simple asR=P+Q, you can visualize parent points using arrows as follows.fromminicurveimportMiniCurveasmcfromminicurveimportVisualizer# curve parametersa=1b=7p=13P=mc(a,b,p,x=10,y=4,label='P',color='tab:orange')Q=mc(a,b,p,x=9,y=11,label='Q',color='tab:orange')# addition of curve pointsR=P+QR.setColor('tab:red')R.setLabel('R')R.x_delta=-0.3R.arrow_thickness=0.01# you can control the thickness of the arrowR.arrow_head=20# and its head# visualize the finite fieldvis=Visualizer(a,b,p)vis.makeField()vis.points=[P,Q,R]vis.generatePlot(title='points addition $P+Q=R$ using minicurve',addition=True)# addition=True option will use arrows to visualize addition parentsvis.plot('images/example_add.png')outputsMultiplication by scalar works in similar way as you can simplyP=4*Gand visualize the scalar using arrow pathfromminicurveimportMiniCurveasmcfromminicurveimportVisualizer# curve parametersa=0b=5p=7G=mc(a,b,p,x=3,y=2,label='G',color='tab:green',tracing=True)# tracing=True option will enabling plotting the arrows indicating scalar multiplication# private keyk=4# public keyP=k*GP.setColor('tab:orange')P.setLabel('P')P.x_delta=0.08# you can control the label placement relative to the point# visualize the finite fieldvis=Visualizer(a,b,p)vis.makeField()vis.points=[G,P]vis.generatePlot(title='scalar multiplication $k \cdot G=P, k=4$ using minicurve')vis.plot('images/example_mul.png')outputsFAQWhat are the valid values of colors?We are usingMatplotlib colors.Thanks!Code for computingquadratic residuesfromthis gist. Thanks toNakov.
Package: minid
Minimal Viable Identifier ClientA minid (Minimal Viable Identifier) is an identifier that is sufficiently simple to make creation and use trivial, while still having enough substance to make data easily findable, accessible, interoperable, and reusable (FAIR).See theRead The Docspage for more info.UsageMinid 2.0.0 requires python 3.6 or higher:$ pip install minidMinting identifiers is simple and easy:$ minid login
$ minid register --test [--title <title>] <file_name> [--locations <loc1>..<locN>]
Package: minidatabase
# Minidb Python Third-Party DatabaseMinidb is a Python third-party database that provides a simple and easy-to-use interface for creating, appending and managing databases. It allows for database creation and manipulation without having to use any complex SQL commands.## InstallationTo install Minidb, you can use pip by running the following command:` pip install minidatabase `## UsageTo start using minidb, you must first import the library by using the following command:` python from minidatabase import minidb `### Creating a DatabaseTo create a local database, you can use theconnectmethod, which takes a single parameter, the path to the database. For example:` python db =minidb.connect('example.minidb')`To create a WebMDB server database, you can use theweb_connectmethod, which takes three parameters: password, server_address and port. You can start the server using theminidb -wcommand on the command line. You can then create a database using theminidb -c example.minidbcommand.### Database OperationsAfter creating a cursor for the database, you can start using the various database operations. Here are some important ones:#### Append MethodThe append method is used to add data to the database. It takes two parameters,tagandvalue, and is used to create a new tag and assign it a value. For example:` pythondb.append('name','John') `#### Delete MethodThe delete method is used to delete an entry from the database by tag name. For example:` pythondb.delete('name')`#### Search MethodThe search method is used to search the database for a keyword. It returns a list of tags with matching keywords. For example:` pythondb.search('age')`#### Search_value MethodThe search_value method is used to search the database for a specific value. It returns a list of tags with matching values. For example:` pythondb.search_value('John')`#### Search_tag MethodThe search_tag method is used to search the database for a specific tag. It returns a list of tags with matching tag names. For example:` pythondb.search_tag('name')`#### Clean MethodThe clean method is used to clear the database. For example:` python db.clean() `#### List MethodThe list method is used to list all the entries in the database. For example:` python db.list() `#### Commit MethodThe commit method is used to save the changes made to the database. For example:` python db.commit() `#### Close MethodThe close method is used to close the database cursor. For example:` python db.close() `## ContributionsMinidb welcomes and appreciates any contributions. If you find any bugs or have any suggestions for improvement, feel free to create a pull request or an issue in the repository.## LicenseThis project is licensed under the  GNU GENERAL PUBLIC LICENSE - see theLICENSEfile for details.
Package: minidemoKalmanFilter
ProvidesMinimal Kalman Filter classes (Linear, Extended and Unscented).Interactive demonstration and it’s snapshot.This package is very simple, and may suitable for educational use.About 100 executable lines for LKF/EKF/UKF totally.Demo program will show you the essence (assumption and limitation)of Kalman Filter.Filesfilter.pyAn implementation of minimal Kalman Filter (LKF/EKF/UKF included).DemosInteractive demoInteractive style demo requiresnumpyandmatplotlib.
Touch sliders to change the parameter of the filter,
and you will find the estimated results updated on your screen.
Some snapshots are included in the package directory (snapshot_*.png).python demo_ukf_gui.pyBatch demoBatch style demo (console version) requiresnumpy.
This demo estimates the position and velocity of 2-dimensinal
linear uniform motion, and output results to the console.
You can choose the filter class (LKF,EKF,UKF) by comman line.LKF, EFK and UKF gives almost same reseults for such a linear
problem here. Please extend significiant of output to confirm
the differences.python demo_ukf.py > out_ukf.txtRequirementsUses NumPy and Matplotlib(for interactive demo).LicenseCopyright (c) 2018 Kenich SHIRAKAWAThis is licensed under MIT license.
See Licence.txt for more information.ThanksThe basic design of unscented transformation class is based on
the Sam Burden’s work (seehttps://github.com/sburden/ukukf.py).
Package: minidevice
minidevice一个对安卓设备(主要是安卓模拟器)进行基础操作的工具包项目结构Root DirectoryREADME.mdmain.pyrequirements.txtsetup.pyminidevice/__init__.pyDroidCast.pyQueueUtils.pyadbcap.pyadbtouch.pydevice.pylogger.pyminicap.pyminitouch.pymaatouch.pyscreencap.pyconfig.pyutils.pytouch.pybin/DroidCast-debug-1.1.1.apkminicap/jni/Variousminicap.sofiles for different Android versions and architecturesminicap/libs/Variousminicapbinaries for different architecturesminitouch/libs/Variousminitouchbinaries for different architecturesmaatouchtests/test_minidevice.py更新日志2024.1.26更新为3.0版本
移除pyminitouch依赖，解决minitouch触控方式部分设备旋转屏幕方向后无法使用的问题，加入MaaTouch触控方式，修改部分不符合命名规范的类
ADBtouch -> ADBTouch
ADBcap -> ADBCap
Minicap -> MiniCap
Minitouch -> MiniTouch
adbutils 依赖解除版本限制minitouch无法在安卓13上使用，请使用MaaTouch替代2023.12.3屏蔽pyminitouch的日志并在MiniDevice中添加部分日志以及引入tests自动化测试Minidevice相关实例是否正常(测试不代表所有情况) 尝试修复部分bug2023.12.2README说明,添加MiniDevice类2023.8.10移除opencv库的引用，让用户自行处理截图源数据bytes,以此减少库依赖(opencv，numpy库真的很大且并非所有人都需要)requirementspyminitouchadbutils==1.2.9安装pip install minideviceAPI文档以及使用说明大致设计思路就是通过实现ScreenCap和Touch这两个抽象基类ScreenCap@abstractmethod screencap_raw 返回截图bytes数据save_screencap(path) 保存截图到pathTouch@abstractmethod click(x,y,duration)@abstractmethod swipe(points,duraiton)整合至MiniDevice类创建对安卓设备操作的对象,引入基础操作锁，防止不合理并发导致的程序错误MiniDevice(self, serial=None, capMethod: Union[ADBtouch, Minicap , DroidCast] = None,
                 touchMethod: Union[ADBtouch,Minitouch] = None, screenshotTimeout=500)capMethod|touchMethod为ScreenCap|Touch的子类或者子类实例，为None时不创建对应方法当capMethod|touchMethod包含子类时，serial为必须screenshot_rawclickswipeUser无需关心具体实现过程，Developer直接继承基类即可添加新方法已实现的特性ScreenCapMiniCapADBCapDroidCastTouchMiniTouchADBTouchMaaTouchMiniDeviceScreenCapTouch已知bug转发端口清理失败(暂时无需清理,所有转发时都会判断端口是否被占用)pyminitouch库使用系统路径的adb，导致需用户自行安装adb工具并添加到环境变量中pyminitouch库实现存在潜在问题，主要集中在连接问题以及输入是否合法未进行检查上面Tests进行测试前请pip install pytest相关使用特性见pytest文档MiniDevice测试修改文件中以下参数以适配不同测试环境以及新方法SERIAL="emulator-5554"# 设备IDSCREENSHOT_TIMEOUT=500# 截图延迟 单位msMETHOD_LIST=[# 格式为 (ScreenCap,Touch)# 截图方法(Minicap,None),(DroidCast,None),(ADBcap,None),# 操作方法(None,ADBtouch),(None,Minitouch)]性能排序截图Minicap>>DroidCast>>ADBcapMinicap截取一张图片时间大概20~30ms,当然你可以通过添加参数rate，以获得更加高的速度(但这同时会拉高设备CPU占用)DroidCast截图图片时间大概在100ms以内，场景越复杂,时间越长,解决方法未知ADBcap耗时500ms甚至更长,稳定性未知触控Minitouch>>ADBtouchMinitouch触控效率据说和Windows api几乎相同ADBtouch无法模拟曲线滑动,只能点到点直线
Package: mini-django-accounts
# Mini Django Accounts[![build status](https://gitlab.com/chaosengine256/mini-django-accounts/badges/master/build.svg)](https://gitlab.com/chaosengine256/mini-django-accounts/commits/master)
[![coverage report](https://gitlab.com/chaosengine256/mini-django-accounts/badges/master/coverage.svg)](https://gitlab.com/chaosengine256/mini-django-accounts/commits/master)
Package: minidlna-exporter
minidlna_exporter.pyA prometheus exporter for minidlna written in Python 3.
The exporter scrapes minidlna's status site and exposes it as prometheus metrics.Seegrafana_dashboard.jsonContentminidlna_exporter.pyContentMetricsSetuppipmanualDockerdocker-hubmanualUsageUsage ExampleMetrics# HELP python_info Python platform information
# TYPE python_info gauge
python_info{implementation="CPython",major="3",minor="7",patchlevel="0",version="3.7.0"} 1.0
# HELP minidlna_files file metrcis
# TYPE minidlna_files gauge
minidlna_files{type="audio_files"} 3624.0
minidlna_files{type="video_files"} 1865.0
minidlna_files{type="image_files"} 60241.0
# HELP minidlna_clients client metrics
# TYPE minidlna_clients gauge
minidlna_clients{hw_address="00:71:47:40:36:c5",ip_address="192.168.0.186",type="generic upnp 1.0"} 1.0
minidlna_clients{hw_address="74:75:48:57:3f:21",ip_address="192.168.0.107",type="generic upnp 1.0"} 1.0
minidlna_clients{hw_address="ff:ff:ff:ff:ff:ff",ip_address="127.0.0.1",type="unknown"} 1.0Setuppippip3 install --upgrade git+https://github.com/dr1s/minidlna_exporter.py.gitmanualgit clone https://github.com/dr1s/minidlna_exporter.py.git
cd minidlna_exporter.py
pip3 install -r requirements.txt
cd minidlna_exporter
./minidlna_exporter.pyDockerdocker-hubdocker pull dr1s/minidlna_exporter:latest
docker run --net=host -t dr1s/minidlna_exportermanualgit clone https://github.com/dr1s/minidlna_exporter.py.git
docker build -t dr1s/minidlna_exporter .
docker run -d -p 9312:9312 -t dr1s/minidlna_exporterUsageusage: minidlna_exporter.py [-h] [-m MINIDLNA] [-p PORT] [-i INTERFACE]

minidlna_exporter

optional arguments:
  -h, --help            show this help message and exit
  -m MINIDLNA, --minidlna MINIDLNA
                        minidlna adress
  -p PORT, --port PORT  port minidlna_exporter is listening on
  -i INTERFACE, --interface INTERFACE
                        interface minidlna_exporter will listen onUsage Exampleminidlna_exporter --minidlna localhost:8200 --interface 0.0.0.0 --port 9312The previous used arguements are the default options. If nothing needs to be changed, minidlna_exporter can be started without arguments.
Package: minidoc
Installation$ pip3 install minidocLicenseMITQuickstartpip3 install minidocmake a workdir, such as “TEST”mkdir TEST
cd TESTedit your code.tst.py  as below:cat code.tst.pyrun cmdminidoc,will auto exec the code in code.tst.py,and auto save  the terminal screen-shot(or recording)and auto generate a .rst doc-fileminidoc
tree
TEST# tree
.
├── code.tst.py
├── images------------------------------->generated svgs
│   ├── __getitem__.svg
│   └── __init__.svg
└── Usage.rst---------------------------->generated .rst

1 directory, 4 files
TEST#open generated .rst to check itminidoc -hTEST# minidoc -h
usage: minidoc [-h] [-tst TEST_FILE] [-codec CODEC] [-still STILL_FRAMES]
               [-rows ROWNUMS] [-dst DST_DIR] [-title TITLE] [-tbot TITLE_BOT]
               [-ebot ENTRY_BOT]

optional arguments:
  -h,                   --help                       show this help message and exit
  -tst    TEST_FILE,    --test_file TEST_FILE        .tst.py file name,default = "code.tst.py"
  -codec  CODEC,        --codec CODEC                .tst.py file codec,default = "utf-8"
  -still  STILL_FRAMES, --still_frames STILL_FRAMES  generate screen shot,default = True (which means still image but not recording)
  -rows   ROWNUMS,      --rownums ROWNUMS            screen height,default = 30
  -dst    DST_DIR,      --dst_dir DST_DIR            destination svg dir, default ="./images"
  -title  TITLE,        --title TITLE                parent title, default = "Usage"
  -tbot   TITLE_BOT,    --title_bot TITLE_BOT        parent title bottom char, default = '='
  -ebot   ENTRY_BOT,    --entry_bot ENTRY_BOT        entry title bottom char, default = '-'Usagefrom codeIn progressing.....from cmdline# screen shot
root@# minidoc -tst code.rst.py -dst ./images

# screen recording
root@# minidoc -tst code.rst.py -dst ./images -still false

# on current dir,screen shot
root@# minidoc -still true

# on current dir,screen recording
root@# minidoc -still falsefrom docstring only one level(experimental,no recursive support, since only one level AST walked)root@# minidoc_from_docstring -proj dtableFeaturesauto generate .rst doc from .tst.pyauto exec test-code in .tst.pyauto record the screen and save as .svgRestrictcurrently only support python3TODOjavascriptluatclshReferencestermtosvgelistefdirestring
Package: minidom-ext
Minidom ExtensionShort presentationFunctions to improve xml.dom.minidom [1] tools in Python.class DOMCompanion :definit(self, doc = None) : to build a DOM DocumentCompaniondef parse(self, file, validate = False): to load an XML filedef getElementsByTagName(self, name) : DOM getElementsByTagNamedef getElementById(self, id) : to retrieve an element by its IDdef getAttributsByIdref(self, id) : to retrieve attributs that refers to an IDdef toLighter(self, del_spaces = True, del_comments = True, del_pi = True) : to suppress text nodes (with only separators), processing instructions and/or commentsdef validate(self) : to validate the XML according its DTD (enrich it too)Exemplefrom minidom_ext.DOMCompanion import DOMCompanion

cine = DOMCompanion()
cine.parse("semaine10.xml", True)
print(cine.doc.toxml())
print(cine.getElementById('Ka'))
print(cine.toLighter().toxml())How to install ?pip install minidom-extLinks[1] Python 'minidom' :https://docs.python.org/3/library/xml.dom.minidom.html[2] DOM using Python :https://docs.python.org/3/library/xml.dom.html(c) E. Desmontils, University of Nantes, november 2020