Giter VIP home page Giter VIP logo

milkman's Introduction

Milkman - Easy django model object generation

Quick Examples

from milkman.dairy import milkman
from myapp.models import Video, Editor

#I just want a random video in the db to test with
v = milkman.deliver(Video)

#I want a video with a particular editor
e = milkman.deliver(Editor)
v = milkman.deliver(Video, editor=e)

Development

Install virtualenv and virtualenvwrapper

http://www.virtualenv.org/en/latest/index.html

http://pypi.python.org/pypi/virtualenvwrapper

mkvirtualenv milkman
pip install -r requirements.txt

Running Tests

cd testapp
./manage.py test

Known Issues

Several of the basic django model fields have generators, although most do not. Let us know if there is a particular field to be implemented thats really bugging you, or just send a patch :)

milkman's People

Contributors

ccollins avatar gsiegman avatar issackelly avatar j4mie avatar paltman avatar rob-b avatar sethtrain avatar skyl avatar wilfred avatar wilkes avatar

Stargazers

 avatar  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.