Skip to main content

A simple Prismic client

Project description

pyprisic: a simple python Prismic client

This is a very simple Prismic python client.

It uses the REST API from prismic.

Right now it only supports public Prismic repositories.

Installing

pip install pyprismic

Using it

from pyprisic import Client

c = Client("your-repo")

c.query(predicate="""[[at(document.type, "faq")]]""")

Querying Prismic

For querying prismic, you only need to follow the predicates system that they have in place.

Check the official documentation.

NOTE: it is important to use the triple quote so you can properly use the " for the strings.

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

pyprismic-0.1.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyprismic-0.1.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file pyprismic-0.1.1.tar.gz.

File metadata

  • Download URL: pyprismic-0.1.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.16.2-arch1-1

File hashes

Hashes for pyprismic-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c675eae39b8771bdb20634a3164b8de50e4a5f3946cf770d69fc8266fff3b2ba
MD5 5b9f5c403fe264240223c31c04d1af7c
BLAKE2b-256 b87b18cdf788ae7546f48bd0bef056add58d0407fffb03599363f9c1ca2ca07f

See more details on using hashes here.

File details

Details for the file pyprismic-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyprismic-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.16.2-arch1-1

File hashes

Hashes for pyprismic-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83e3b8d8b23f406b0e6b4ae2455c5dd3e59c8c6c429ad8a0628b5a71c787ebd8
MD5 6176a92773199e83c250ae17d0301e5e
BLAKE2b-256 ebb0c1db3008bff38187fa621694f09a2c06af9ce2a9bd8b35a8b2137c4c252f

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