Metadata-Version: 2.1
Name: odsparsator
Version: 1.3.0
Summary: Generate a json file from an OpenDocument Format .ods file
Home-page: https://github.com/jdum/odsparsator
Author: Jérôme Dumonteil
Author-email: jerome.dumonteil@gmail.com
License: MIT
Description: .. _odsparsator-an-ods-parser:
        
        
        odsparsator, an .ods parser.
        ============================
        
        Generate a json file from an OpenDocument Format .ods file.
        
        When used as a script, odsparsator parses an .ods file and generates a json
        file using the odfdo library.
        
        When used as a library, odsparsator parses an .ods file and returns a python
        structure.
        
        The resulting data follows the format of the reverse odsgenerator.py script,
        see https://github.com/jdum/odsgenerator
        
        
        installation
        ------------
        
        .. code-block:: bash
        
            $ pip install odsparsator
        
        
        usage
        -----
        
        ::
        
           odsparsator [-h] [--version] [options] input_file output_file
        
        
        arguments
        ---------
        
        ``input_file``: input file, a .ods file.
        
        ``output_file``: output file, json file generated from input.
        
        Use ``odsparsator --help`` for more details about options.
        
        
        sample
        ------
        
        .. code-block:: bash
        
            $ odsparsator --minimal sample.ods sample_minimal.json
        
        
        The result:
        
        .. code-block:: python
        
            {
                "body": [
                    {
                        "name": "first tab",
                        "table": [
                            ["a", "b", "c"],
                            [10, 20, 30]
                        ]
                    }
                ]
            }
        
        
        Without the --minimal option:
        
        .. code-block:: bash
        
            $ odsparsator sample.ods sample_with_styles.json
        
        
        The result:
        
        .. code-block:: python
        
            {
            "body": [
                {
                    "name": "first tab",
                    "table": [
                        {
                            "row": [
                                {
                                    "value": "a",
                                    "style": "bold_center_bg_gray_grid_06pt"
                                },
                                {
                                    "value": "b",
                                    "style": "bold_center_bg_gray_grid_06pt"
            ...
        
        
        from python code
        ----------------
        
        .. code-block:: python
        
            import odsparsator
            content = odsparsator.ods_to_python("sample1.ods")
        
        
        documentation
        -------------
        
        See in the doc folder:
        
        ``html/odsparsator.html``
        
        
        license
        -------
        
        This project is licensed under the MIT License (see the
        ``LICENSE`` file for details).
        
Keywords: text json openDocument ODF ods parser
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: OS Independent
Classifier: Topic :: Text Processing
Requires-Python: >=3.6
Description-Content-Type: text/x-rst
