Metadata-Version: 2.1
Name: pyrodantic
Version: 0.0.1
Summary: Pydantic models for Firestore
Home-page: https://github.com/mgwilliams/pyrodantic
Author: Matthew Williams
Author-email: mgwilliams@gmail.com
License: UNKNOWN
Description: # Pyrodantic
        
        Pydantic models for Google Firestore.
        
        
        ```
        from google.cloud.firestore import Client
        from pyrodantic.document import Document
        
        
        firestore_client = Client()
        
        
        class TestDocument(Document):
            document_id: FirestoreID = None
            test_string: str
            test_int: int
            test_default: str = 'default'
            class Firestore:
                collection = 'test-collection'
        
        
        doc = TestDocument(firestore_client, test_string='foo', test_int=1)
        # TestDocument(document_id=None, test_string='foo', test_int=1, test_default='default')
        
        doc.create()
        # TestDocument(document_id='4f7be295accc473aa87844ec6f98443c', test_string='foo', test_int=1, test_default='default')
        
        doc = TestDocument.get('4f7be295accc473aa87844ec6f98443c', firestore_client=firestore_client)
        # TestDocument(document_id='4f7be295accc473aa87844ec6f98443c', test_string='foo', test_int=1, test_default='default')
        
        doc.delete()
        
        doc = TestDocument.get('4f7be295accc473aa87844ec6f98443c', firestore_client=firestore_client)
        # doc == None
        ```
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
