Ditch false code size claim.

main
Vincent Driessen 13 years ago
parent fb587297f6
commit f47398a754

@ -1,9 +1,7 @@
RQ (_Redis Queue_) is a lightweight<sup>*</sup> Python library for queueing
jobs and processing them in the background with workers. It is backed by Redis
and it is extremely simple to use.
<p style="font-size: 80%; text-align: right; font-style: italic">
<sup>*</sup> It is under 20 kB in size and just over 500 lines of code.</p>
RQ (_Redis Queue_) is a simple Python library for queueing jobs and processing
them in the background with workers. It is backed by Redis and it is designed
to have a low barrier to entry. It should easily be integrated in your web
stack.
## Getting started

@ -1,31 +0,0 @@
#!/bin/sh
#
# Rougly calculates the size of the (non-whitespace, non-comment) code
# This is a convenience script to make sure our "lightweight" statement on the
# project home page will still hold ;)
#
# Copyright (c) 2011 Vincent Driessen, @nvie
#
find_source_files() {
find . -name '*.py' | egrep -v '(dummy|examples|setup|tests)'
}
dump_source_files() {
find_source_files | xargs cat
}
filter_out_comments_and_whitespace() {
grep -v '^\s*#' | grep -v '^\s*$' | grep -v '"""'
}
code_size() {
dump_source_files | filter_out_comments_and_whitespace | wc -c
}
code_locs() {
dump_source_files | filter_out_comments_and_whitespace | wc -l
}
echo "Size: $(code_size) kB"
echo "Lines of code: $(code_locs)"
Loading…
Cancel
Save