• Stars
    star
    1,269
  • Rank 35,679 (Top 0.8 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created about 14 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Behavior-driven-development tool for python, inspired by Cucumber for Ruby ⛺

lettuce

Version 0.2.23 - kryptonite

Build Status

On release names

Lettuce release names will be inspired by any green stuff.

Barium: In form of "barium nitrate" is commonly used to make green fireworks. Such a good name for a first version :)

What

Lettuce is a BDD tool for python, 100% inspired on cucumber.

Motivation

  1. Cucumber makes Ruby even more sexy. Python needed something like it.
  2. Testing must be funny and easy.
  3. Most python developers code in python, not ruby.
  4. Ruby has Capistrano, Python has Fabric. Ruby has cucumber, Python has lettuce.
  5. I personally don't like mixing many languages in small projects. Keeping all in python is better.
  6. I love python, and ever did. But I also ever missed something that make writing tests easier and funnier.
  7. I like nose, which is a unittest pythonic framework. However, as the project I work on grows, so do the tests, and it becomes harder to understand them.

Documentation

See full documentation on http://lettuce.it/

Dependencies

you will need to install these dependencies in order to hack lettuce :) all them are used within lettuce tests

you could use a virtualenv:

> mkvirtualenv lettuce
> workon lettuce
> pip install -r requirements.txt

note this uses virtualenvwrapper to save some virtualenv handling hassle. you can also use virtualenv the regular way.

or just install manually:

> sudo pip install -r requirements.txt

or do it really from scratch:

  • nose

    [sudo] pip install nose

  • mox

    [sudo] pip install mox

  • sphinx

    [sudo] pip install sphinx

  • lxml

    [sudo] pip install lxml

  • tornado

    [sudo] pip install tornado

  • django

    [sudo] pip install django

mailing list

for users

http://groups.google.com/group/lettuce-users

for developers

http://groups.google.com/group/lettuce-developers

Special thanks

  1. Cucumber crew, for creating such a AWESOME project, and for inspiring Lettuce.
  2. Tatiana for helping a lot with documentation.
  3. Django which documentation structure was borrowed.
  4. Andres Jaan Tack for his awesome contributions
  5. Erlis Vidal for creating a tutorial of how to install lettuce on windows.

Known issues

windows support

erlis have made a awesome job by making lettuce work on windows. He posted here how to install lettuce on windows.

License

<Lettuce - Behaviour Driven Development for python>
Copyright (C) <2010-2020>  Gabriel Falcão <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

More Repositories

1

HTTPretty

Intercept HTTP requests at the Python socket level. Fakes the whole socket module
Python
2,094
star
2

sure

idiomatic assertion toolkit with human-friendly failure messages, inspired by RSpec Expectations and should.js
Python
687
star
3

flask-react-bootstrap

Flask + ZeroMQ + ReactJS + Webpack + Bootstrap + Socket.IO
JavaScript
165
star
4

unclebob

django tool for running tests organized between unit, functional and integration
Python
56
star
5

jquery-yql

jQuery plugin for YQL querying with JSONP abstraction and some fancyness
JavaScript
46
star
6

nginx-markdown-module

renderize markdown as HTML directly from your upstream server
C
42
star
7

couleur

ANSI terminal tool for python, colored shell and other handy fancy features
Python
41
star
8

go-horse

Funny, and simple HTTP Server DSL written entirely in C
C
37
star
9

pyenv-action

Enables pyenv within your github actions workflow
TypeScript
34
star
10

tornadio-chat

socket.io + tornado chat example
Python
29
star
11

dominic

jquery-based python-pure implementation of CSS Selectors, good for using with google app engine
Python
18
star
12

bolacha

Bolacha is a simple http client for python, built on top of httplib2, but automatically handles cookies and upload.
Python
17
star
13

dead-parrot

A djangoish RESTful framework in python
Python
16
star
14

steadymark

use your python snippets from your README.md as regression tests
Python
13
star
15

tornado-bdd-sample

