Giter Club home page Giter Club logo

church's Introduction

Church

Build Status PyPI version HitCount Code Health Codacy Badge Issues

alt text

Church - is a library to generate fake data. It's very useful if you need to bootstrap your database.

Installation

~  pip install church

Usage

# At this moment a library supported 4 locales: en_us, de_de, fr_fr, ru_ru
#
# It's very useful if you need to bootstrap your database.
# Just create static method that will generate fake data.
# ...

@staticmethod
def _bootstrap(count=2000):
    from church import Personal

    person = Personal('en_us')
    for _ in range(count):
        user = User(username=person.username(),
                    email=person.email(),
                    user_twitter=person.twitter()
                    name=person.name('m'),
                    surname=person.surname(),
                    credit_card=person.credit_card_number(),
                    home_page=person.home_page(),
                    password=person.password(algorithm='sha1'),
                    gender=person.gender(abbreviated=True),
                    profession=person.profession(),
                    nationality=person.nationality()
                    )
        try:
            db.session.add(user)
        except Exception:
            db.session.commit()

# ...

Docs

Church is pretty simple library. All that you need is small guidebook.

Contributing

Your contributions are always welcome! Please take a look at the contribution guidelines first.

Requirements

No requirements, no dependencies

Runtime

PyPI

Licence

MIT Licence

Why church?

«Such teachings come through hypocritical liars, whose consciences have been seared as with a hot iron.» Timothy 1:4

If you offended by name of this library then you may don't use it. Do Not Use!

church's People

Contributors

lk-geimfari avatar mrcrilly avatar sobolevn avatar ranwise avatar

Watchers

Subhash Ramesh 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.