The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



Индекс форумов
Составление сообщения

Исходное сообщение
"Релиз PHP 5.5.0"
Отправлено бедный буратино, 22-Июн-13 14:06 
> Все равно ведь придется лазить в мануал - только уже не по
> языку, а по нужным библиотекам. Разницы - никакой.

Разница большая. В полкилометра.

import bottle

dir(bottle)
['AppEngineServer', 'AppStack', 'AutoServer', 'BaseRequest', 'BaseResponse', 'BaseTemplate', 'BjoernServer', 'Bottle', 'BottleException', 'BytesIO', 'CGIServer', 'CheetahTemplate', 'CherryPyServer', 'ConfigDict', 'DEBUG', 'DictMixin', 'DictProperty', 'DieselServer', 'ERROR_PAGE_TEMPLATE', 'EventletServer', 'FapwsServer', 'FileCheckerThread', 'FileUpload', 'FlupFCGIServer', 'FormsDict', 'GeventServer', 'GunicornServer', 'HTTPError', 'HTTPResponse', 'HTTP_CODES', 'HeaderDict', 'HeaderProperty', 'HooksPlugin', 'JSONPlugin', 'Jinja2Template', 'LocalRequest', 'LocalResponse', 'MakoTemplate', 'MeinheldServer', 'MultiDict', 'NORUN', 'PasteServer', 'PluginError', 'Request', 'ResourceManager', 'Response', 'RocketServer', 'Route', 'RouteBuildError', 'RouteError', 'RouteReset', 'RouteSyntaxError', 'Router', 'RouterUnknownModeError', 'ServerAdapter', 'SimpleCookie', 'SimpleTemplate', 'TEMPLATES', 'TEMPLATE_PATH', 'TemplateError', 'TemplatePlugin', 'TemporaryFile', 'TornadoServer', 'TwistedServer', 'UrlSplitResult', 'WSGIFileWrapper', 'WSGIHeaderDict', 'WSGIRefServer', 'WaitressServer', '_HTTP_STATUS_LINES', '_ImportRedirect', '__author__', '__builtins__', '__doc__', '__file__', '__license__', '__name__', '__package__', '__version__', '_closeiter', '_debug', '_e', '_file_iter_range', '_hkey', '_lctx', '_lscmp', '_parse_qsl', '_raise', '_re_flatten', '_stderr', '_stdout', 'abort', 'app', 'auth_basic', 'base64', 'cached_property', 'cgi', 'cheetah_template', 'cheetah_view', 'cookie_decode', 'cookie_encode', 'cookie_is_encoded', 'datedate', 'datetime', 'debug', 'default_app', 'delete', 'depr', 'email', 'error', 'ext', 'format_exc', 'functools', 'get', 'hmac', 'hook', 'html_escape', 'html_quote', 'httplib', 'imap', 'imp', 'install', 'itertools', 'jinja2_template', 'jinja2_view', 'json_dumps', 'json_lds', 'json_loads', 'lazy_attribute', 'load', 'load_app', 'local', 'local_property', 'make_default_app_wrapper', 'makelist', 'mako_template', 'mako_view', 'mimetypes', 'mount', 'os', 'parse_auth', 'parse_date', 'parse_range_header', 'path_shift', 'pickle', 'post', 'print_exc', 'put', 'py', 'py25', 'py31', 'py3k', 're', 'redirect', 'request', 'response', 'route', 'run', 'server_names', 'static_file', 'subprocess', 'sys', 'tempfile', 'template', 'thread', 'threading', 'time', 'timedelta', 'tob', 'tonat', 'touni', 'uninstall', 'update_wrapper', 'url', 'urlencode', 'urljoin', 'urlquote', 'urlunquote', 'view', 'warnings', 'with_statement', 'yieldroutes']


help(bottle.route)

Help on function route in module bottle:

route(*a, **ka)
    A decorator to bind a function to a request URL. Example::
    
        @app.route('/hello/:name')
        def hello(name):
            return 'Hello %s' % name
    
    The ``:name`` part is a wildcard. See :class:`Router` for syntax
    details.
    
    :param path: Request path or a list of paths to listen to. If no
      path is specified, it is automatically generated from the
      signature of the function.
    :param method: HTTP method (`GET`, `POST`, `PUT`, ...) or a list of
      methods to listen to. (default: `GET`)
    :param callback: An optional shortcut to avoid the decorator
      syntax. ``route(..., callback=func)`` equals ``route(...)(func)``
    :param name: The name for this route. (default: None)
    :param apply: A decorator or plugin or a list of plugins. These are
      applied to the route callback in addition to installed plugins.
    :param skip: A list of plugins, plugin classes or names. Matching
      plugins are not installed to this route. ``True`` skips all.
    
    Any additional keyword arguments are stored as route-specific
    configuration and passed to plugins (see :meth:`Plugin.apply`).


А если использовать не python, а ipython... Можно хоть "на месте" брякнуться в ipython и заисследовать всё, что под руку попадётся. с автокомплитом и всеми делами. из коробки, приделывается моментально.

Плюс есть pydoc.

 

Ваше сообщение
Имя*:
EMail:
Для отправки ответов на email укажите знак ! перед адресом, например, !user@host.ru (!! - не показывать email).
Более тонкая настройка отправки ответов производится в профиле зарегистрированного участника форума.
Заголовок*:
Сообщение*:
  Введите код, изображенный на картинке: КОД
 
При общении не допускается: неуважительное отношение к собеседнику, хамство, унизительное обращение, ненормативная лексика, переход на личности, агрессивное поведение, обесценивание собеседника, провоцирование флейма голословными и заведомо ложными заявлениями. Не отвечайте на сообщения, явно нарушающие правила - удаляются не только сами нарушения, но и все ответы на них. Лог модерирования.



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру