id
type
5 (blog/news article)
status
21 (imported old-v2, waiting for another import)
review version
0
cleanup version
0
pending deletion
0 (-)
created at
2025-10-25 17:27:59
updated at
2025-10-25 17:28:00
url
https://markhaa.se/posts/couchdb-views-in-python/
url length
49
url crc
4934
url crc32
932057926
location type
1 (url matches target location, page_location is empty)
canonical status
10 (verified canonical url)
canonical page id
domain id
domain tld
752
domain parts
0
originating warc id
-
originating url
https://data.commoncrawl.org/crawl-data/CC-MAIN-2025-33/segments/1754151280504.46/warc/CC-MAIN-20250811162052-20250811192052-00177.warc.gz
source type
11 (CommonCrawl)
server ip
Publication date
2025-08-11 17:19:49
Fetch attempts
0
Original html size
24784
Normalized and saved size
21664
title
CouchDB Views in Python
excerpt
content
I’ve been interested in CouchDB lately, and since I’m primarily working in Python, I naturally want to use the two together. There’s a pretty nice module called couchdb-python that makes it easy to get connected, create, edit, and delete documents, but the paucity of information on how to write CouchDB views in Python is laughable. Missing Documentation There are literally three lines of code and one sentence explaning how to write views in Python: def fun(doc): if doc['date']: yield doc['date'], doc Note that the map function uses the Python yield keyword to emit values, where JavaScript views use an emit() function. Can you imagine a manual for MySQL where they didn’t even talk about SQL? That’s the equivalent of the CouchDB API not talking about views. Anyway, such is life when you’re using open source and leading edge technology. Instead of complaining about bad documentation, you need to roll up your sleeves and look at the code. There is a module in there called desig...
author
updated
1763294104
block type
0
extracted fields
232
extracted bits
title
full content
content was extracted heuristically
OpenGraph suggests this is an article
detected location
0
detected language
1 (English)
category id
index version
2025110801
paywall score
0
spam phrases
0
text nonlatin
0
text cyrillic
0
text characters
4373
text words
939
text unique words
342
text lines
1
text sentences
40
text paragraphs
1
text words per sentence
23
text matched phrases
4
text matched dictionaries
2
image author
featured image