Welcome to Prismic’s documentation!¶
Python development kit for prismic.io
Example of use:
>>> import prismic
>>> api = prismic.get("http://lesbonneschoses.prismic.io/api", "")
>>> form = api.form("everything")
>>> # Set the ref and the query to get all documents of type "product"
>>> form.ref(api.get_master()).query("""[[:d = any(document.type, ["product"])]]""")
>>> documents = form.submit().documents
>>> documents[0].get_text("product.name")
u'Speculoos Macaron'
Prismic API:
To activate debugging:
>>> import logging
>>> logging.basicConfig(level=logging.DEBUG)