Skip to main content

XML Serialization Format

Adds support for XML serialization in masterpiece applications, enabling configuration through XML files.

Usage

To install:

.. code-block:: bash

pip install masterpiece-xmlformat

Once installed, you can pass the --init and --application_serialization_format startup arguments to create a default set of configuration files. For example, to create XML configuration files for the 'examples/myapp.py' application:

.. code-block:: bash

python examples/myapp.py --init --application_serialization_format XMLFormat

Upon successful execution, there should be a file located at ~/.myapp/config/MyApp.xml with the following content:

.. code-block:: xml

0.0 yellow

To use XML as the default format, add the following line of code to your application:

.. code-block:: python

Application.serialization_format = "XMLFormat"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for masterpiece-xmlformat 1.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for masterpiece-xmlformat 1.0.9
File Size Uploaded
masterpiece_xmlformat-1.0.9.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for masterpiece-xmlformat 1.0.9
File Interpreter ABI Platform
masterpiece_xmlformat-1.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / masterpiece_xmlformat-1.0.9.tar.gz

Download URL masterpiece_xmlformat-1.0.9.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1bb98e75c0fd9b89a887f6e9b24ea3fd0a0c602cae97f7ef0e471656f1c8d918
BLAKE2b-256 checksum
How to use checksums
f443b94805bea3454c2d79702e211c60040a527451f324c22469a5c0cb3253d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release files / masterpiece_xmlformat-1.0.9-py3-none-any.whl

Download URL masterpiece_xmlformat-1.0.9-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f93740a4d084ef08c809d347e8c457d45e6575fd3299629cf277e4194c872979
BLAKE2b-256 checksum
How to use checksums
a4abf8017f73ae9feabea259592be2733c72473a3cb970d48eba1b9f2ec499be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page