Skip to main content

XML serialization format for the `masterpiece` framework

Project description

XML Serialization Format

Plugs-in XML support to masterpiece applications.

Note: This is an alpha release; do not use it for anything critical at this stage.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: masterpiece_xmlformat-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 930f771fcef751af14dd39d4ae1ff0776a3bdd423beb66446e34996be4407373
MD5 eac29dcb7ba08a53fba98d2c9679607e
BLAKE2b-256 f9952feb6409be6543133c8434b5d4ed32c29c33a536d8420a39e5ba11c9bda3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for masterpiece_xmlformat-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 be01e4b2fb73ac510de1fecc4e1b7f7519e291052c7906e573602845fbdab945
MD5 5cc68c0cb9df3ac47ff27b69d2071a71
BLAKE2b-256 f9bb267ef74bb34e046c7b021f3e9083b4a372c07d1981b44a9d7e1eb686c754

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