On Mon, Aug 5, 2013 at 1:46 AM, Simon Metson <[email protected]> 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 <[email protected]> > 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 <module> 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 <module> import sre_compile File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_compile.py", line 14, in <module> import sre_parse File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_parse.py", line 17, in <module> from sre_constants import * File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_constants.py", line 18, in <module> from _sre import MAXREPEAT ImportError: cannot import name MAXREPEAT
