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.4.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.4-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for masterpiece_xmlformat-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5e0b0b82c04f349c6566f557096212ab66b51966758b2e58bf066e08dab9f80a
MD5 acb94db8c106e8e0eba6870f14fa6606
BLAKE2b-256 8653c98094d0807a65b7005e1c905b4996d89de04934b78d9217cba3b562595d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for masterpiece_xmlformat-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 180137d5d9d5fdc82ce63a37fc2f04b6d56e38166cc4aaa8c47addf6b76dd54d
MD5 fc66aa761e6a4ac18ba1e6156b3a76a7
BLAKE2b-256 219ec99077d971f2d7918d03197a7f01efb45269ee176389836760d23e314895

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