simple web application that demonstrate how to use lettuce + webdriver with tornado
Python
13
star
16

django_dreamhost

Super-duper script that configures a clean Python 2.5, Django, PIL, FLUP and Mysql support in Dreamhost
Shell
12
star
17

markment

markdown + document = markment
CSS
11
star
18

guake

obsolete guake code, please go to https://github.com/guake/guake instead
Python
11
star
19

plant

requests for filesystem operations
Python
10
star
20

Makefile-python-basic

Use a good old Makefile in lieu of Pipenv, Poetry etc.
Makefile
10
star
21

tomb

password manager written in rust with TUI, stores aes-256-cbc encrypted data in a yaml file
Rust
10
star
22

agentzero

Python ZeroMQ for Humans
Python
8
star
23

vargas

tempo relativo em português para python
Python
7
star
24

sphinx-bulma-theme

Sphinx Theme based on bulma.io
CSS
7
star
25

jquery-shout

component-based event bus for jquery
JavaScript
6
star
26

sponge

sponge is a web framework aiming to get things dry, built on top of CherryPy
Python
6
star
27

LittleJoy

really tiny framework for php
PHP
5
star
28

plural

A Git-backed graph database as a library
Python
5
star
29

emacs_config

My pretty much customized emacs configuration
Emacs Lisp
4
star
30

chemist

Simple, flexible and testable active-record powered by SQLAlchemy - supports seamless encryption of fields through PyNaCL
Python
4
star
31

djangogevent

Django GEvent support
Python
4
star
32

jquery-embeddata

Embed and retrieve JSON metadata in any HTML tag, with server-side saving and recovering
JavaScript
4
star
33

mac-disk-monitor

rust library to monitor disk activity on mac os
Rust
4
star
34

gspec

Test runner for the Go language
Go
3
star
35

keybone

command-line GPG for humans
Python
3
star
36

Projetos-VB6

Visual Basic 6.0
3
star
37

hacklab

Web application for hosting git repositories
JavaScript
3
star
38

heroku-buildpack-aptitude

Shell
3
star
39

modelpress

Django-like ORM for wordpress
PHP
3
star
40

pyev

python libev interface
C
2
star
41

ma-cherie

Ma Chérie is a web-based picture viewer powered by CherryPy
Python
2
star
42

rustic-toolz

crabby command-line tools
Rust
2
star
43

deadparrot_sample

usage example of deadparrot
Python
2
star
44

pycallback-example

Simple example of how to call a python function from inside a C program
C
2
star
45

vimfiles

my old vim stuff
Vim Script
2
star
46

sagacity

Your dot files are finally modularized now
Shell
2
star
47

happy-time

old repos in which I used to put C and GObject programs
C
2
star
48

tesla-editor

A toy project that combines React + Webpack + Electron + Monaco Editor
JavaScript
2
star
49

from-your-editor-to-pypi

Guide for the workshop: "From your editor to PyPI: Creating and Releasing robust Python packages"
Makefile
2
star
50

carpentry

continuous integration for the people
Python
2
star
51

speakers

Let your python code speak
Python
2
star
52

redis-gnupg

Store GPG-encrypted values in a redis server seamlessly
Python
1
star
53

shrine

django + tornado
JavaScript
1
star
54

agile

Meta-package for python with tools for an agile development workflow.
Python
1
star
55

lineup

Python
1
star
56

tumbler

A flask that you can take to the office
Python
1
star
57

pho

PHOnetic alphabet renderer
Rust
1
star
58

xmpp

stateless and concurrency-agnostic XMPP implementation in python
Python
1
star
59

github-forks-2019-snapshot

For the past 10 years I'd been using the github "fork" feature as a way to favorite interesting repos. In 2019 I used the github API and a personal token to delete all forks and save a snapshot of the JSON data.
1
star
60

github-py

python library that leverages the GitHub API (includes support to the OAuth2 interface)
Python
1
star
61

pep8checker

Something I was playing with at 2007, a rough pep8 checker made with glib
C
1
star
62

echidna

small web framework for golang
Go
1
star