Enthusiast Source Sanity CMS
This Enthusiast plugin enables the import of document data from Sanity CMS.
Usage
Assumption: schema type looks like this:
export default {
name: "blogPost",
type: "document",
title: "Blog Post",
fields: [
{ name: "title", type: "string", title: "Title" },
{ name: "content", type: "array", title: "Content", of: [{ type: "block" }] },
],
};
Fetch all blog posts using below commands:
from source import SanityCMSDocumentSource
s = SanityCMSDocumentSource(1, {'project_id': 'your-project-id-here', 'dataset': 'production', 'schema_type': 'blogPost', 'title_field_name': 'title', 'content_field_name': 'content'})
s.fetch()
Metadata
Release files for enthusiast-source-sanitycms 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| enthusiast_source_sanitycms-1.4.0.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| enthusiast_source_sanitycms-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / enthusiast_source_sanitycms-1.4.0.tar.gz
| Download URL | enthusiast_source_sanitycms-1.4.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83ae274d86ce7357ae57203d82911628be40e7306095f10a3d6cd1ef380cbad5
|
|
BLAKE2b-256 checksum How to use checksums |
e45b653d546480eb2caa8174ee4d546cd0c554b0ed77c11c18004b92e6f9a4aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1015-azure
|
Release files / enthusiast_source_sanitycms-1.4.0-py3-none-any.whl
| Download URL | enthusiast_source_sanitycms-1.4.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e84de4f9f07dcce90c745d8ff1e6cd4857b70a03351d0965578603e4402b1f7b
|
|
BLAKE2b-256 checksum How to use checksums |
9c652ba0c41b123042d916f881ffa24955da079b7923240078fddf47c0948a03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1015-azure
|