added documentation (experimental feature)

This commit is contained in:
Jordi Llonch 2013-03-06 06:36:23 +11:00
parent d9261f6c54
commit 5b118ff4ab
1 changed files with 16 additions and 1 deletions

View File

@ -16,4 +16,19 @@ it's properly merged) . Use at your own risk.
This documentation is a work in progress. Use at your own risk.
*No experimental features at this time*
Add commands using external libraries
-------------------------------------
You can also add Scrapy commands from an external library by adding `scrapy.commands` section into entry_points in the `setup.py`.
The following example adds `my_command` command::
from setuptools import setup, find_packages
setup(name='scrapy-mymodule',
entry_points={
'scrapy.commands': [
'my_command=my_scrapy_module.commands:MyCommand',
],
},
)