Saravanan666/pypi-org huggingface dataset:
Package: xmindparser
Documentationxmindparser is a tool to help you convert xmind file to programmable data type, e.g. json, xml.Detail usage:https://github.com/tobyqin/xmindparserChange Log1.0.9Support and test with Python 3.91.0.8Handle empty title name for xmind zen in some cases.1.0.6Keep empty topic title as null but not “[Blank]”1.0.5Support xmind zen file type.1.0.4Support parse label feature.1.0.2Rename config key names.1.0.1Support parse xmind to xml file type.1.0.0Support parse xmind to dict data type with Python.Support parse xmind to json file type.
Package: xmind-sdk
XMind SDK for python=====**XMind SDK for python** to help Python developers to easily work with XMind files and build XMind extensions.Install XMind SDK for python---Clone the repository to a local working directory> `git clone https://github.com/xmindltd/xmind-sdk-python.git`Now there will be a directory named `xmind-sdk-python` under the current directory. Change to the directory `xmind-sdk-python` and install **XMind SDK for python**.> `python setup.py install`*It is highly recommended to install __XMind SDK for python__ under an isolated python environment using [virtualenv](https://pypi.python.org/pypi/virtualenv)*Usage----Open an existing XMind file or create a new XMind file and place it into a given path> `import xmind`>> `workbook = xmind.load(/path/to/file/)  # Requires '.xmind' extension`Save XMind file to a path.If the path is not given then the API will save to the path set in the workbook> `xmind.save(workbook)`or:> `xmind.save(workbook, /save/file/to/path)`UML diagram----Diagram![click](https://raw.githubusercontent.com/andrii-z4i/xmind-sdk-python/master/docs/Xmind-Sdk.png "Diagram")Tests---From root directory run> `python test.py`Get coverage report---Install coverage package> `pip install coverage`Run tests under coverage> `coverage run --source=xmind.core test.py`Check coverage report> `coverage report`or> `coverage html -d coverage_html`to have rich visualisationLICENSE---The MIT License (MIT)Copyright (c) 2013 XMind, LtdPermission is hereby granted, free of charge, to any person obtaining a copy ofthis software and associated documentation files (the "Software"), to deal inthe Software without restriction, including without limitation the rights touse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies ofthe 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 allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESSFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS ORCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHERIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: xmind-sdk-python-upload-file
XMind SDK for python=====**XMind SDK for python** to help Python developers to easily work with XMind files and build XMind extensions.Install XMind SDK for python---Clone the repository to a local working directory> `git clone https://github.com/xmindltd/xmind-sdk-python.git`Now there will be a directory named `xmind-sdk-python` under the current directory. Change to the directory `xmind-sdk-python` and install **XMind SDK for python**.> `python setup.py install`*It is highly recommended to install __XMind SDK for python__ under an isolated python environment using [virtualenv](https://pypi.python.org/pypi/virtualenv)*Usage----Open an existing XMind file or create a new XMind file and place it into a given path> `import xmind`>> `workbook = xmind.load(/path/to/file/)  # Requires '.xmind' extension`> `workbook = xmind.load(file_object)` # support '.xmind' file uploadsSave XMind file to a path.If the path is not given then the API will save to the path set in the workbook> `xmind.save(workbook)`or:> `xmind.save(workbook, /save/file/to/path)`Tests---From root directory run> `python test.py`Get coverage report---Install coverage package> `pip install coverage`Run tests under coverage> `coverage run --source=xmind.core test.py`Check coverage report> `coverage report`or> `coverage html -d coverage_html`to have rich visualisationLICENSE---The MIT License (MIT)Copyright (c) 2013 XMind, LtdPermission is hereby granted, free of charge, to any person obtaining a copy ofthis software and associated documentation files (the "Software"), to deal inthe Software without restriction, including without limitation the rights touse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies ofthe 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 allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESSFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS ORCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHERIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: xmip
Science is not immune to racism. Academia is an elitist system with numerous gatekeepers that has mostly allowed a very limited spectrum of people to pursue a career. I believe we need to change that.Open source development and reproducible science are a great way to democratize the means for scientific analysis.But you can't git clone software if you are being murdered by the police for being Black!Free access to software and hollow diversity statements are hardly enough to crush the systemic and institutionalized racism in our society and academia.If you are using this package, I ask you to go beyond just speaking out and donateheretoData for Black LivesandBlack Lives Matter Action.I explicitly welcome suggestions regarding the wording of this statement and for additional organizations to support. Please raise anissuefor suggestions.xmip (formerly cmip6_preprocessing)This package facilitates the cleaning, organization and interactive analysis of Model Intercomparison Projects (MIPs) within thePangeosoftware stack.Are you interested in CMIP6 data, but find that is is not quiteanalysis ready? Do you just want to run a simple (or complicated) analysis on various models and end up having to write logic for each seperate case, because various datasets still require fixes to names, coordinates, etc.? Then this package is for you.Developed during thecmip6-hackathonthis package provides utility functions that play nicely withintake-esm.We currently support the following functionsPreprocessing CMIP6 data (Please check out thetutorialfor some examples using thepangeo cloud). The preprocessig includes:
a. Fix inconsistent naming of dimensions and coordinates
b. Fix inconsistent values,shape and dataset location of coordinates
c. Homogenize longitude conventions
d. Fix inconsistent unitsCreating large scale ocean basin masks for arbitrary model outputThe following issues are under development:Reconstruct/find grid metricsArrange different variables on their respective staggered grid, so they can work seamlessly withxgcmCheck out this recent Earthcubenotebook(cite via doi:10.1002/essoar.10504241.1) for a high level demo ofxmipandxgcm.InstallationInstallxmipvia pip:pip install xmipor conda:conda install -c conda-forge xmipTo install the newest main from github you can use pip aswell:pip install git+pip install git+https://github.com/jbusecke/xmip.git
Package: xmiparser
An API for files in the XML formatXMIdefined byOMGto store UML.This is the standalone version of the xmiparser. It was formerly part of
theArchGenXMLcode generator.ContentsChangelog1.5 (2010-09-04)1.4 (2009-03-29)DownloadChangelog1.5 (2010-09-04)Re-added sample .zargo file from the past, the tests run again.
[moldy]Replaced buggy odict implementation by the ordereddict implementation
available in Python 2.7.
[moldy]Removed DeprecationWarning about the sets module.
[vincentfretin]By default search in current directory for profile.
[jensens]1.4 (2009-03-29)Search profiles in directories configured with ArgoUML (read the ~/.argouml/argo.user.properties file)
You don’t need to specify the -p option with archgenxml anymore.
[vincentfretin]Download
Package: xmipp-metadata
Xmipp Metadata HandlerThis package implements a Xmipp Metadata handling functionality with image binary accession in Python.Included functionalitiesXmippMetadataclass: Reading and writing of Xmipp Metadata files (.xmd)ImageHandlerclass: Reading and writing of image binaries stored in the metadata. It support the following formats:MRC files (reading and writing) for stacks and volumes (.mrcs and .mrc)Spider files (reading and writing) for stacks and volumes (.stk and .vol)EM files (reading and writing) for stack and images (.ems and .em)
Package: xmipy
xmipyxmipyis an extension tobmipyincluding an implementation of the abstract methods.
The extended interface is required to couple certain hydrological kernels, particularly MODFLOW 6. Currently it is a joint development of the USGS and Deltares. Theimod_coupleruses it, for example, to couple Modflow 6 and MetaSWAP.xmipycan be installed by runningpip install xmipyContributingIn order to develop onxmipylocally, execute the following line inside your virtual environmentpipinstall-e".[tests, lint, docs]"
Package: xmi-reader
NETDATA, AWSTAPE and HET File Python LibraryOpen and extract (unload) XMI/AWS/HET mainframe files.InstallationYou can install thexmilibrary from PyPI using:python3 -m pip install xmi-readerHow to UseThe most simple way to use this library is to import this module and usexmi.open_file()to open an XMI, AWS, or HET file::importxmixmi_obj=xmi.open_file("/path/to/file.xmi")het_obj=xmi.open_file("/path/to/file.het")aws_obj=xmi.open_file("/path/to/file.aws")To list all datasets and dataset members::forfinhet_obj.get_files():ifhet_obj.is_pds(f):forminhet_obj.get_members(f):print("{}({})".format(f,m))else:print(f)Print JSON metatdata::print(xmi_obj.get_json())print(het_obj.get_json(text=True))# Adds plaintext files to json outputprint(aws_obj.get_json(indent=6))# Increases the json indentSilently extract all files/folders to/tmp/xmi_files/::aws_obj.set_output_folder("/tmp/xmi_files/")aws_obj.set_quiet(True)aws_obj.extract_all()Print detailed file information::xmi_obj.print_details()xmi_obj.print_xmit()# Same output as previous, print_xmit() is an alias to print_details()het_obj.print_tape()# print_tape() is an alias to print_details()aws_obj.print_tape(human=True)# Converts size to human readablePrint message:ifxmi_obj.has_message():print(xmi_obj.get_message())# or justprint(xmi_obj.get_message())# Prints 'None' if no messageIf you you're having problems with the library or want to see whats happening
behind the scenes you can enable debugging:importloggingimportxmixmi_obj=xmi.XMIT(filename="/path/to/file.xmi",loglevel=logging.DEBUG)xmi_obj.open()More InformationDocumentationInstallationAPIXMI File formatAWS/HET File formatIEBCOPY File formatIssuesPull requests
Package: xmisc
Xiaobei’s miscellaneous classes and functionsExample: “Hello World” in Xmiscfromxmisc.graphicsimporthelloworldhelloworld.demo()Run this script or paste it into a Python console.Download and InstallGitHub <https://github.com/xiaobeizhao/xmiscpy>PyPI <https://pypi.python.org/pypi/xmisc>Dependenciesnose <https://pypi.python.org/pypi/nose>setuptools>=33.1.1 <https://pypi.python.org/pypi/setuptools/33.1.1>numpy>=1.11.3 <https://pypi.python.org/pypi/numpy/1.11.3>pandas>=0.19.2 <https://pypi.python.org/pypi/pandas/0.19.2>tabulate>=0.7.5 <https://pypi.python.org/pypi/tabulate/0.7.5>matplotlib>=2.0.0 <https://pypi.python.org/pypi/matplotlib/2.0.0>LicenseCode and documentation are available according to the GNU LGPL License.
Package: xmitgcm
xmitgcm is a python package for readingMITgcmbinary MDS files intoxarraydata structures. By storing data indaskarrays, xmitgcm enables
parallel,out-of-coreanalysis of MITgcm output data.LinksHTML documentation:https://xmitgcm.readthedocs.orgIssue tracker:https://github.com/MITgcm/xmitgcm/issuesSource code:https://github.com/MITgcm/xmitgcmInstallationRequirementsxmitgcm is compatible with python >=3.7. It requiresxarray(>= version 0.11.0) anddask(>= version 1.0).
These packages are most reliably installed via thecondaenvironment management
system, which is part of theAnacondapython distribution. Assuming you have
conda available on your system, the dependencies can be installed with the
command:conda install xarray daskIf you are using earlier versions of these packages, you should update before
installing xmitgcm.Installation via pipIf you just want to use xmitgcm, the easiest way is to install via pip:pip install xmitgcmThis will automatically install the latest release frompypi.Installation from githubxmitgcm is under active development. To obtain the latest development version,
you may clone thesource repositoryand install it:git clone https://github.com/MITgcm/xmitgcm.git
cd xmitgcm
python setup.py installUsers are encouraged toforkxmitgcm and submitissuesandpull requests.Quick StartFirst make sure you understand what anxarrayDataset object is. Then find
some MITgcm MDS data. If you don’t have any data of your own, you can download
the xmitgcmtest repositoriesTo download the some test data, run the shell commands:$ curl -L -J -O https://ndownloader.figshare.com/files/6494718
$ tar -xvzf global_oce_latlon.tar.gzThis will create a directory calledglobal_oce_latlonwhich we will use
for the rest of these examples. If you have your own data, replace this with
the path to your mitgcm files.To open MITgcm MDS data as an xarray.Dataset, do the following in python:from xmitgcm import open_mdsdataset
data_dir = './global_oce_latlon'
ds = open_mdsdataset(data_dir)data_dir, should be the path (absolute or relative) to an
MITgcm run directory. xmitgcm will automatically scan this directory and
try to determine the file prefixes and iteration numbers to read. In some
configurations, theopen_mdsdatasetfunction may work without further
keyword arguments. In most cases, you will have to specify further details.Consult theonline documentationfor
more details.
Package: xml2data
xml2data is a library for converting xml into native data, according to css-selector like template.RequirementsPython 2.7Examplethe following convertsa webpagecontaining some app information:import xml2data
template = """{
  'apps': [div#main-container div.section:first-child div.goods-container div.goods @ {
      'name': div.top span.name,
      'url': div.top span.name a $[href],
      'description': div.goods div.bottom
  }],
  'author': div#main-container div.section div.text p a:first-child $text,
  'twitter': div#main-container div.section div.text p a:nth-child(2) $[href]
}"""
data = xml2data.urlload('http://hp.vector.co.jp/authors/VA038583/', template)results:data == {
  'apps': [{
      'name': 'copipex',
      'url': './down/copipex023.zip',
      'description': '<コピー⇒貼付け> が <マウスで範囲選択⇒クリック> で可能に'
    }, {
      'name': 'gummi',
      'url': './gummi.html',
      'description': 'ウィンドウの任意の部分を別窓に表示。操作も可能'
    }, {
      'name': 'PAWSE',
      'url': './down/pawse032.zip',
      'description': 'Pauseキーで、アプリケーションの一時停止、実行速度の制限が可能に'
    }, {
      'name': 'onAir',
      'url': './onair.html',
      'description': '現在放送中のテレビ番組のタイトルを一覧表示'
    }],
  'author': 'slay',
  'twitter': 'http://twitter.com/slaypni'
}
Package: xml2ddl
XML to DDL is a set of Python programs that converts an XML representation of a database into a set of SQL (or DDL commands - Data Definition Language) commands.
Also, you can download the XML metadata directly from your existing database.
Other tools exist to examine the difference between two XML schemas and output a sequence of SQL statements
to change from one to the other (normally via ALTER statements).
There is also a tool to create HTML documentation from the XML.
XML to DDL supports PostgreSQL, MySQL, Oracle and Firebird databases.
Package: xml2dictionary
xml2dictionaryxml2dictionary is a package that converts any xml to json (dict)RequirementsPython 3.8PipenvInstallationpipinstallxml2dictionaryUsageExamplefromxml2dictionaryimportxml2dictionary
withopen('tests/sample.xml','r')asf:m=f.read()result=xml2dictionary(m)OrderedDict([('breakfast_menu',OrderedDict([('food',[OrderedDict([('name','Belgian Waffles'),('price','$5.95'),('description','Two of our famous Belgian Waffles with plenty of real maple syrup'),('calories','650')]),OrderedDict([('name','Strawberry Belgian Waffles'),('price','$7.95'),('description','Light Belgian waffles covered with strawberries and whipped cream'),('calories','900')]),OrderedDict([('name','Berry-Berry Belgian Waffles'),('price','$8.95'),('description','Light Belgian waffles covered with an assortment of fresh berries and whipped cream'),('calories','900')]),OrderedDict([('name','French Toast'),('price','$4.50'),('description','Thick slices made from our homemade sourdough bread'),('calories','600')]),OrderedDict([('name','Homestyle Breakfast'),('price','$6.95'),('description','Two eggs, bacon or sausage, toast, and our ever-popular hash browns'),('calories','950')])])]))])Functionsparse-parsesxmlstringtodictionary
clear_signs-clearsparsedxmlfrompropswith`sign`,shifts`shift`,escapes`scape`json_to_xml-convertsjsontoxml
xml2json-usesparse&clear_signs
Package: xml2dictnitrate
# XML2DictXML2Dict is an open source python library, which used for converting python dict and XML type.XML2Dict is licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)XML2Dict is inspired from Chen Zheng’s [xml2dict](http://github.com/nkchenz/xml2dict/tree)## ExamplePlease see source test case## AttentionXML2Dict do not test for all cases now, if you find any bug please issue an report.## Thanks
Fixed parse error when tag has empty content [snwilhelm](https://gist.github.com/1209773)Fix MANIFEST.in syntax to avoid creating broken distributions; bump version to 0.2.2 [slinkp](https://github.com/mcspring/XML2Dict/pull/2)## AboutXML2Dict is written by [Sprint Mc](https://github.com/mcspring).And you can follow me on [Twitter](http://twitter.com/mcspring)!
Package: xml2pytorch
xml2pytorchUsing xml to define pytorch neural networksWhat can it DoWith xml2pytorch, you can easily define neural networks in xml, and then declare them in pytorch.RNN and LSTM are not supported currently.InstallationEnvironmentOS independent. Python3. (Not tested on Python2, but it should work.)Install requirementstorch>=0.4.1
numpy>=1.15.1Installing by pip3pip3 install xml2pytorchQuick StartHow to declare the CNN defined by a xml fileimport torch
import xml2pytorch as xm

# declare the net defined in .xml
net = xm.convertXML(xml_filename)    

# input a random tensor
x = torch.randn(1, 3, 32, 32)
y = net(x)
print(y)How to define a simple CNN in xml<graph>
	<net>
		<layer>
			<net_style>Conv2d</net_style>
			<in_channels>3</in_channels>
			<out_channels>6</out_channels>
			<kernel_size>5</kernel_size>
		</layer>	
		<layer>
			<net_style>ELU</net_style>
		</layer>	
		<layer>
			<net_style>MaxPool2d</net_style>
			<kernel_size>2</kernel_size>
			<stride>2</stride>
			<activation>logsigmoid</activation>
		</layer>
		<layer>
			<net_style>Conv2d</net_style>
			<in_channels>6</in_channels>
			<out_channels>16</out_channels>
			<kernel_size>5</kernel_size>
			<activation>relu</activation>
		</layer>	
		<layer>
			<net_style>MaxPool2d</net_style>
			<kernel_size>2</kernel_size>
			<stride>2</stride>
			<activation>relu</activation>
		</layer>
		<layer>
			<net_style>reshape</net_style>
			<dimensions>[-1, 16*5*5]</dimensions>
		</layer>
		<layer>
			<net_style>Linear</net_style>
			<in_features>400</in_features> 
			<out_features>120</out_features>
			<activation>tanh</activation>
		</layer>
		<layer>
			<net_style>Linear</net_style>
			<in_features>120</in_features> 
			<out_features>84</out_features>
			<activation>sigmoid</activation>
		</layer>
		<layer>
			<net_style>Linear</net_style>
			<in_features>84</in_features>
			<out_features>10</out_features>
			<activation>softmax</activation>
		</layer>
	</net>
</graph>
Package: xmlable
XMLableAn easy xml/xsd generator and parser for python dataclasses!@xmlify@dataclassclassConfig:date:strnumber_of_cores:intcodes:list[int]show_logs:boolwrite_xsd(THIS_DIR/"config.xsd",Config)write_xml_template(THIS_DIR/"config_xml_template.xml",Config)original=Config(date="31/02/2023",number_of_cores=48,codes=[101,345,42,67],show_logs=False,)write_xml_value(THIS_DIR/"config_xml_example.xml",original)read_config:Config=parse_file(Config,THIS_DIR/"config_xml_example.xml")assertread_config==originalSee more inexamplesCapabilitiesTypesCurrently supports the types:int,float,str,dict,tuple,set,list,None# as well as unions!int|float|NoneAnd dataclasses that have been@xmlify-ed.These can be combined for types such as:@xmlify@dataclassclassComplex:a:dict[tuple[int,str],list[tuple[dict[int,float|str],set[bool]]]]c1=Complex(a={(3,"hello"):[({3:0.4},{True,False}),({2:"str"},{False})]})Custom ClassesThe xmlify interface can be implemented by adding methods described inxmlifyOnce the classis_xmlifiedit can be used just as if generated by@xmlifyfromxmlable._xobjectimportXObjectfromxmlable._userimportIXmlifyfromxmlable._manualimportmanual_xmlify@manual_xmlifyclassMyClass(IXmlify):defget_xobject()->XObject:classXMyClass(XObject):defxsd_out(self,name:str,attribs:dict[str,str]={},add_ns:dict[str,str]={})->_Element:passdefxml_temp(self,name:str)->_Element:passdefxml_out(self,name:str,val:Any,ctx:XErrorCtx)->_Element:passdefxml_in(self,obj:ObjectifiedElement,ctx:XErrorCtx)->Any:passreturnXMyClass()# must be an instance of XMyClass, not the classdefxsd_forward(add_ns:dict[str,str])->_Element:passdefxsd_dependencies()->set[type]:return{MyClass}See theuser define examplefor implementation.LimitationsUnions of Generic TypesGenerating xsd works, parsing works, however generating an xml template can fail
if they type is not determinable at runtime.Values do not have type arguments carried with themMany types are indistinguishable in pythonFor example:@xmlify@dataclassclassGenericUnion:u:dict[int,float]|dict[int,str]GenericUnion(u={})# which variant in the xml should {} have??named_In this case an error is raisedTo Developgitclone# this project# Can use hatch to build, runhatchruncheck:test# run tests/hatchruncheck:lint# check formattinghatchruncheck:typecheck# mypy for src/ and all exampleshatchrunauto:examplegen# regenerate the example codehatchrunauto:lint# format code# Alternatively can just create a normal envpython3.11-mvenv.venvsource.venv/bin/activate# activate virtual environmentpipinstall-e.# install this project in the venvpipinstall-e.[dev]# install optional dev dependencies (mypy, black and pytest)black.# to reformatmypy# type checkpytest# to run testsHatchis used for build, test and pypi publish.To ImproveFuzzing(As a fun weekend project) generate arbitrary python data types with values, and dataclasses.
Then@xmlifyall and validate as in the current testsEtree vs ObjectifyCurrently using objectify for parsing and etree for construction, I want to move parsing to useetreepreviously used objectify for quick prototype.