Metadata-Version: 1.1
Name: prosemirror-python
Version: 0.0.3
Summary: Python translation of prosemirror parts needed to modify a document in Python
Home-page: https://www.github.org/fiduswriter/prosemirror-python
Author: Johannes Wilm
Author-email: johannes@fiduswriter.org
License: AGPL License
Description: =====
        Prosemirror-python
        =====
        
        This is an unofficial and not production ready package. Contributions and improvements are welcome.
        
        This package does not attempt at importing all of Prosemirror in Python. It is merely trying to use those parts of
        prosemirror-model and prosemirror-transform that are needed for serverside operations.
        
        
        **This package has not yet been tested!**
        
        How to use
        -----------
        
        1. Install with `pip install prosemirror`
        
        2. In your python code, import the two included functions with:
        
        
            from prosemirror import create_doc, transform_doc
        
        Then create a Document object:
        
            doc = create_doc(doc_data, schema_spec)
        
        
        Thereafter create an updated Document object with the given steps applied:
        
            updated_doc = transform_doc(steps_data, doc)
        
        To get the JSON version of a Document object, simply use the builtin toJSON method:
        
            updated_doc.toJSON()
        
        
        License questions
        -----------
        Q. What license is this under?
        
        A. AGPL-3, check the LICENSE file.
        
        
        Q. I have spent the past month building a webbased text editing app. I am in stealth
        mode as my editor is really unique and I'll be the next IT Billionaire once I
        release it. Now I would like to use this library, but the AGPL requires me to share
        changes I make with others! It's not fair that you are standing between me and my fortune!
        
        A. Right. If it is worth that much to you, you can try to pay me so that I'll put it under
        a more liberal license. Secondly, you could suggest taking over maintainership of this
        library and promise extra features to get me to change my mind. Thirdly - you could just
        start from scratch as long as it's not much code, but then we both lose out of any fixes
        either one of us makes.
        
        We all need to live of something, I give a lot of code away for free
        and the only requirement there is is that you contribute any changes you make back. Not
        that expensive, if you think about it.
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
