Skip to main content

XML serialization format for the `masterpiece` framework

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

masterpiece_xmlformat-1.0.9.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

masterpiece_xmlformat-1.0.9-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file masterpiece_xmlformat-1.0.9.tar.gz.

File metadata

  • Download URL: masterpiece_xmlformat-1.0.9.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for masterpiece_xmlformat-1.0.9.tar.gz
Algorithm Hash digest
SHA256 1bb98e75c0fd9b89a887f6e9b24ea3fd0a0c602cae97f7ef0e471656f1c8d918
MD5 5adefd56d1e545005b9a45665bd1e1bd
BLAKE2b-256 f443b94805bea3454c2d79702e211c60040a527451f324c22469a5c0cb3253d8

See more details on using hashes here.

File details

Details for the file masterpiece_xmlformat-1.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for masterpiece_xmlformat-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f93740a4d084ef08c809d347e8c457d45e6575fd3299629cf277e4194c872979
MD5 63ab133c2c19069200c4569f9b53e083
BLAKE2b-256 a4abf8017f73ae9feabea259592be2733c72473a3cb970d48eba1b9f2ec499be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page