Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AA2A51019B for ; Wed, 7 Aug 2013 12:49:17 +0000 (UTC) Received: (qmail 63100 invoked by uid 500); 7 Aug 2013 12:49:16 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 62421 invoked by uid 500); 7 Aug 2013 12:49:15 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 62413 invoked by uid 99); 7 Aug 2013 12:49:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 12:49:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_FILL_THIS_FORM_SHORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yoursurrogategod@gmail.com designates 209.85.212.171 as permitted sender) Received: from [209.85.212.171] (HELO mail-wi0-f171.google.com) (209.85.212.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 12:49:09 +0000 Received: by mail-wi0-f171.google.com with SMTP id hr7so3786035wib.4 for ; Wed, 07 Aug 2013 05:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qtz5V4TWQxRTtDgAR6Seixzlwm83mUBzaUQt4Jcp8Xk=; b=QcsN959Ii5mjv6CWwVPQ/VgKmpDXvIwEy+Xs+HPVvM6e94ZY07T4ZT4jbQh2GzDUJB pvPkh1o8Hf7l4dhJQSSbtMPx3QXz7ktdxMna2YxVO5GkyP2isePXBlZoV1aYIKxlVjz8 MdeQoAKdiFef7piQycVkYtGoxJVXcT32MbtA0oFjTs2kb15j/Gjv4ytZ07Yxt8TPnNTi /AogSZjYbZU+zCOW8nppajNREblqDcWDVUexYiNIID/HENUluOj/jqVG3bgv6KZbnu4u E8Lz1Btpm/+LDRqJvU5WDNjLdVa0LuEi7vcRGcwe4QXrVppQ8tfNZEeIOdvLP4kduef4 IbHg== MIME-Version: 1.0 X-Received: by 10.180.189.9 with SMTP id ge9mr2047652wic.52.1375879729485; Wed, 07 Aug 2013 05:48:49 -0700 (PDT) Received: by 10.194.78.241 with HTTP; Wed, 7 Aug 2013 05:48:49 -0700 (PDT) In-Reply-To: <8F596733B1804C51B59411F7A29C24BE@cloudant.com> References: <8F596733B1804C51B59411F7A29C24BE@cloudant.com> Date: Wed, 7 Aug 2013 08:48:49 -0400 Message-ID: Subject: Re: Sample couchdb data From: "Yves S. Garret" To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001a11c34302879d0a04e35af6f2 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c34302879d0a04e35af6f2 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Aug 5, 2013 at 1:46 AM, Simon Metson wrote: > I wrote [1] a while back. It lets you create a schema for your data then > generates random but realistic data like that schema, which is nice if you > want to fool around with different data models, make views that look kinda > realistic etc. > > [1] https://github.com/cloudant-labs/etc/blob/master/gen_docs.py > > > On Monday, 5 August 2013 at 04:59, Dave Cottlehuber wrote: > > > On 5 August 2013 04:41, Yves S. Garret > wrote: > > > Is there any free couchdb data that I can load up into my database and > play > > > with it? Say I'd like > > > 1000 documents of recipes/song names/city names or something. Any > ideas? > > > > > > > > > Use http://json-generator.appspot.com/ and do a _bulk_docs upload > > > https://couchdb.readthedocs.org/en/latest/api/database.html#post-db-bulk-docs > > 1000 docs can be done in 1 POST easily. > > > > Alternatively you can replicate the npm registry (boooooring data I > > know) from http://isaacs.iriscouch.com/registry and cancel the > > replication after you get ~ 1000 docs. It's a 35GiB db so you don't > > want to finish. > > > > A+ > > Dave > > > > > > > Hi Simon, I tried that little python app and this is the issue that I encountered: % python gen_docs.py Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 548, in main() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 530, in main known_paths = addusersitepackages(known_paths) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 266, in addusersitepackages user_site = getusersitepackages() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 241, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 231, in getuserbase USER_BASE = get_config_var('userbase') File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 516, in get_config_var return get_config_vars().get(name) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 449, in get_config_vars import re File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 105, in import sre_compile File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_compile.py", line 14, in import sre_parse File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_parse.py", line 17, in from sre_constants import * File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_constants.py", line 18, in from _sre import MAXREPEAT ImportError: cannot import name MAXREPEAT --001a11c34302879d0a04e35af6f2--