Skip to main content

XML serialization format for the `masterpiece` framework

Project description

XML Serialization Format

This project implements the masterpiece_xmlformat Python package to add XML support to masterpiece applications.

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

mkdir -p ~/.myhome/config python examples/myhome.py --init --application_serialization_format XMLFormat

Upon successful execution, there should be a file located at ~/.myhome/config/MyHome.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.3.tar.gz (5.2 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.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: masterpiece_xmlformat-1.0.3.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for masterpiece_xmlformat-1.0.3.tar.gz
Algorithm Hash digest
SHA256 02e403914ac54a3e6d7d6471941beb95df3bc914787df2a0009d72096107826e
MD5 04d5568f260aaf84f460b14ec3ea2cfd
BLAKE2b-256 c2006b36e494762e4f35e0753ec72c1982048778e3399c09fbeebecbcddf5b5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for masterpiece_xmlformat-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6a1baf217eb23f247a8f92c82fd74c2181ed08b327552d2d8b3af64c57388bda
MD5 2bc84e7190fe596d63bfadd050e1c98a
BLAKE2b-256 9538954c8d8fb0ddd9853d4a92b6e8a933ca66f67624c11d6c4d2c2a8b95d822

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