用于生成示例数据的django应用程序

eadred的Python项目详细描述


eadred是一个用于生成示例数据的django应用程序。

为什么?下面是我们正在解决的用例:

用例1:贡献者

Mildred wants to contribute to your Django project, but your Django project is non-trivial and out of the box it’s not very usable because it needs data.

However, you’re using eadred, so in your setup documentation, you have a one-liner that generates all the sample data Mildred needs to start hacking immediately.

用例2:引导

Willhelm wants to set up an instance of your Django project. It requires certain non-trivial initial data to be in place before it works.

However, you’re using eadred, so in your setup documentation, you have a one-liner that generates all the initial data needed.

用例3:大量随机数据

Phylida is a hacker on your Django project and trying to fix bugs with a section of code that requires large amounts of data—say it’s one of those things that graphs data sets or something.

You’re using eadred, so it’s a one-liner to generate a large set of initial data.

“等等,使用django和fixtures很容易解决用例1和用例2!“

我认为fixture适合于特定的用例,其中您的模型 没有变化,你有一些贡献者喜欢加入 用于生成初始装置的数据。既然这么说了,我就不用 固定装置。

eadred允许您使用模型以编程方式生成数据。 制造商,工厂,固定装置,随机种子,无论你需要什么。

此外,eadred还提供库函数来生成 数据更简单。

项目详细信息

代码:
http://github.com/willkg/django-eadred
文档:
http://django-eadred.rtfd.org/
问题跟踪器:
https://github.com/willkg/django-eadred/issues
许可证:
BSD 3条款;请参见许可文件

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java中atg十进制到双格式   音频如何使用Java播放默认Windows操作系统(不仅仅是“完成/完成”的声音?   java为什么Eclipse内存分析器不显示InetSocketAddress字符串值?   Java100线程对tomcat中等待的线程进行了计时,导致它在线程总数超过200个时暂停   如何在Java中转义POSIX扩展格式的正则表达式文本   java限制Vaadin中的窗口拖动运动   Java8模块与OSGi有何不同?   java在小程序中看不到GUI组件?   java排序映射不允许删除   java试图使用HibernateTransactionManager,但事务服务抛出HibernateException   java无法使用reflect包将变量传递给私有方法   在Java8上,从给定键列表的映射中提取值列表   java JavaFX表格菜单按钮列表显示文本,但不显示图形   java扫描仪nextInt()和hasNextInt()问题   java哈希映射还是哈希表?   JavaTomcat6.0。配置HTTP   如何使用Java对HTTP请求体进行流式处理