Git Product home page Git Product logo

ipsum's Introduction

ipsum

Python utils to create random JSON data and import into mongoDB. The overall structure and feature basis for ipsum is based on the JSON Schema spec at http://json-schema.org and basically runs it "in reverse": instead of validating content against the spec, the spec is used to generate randomized content.

Basic use:

$ python ./pygenipsum.py --count 6 shape4.jsch
$ python ./pygenipsum.py --mode full shape1.jsch

Dump and load a file:

$ python ./pygenipsum.py --count 6 shape3.jsch > /tmp/z
$ python ./pymonimport.py -d mydb -c foo2 --drop /tmp/z

If you don't want to preserve a random set (i.e. to load the same set over and over again), go for direct util:

$ python ./pymonipsum.py -d mydb -c foo2 --drop --count 6 shape3.jsch

The shape files in this directory offer examples of how to use the various ipsum features. Formal documentation is forthcoming. It is recommended to try each a count of 4 to get a sense of what is going on.

Sometimes you have an existing JSON doc from which you want to "reverse" a schema. There is an existing tool at the following URL which is very handy for that: http://www.jsonschema.net

ipsum's People

Contributors

buzzm avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.