-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
211 changed files
with
14,646 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../src/itty/itty.py | ||
../src/toastdriven-itty-d15d553/itty.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../src/pyres/pyres/ | ||
../src/binarydud-pyres-1cf7a1d/pyres/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../src/pystache/pystache/ | ||
../src/defunkt-pystache-442f84d/pystache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../src/pyres/resweb/ | ||
../src/binarydud-pyres-1cf7a1d/resweb/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../src/simplejson/simplejson/ | ||
../src/simplejson-simplejson-1a37135/simplejson/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*.pyc | ||
build/ | ||
.coverage | ||
*.egg-info | ||
logs/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## Authors | ||
* Matt George | ||
* Chris Song | ||
* yashh | ||
* dsc | ||
* Alex Ezell | ||
* Michael Russo | ||
* Whit Morris | ||
|
||
Inspired by Resque, by Chris Wanstrath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
## 0.9.1 (2010-10-15) | ||
* fixing issues #45, #46. | ||
* #45 - resweb not working in chrome | ||
* #46 - delayed_queue_schedule_size() returns incorrect value | ||
* updated version requirement for redis-py | ||
* added Failure docs from Alex._ | ||
|
||
## 0.9 (2010-08-05) | ||
* added better logging to the project | ||
|
||
## 0.8 (2010-04-24) | ||
* added the pyres_manager and the horde module. This allows a more prefork like model for processing jobs. | ||
* setproctitle usage. Allows better process titles when viewing via ps | ||
* ability to delete and requeue failed items | ||
|
||
## 0.7.5.1 (2010-03-18) | ||
* fixed the pyres_scheduler script | ||
* changed download link to remove v from version number | ||
|
||
## 0.7.5 (2010-03-18) | ||
* added feature to retry jobs based on a class attribute | ||
|
||
## 0.7.1 (2010-03-16) | ||
* bug fix for pruning workers. | ||
|
||
## 0.7.0 (2010-03-05) | ||
* delayed tasks | ||
* resweb pagination | ||
* switch stored timestamps to a unix timestamp | ||
* updated documentation | ||
* upgraded to redis-py 1.34.1 | ||
* switched from print statements to the logging module | ||
* import errors on jobs are now reported in the failed queue | ||
* prune dead workers | ||
* small bugfixes in the resweb package | ||
* improved failure formatting | ||
* datetime json parser | ||
|
||
## 0.5.0 (2010-0114) | ||
|
||
* added new documentation to the project | ||
* update setup.py | ||
* preparing for semantic versioning | ||
|
||
## 0.4.1 (2010-01-06) | ||
|
||
* fixed issue with new failure package in distutils sdist | ||
* changed setup.py to remove camel case, because it's ugly | ||
|
||
## 0.4.0 (2010-01-06) | ||
|
||
* added the basics of failure backend support | ||
|
||
## 0.3.1 (2009-12-16) | ||
|
||
* minor bug fix in worker.py | ||
* merged in some setup.py niceties from dsc fork | ||
* merged in better README info from dsc fork | ||
|
||
## 0.3.0 (2009-12-10) | ||
|
||
* updated setup.py | ||
* refactored package for better testing | ||
* resque namespacing by fakechris | ||
* smarter import from string by fakechris | ||
|
||
## 0.2.0 (2009-12-09) | ||
|
||
* Better web interface via resweb | ||
* Updated the api to be more inline with resque | ||
* More tests. | ||
|
||
## 0.1.0 (2009-12-01) | ||
|
||
* First release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2009 Matt George | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Pyres - a Resque clone | ||
====================== | ||
|
||
[Resque](http://github.com/defunkt/resque) is a great implementation of a job queue by the people at github. It's written in ruby, which is great, but I primarily work in python. So I took on the task of porting over the code to python and PyRes was the result | ||
|
||
|
||
## Project Goals | ||
|
||
Because of some differences between ruby and python, there are a couple of places where I chose speed over correctness. The goal will be to eventually take the application and make it more pythonic without sacrificing the awesome functionality found in resque. At the same time, I hope to stay within the bounds of the original api and web interface. | ||
|
||
|
||
## Running Tests | ||
|
||
1. Install nose: `$ easy_install nose` | ||
2. Start redis: `$ redis-server [PATH_TO_YOUR_REDIS_CONFIG]` | ||
3. Run nose: `$ nosetests` Or more verbosely: `$ nosetests -v` | ||
|
||
|
||
##Mailing List | ||
|
||
To join the list simply send an email to <[email protected]>. This | ||
will subscribe you and send you information about your subscription, | ||
include unsubscribe information. | ||
|
||
The archive can be found at <http://librelist.com/browser/>. | ||
|
||
|
||
## Information | ||
|
||
* Code: `git clone git://github.com/binarydud/pyres.git` | ||
* Home: <http://github.com/binarydud/pyres> | ||
* Docs: <http://binarydud.github.com/pyres/> | ||
* Bugs: <http://github.com/binarydud/pyres/issues> | ||
* List: <[email protected]> | ||
|
||
## TODO | ||
|
||
Stabalize the api. | ||
|
||
Add a pre-fork worker module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Name Stmts Exec Cover Missing | ||
------------------------------------------------ | ||
pyres 138 131 94% 26, 39, 98, 133-134, 144-145 | ||
pyres.exceptions 2 2 100% | ||
pyres.failure 23 22 95% 41 | ||
pyres.job 23 23 100% | ||
pyres.worker 189 146 77% 66, 74, 84-112, 161, 179, 186, 230-241 | ||
------------------------------------------------ | ||
TOTAL 375 324 86% | ||
---------------------------------------------------------------------- | ||
Ran 32 tests in 0.884s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line. | ||
SPHINXOPTS = | ||
SPHINXBUILD = sphinx-build | ||
PAPER = | ||
|
||
# Internal variables. | ||
PAPEROPT_a4 = -D latex_paper_size=a4 | ||
PAPEROPT_letter = -D latex_paper_size=letter | ||
ALLSPHINXOPTS = -d build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source | ||
|
||
.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest | ||
|
||
help: | ||
@echo "Please use \`make <target>' where <target> is one of" | ||
@echo " html to make standalone HTML files" | ||
@echo " dirhtml to make HTML files named index.html in directories" | ||
@echo " pickle to make pickle files" | ||
@echo " json to make JSON files" | ||
@echo " htmlhelp to make HTML files and a HTML help project" | ||
@echo " qthelp to make HTML files and a qthelp project" | ||
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" | ||
@echo " changes to make an overview of all changed/added/deprecated items" | ||
@echo " linkcheck to check all external links for integrity" | ||
@echo " doctest to run all doctests embedded in the documentation (if enabled)" | ||
|
||
clean: | ||
-rm -rf build/* | ||
|
||
html: | ||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html | ||
@echo | ||
@echo "Build finished. The HTML pages are in build/html." | ||
|
||
dirhtml: | ||
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) build/dirhtml | ||
@echo | ||
@echo "Build finished. The HTML pages are in build/dirhtml." | ||
|
||
pickle: | ||
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) build/pickle | ||
@echo | ||
@echo "Build finished; now you can process the pickle files." | ||
|
||
json: | ||
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) build/json | ||
@echo | ||
@echo "Build finished; now you can process the JSON files." | ||
|
||
htmlhelp: | ||
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) build/htmlhelp | ||
@echo | ||
@echo "Build finished; now you can run HTML Help Workshop with the" \ | ||
".hhp project file in build/htmlhelp." | ||
|
||
qthelp: | ||
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) build/qthelp | ||
@echo | ||
@echo "Build finished; now you can run "qcollectiongenerator" with the" \ | ||
".qhcp project file in build/qthelp, like this:" | ||
@echo "# qcollectiongenerator build/qthelp/PyRes.qhcp" | ||
@echo "To view the help file:" | ||
@echo "# assistant -collectionFile build/qthelp/PyRes.qhc" | ||
|
||
latex: | ||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex | ||
@echo | ||
@echo "Build finished; the LaTeX files are in build/latex." | ||
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \ | ||
"run these through (pdf)latex." | ||
|
||
changes: | ||
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) build/changes | ||
@echo | ||
@echo "The overview file is in build/changes." | ||
|
||
linkcheck: | ||
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) build/linkcheck | ||
@echo | ||
@echo "Link check complete; look for any errors in the above output " \ | ||
"or in build/linkcheck/output.txt." | ||
|
||
doctest: | ||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) build/doctest | ||
@echo "Testing of doctests in the sources finished, look at the " \ | ||
"results in build/doctest/output.txt." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
@ECHO OFF | ||
|
||
REM Command file for Sphinx documentation | ||
|
||
set SPHINXBUILD=sphinx-build | ||
set ALLSPHINXOPTS=-d build/doctrees %SPHINXOPTS% source | ||
if NOT "%PAPER%" == "" ( | ||
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% | ||
) | ||
|
||
if "%1" == "" goto help | ||
|
||
if "%1" == "help" ( | ||
:help | ||
echo.Please use `make ^<target^>` where ^<target^> is one of | ||
echo. html to make standalone HTML files | ||
echo. dirhtml to make HTML files named index.html in directories | ||
echo. pickle to make pickle files | ||
echo. json to make JSON files | ||
echo. htmlhelp to make HTML files and a HTML help project | ||
echo. qthelp to make HTML files and a qthelp project | ||
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter | ||
echo. changes to make an overview over all changed/added/deprecated items | ||
echo. linkcheck to check all external links for integrity | ||
echo. doctest to run all doctests embedded in the documentation if enabled | ||
goto end | ||
) | ||
|
||
if "%1" == "clean" ( | ||
for /d %%i in (build\*) do rmdir /q /s %%i | ||
del /q /s build\* | ||
goto end | ||
) | ||
|
||
if "%1" == "html" ( | ||
%SPHINXBUILD% -b html %ALLSPHINXOPTS% build/html | ||
echo. | ||
echo.Build finished. The HTML pages are in build/html. | ||
goto end | ||
) | ||
|
||
if "%1" == "dirhtml" ( | ||
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% build/dirhtml | ||
echo. | ||
echo.Build finished. The HTML pages are in build/dirhtml. | ||
goto end | ||
) | ||
|
||
if "%1" == "pickle" ( | ||
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% build/pickle | ||
echo. | ||
echo.Build finished; now you can process the pickle files. | ||
goto end | ||
) | ||
|
||
if "%1" == "json" ( | ||
%SPHINXBUILD% -b json %ALLSPHINXOPTS% build/json | ||
echo. | ||
echo.Build finished; now you can process the JSON files. | ||
goto end | ||
) | ||
|
||
if "%1" == "htmlhelp" ( | ||
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% build/htmlhelp | ||
echo. | ||
echo.Build finished; now you can run HTML Help Workshop with the ^ | ||
.hhp project file in build/htmlhelp. | ||
goto end | ||
) | ||
|
||
if "%1" == "qthelp" ( | ||
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% build/qthelp | ||
echo. | ||
echo.Build finished; now you can run "qcollectiongenerator" with the ^ | ||
.qhcp project file in build/qthelp, like this: | ||
echo.^> qcollectiongenerator build\qthelp\PyRes.qhcp | ||
echo.To view the help file: | ||
echo.^> assistant -collectionFile build\qthelp\PyRes.ghc | ||
goto end | ||
) | ||
|
||
if "%1" == "latex" ( | ||
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% build/latex | ||
echo. | ||
echo.Build finished; the LaTeX files are in build/latex. | ||
goto end | ||
) | ||
|
||
if "%1" == "changes" ( | ||
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% build/changes | ||
echo. | ||
echo.The overview file is in build/changes. | ||
goto end | ||
) | ||
|
||
if "%1" == "linkcheck" ( | ||
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% build/linkcheck | ||
echo. | ||
echo.Link check complete; look for any errors in the above output ^ | ||
or in build/linkcheck/output.txt. | ||
goto end | ||
) | ||
|
||
if "%1" == "doctest" ( | ||
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% build/doctest | ||
echo. | ||
echo.Testing of doctests in the sources finished, look at the ^ | ||
results in build/doctest/output.txt. | ||
goto end | ||
) | ||
|
||
:end |
Oops, something went wrong.