 Click Documentation Release 3.3Click Documentation Release 3.3 Pallets Team Jun 23, 2020 Contents 1 Documentation 3 1.1 Why Click? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 1.12 Testing Click Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 3 Miscellaneous Pages 81 3.1 Click Changelog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 95 页 | 387.75 KB | 1 年前3 Click Documentation Release 3.3Click Documentation Release 3.3 Pallets Team Jun 23, 2020 Contents 1 Documentation 3 1.1 Why Click? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 1.12 Testing Click Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 3 Miscellaneous Pages 81 3.1 Click Changelog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 95 页 | 387.75 KB | 1 年前3
 Click Documentation Release 2.6Click Documentation Release 2.6 Pallets Team Jun 23, 2020 Contents 1 Documentation 3 1.1 Why Click? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 1.12 Testing Click Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 3 Miscellaneous Pages 71 3.1 Click Changelog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 83 页 | 354.87 KB | 1 年前3 Click Documentation Release 2.6Click Documentation Release 2.6 Pallets Team Jun 23, 2020 Contents 1 Documentation 3 1.1 Why Click? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 1.12 Testing Click Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 3 Miscellaneous Pages 71 3.1 Click Changelog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 83 页 | 354.87 KB | 1 年前3
 Click Documentation
Release 6.7Click Documentation Release 6.7 Pallets Team Jun 23, 2020 Contents 1 Documentation 3 1.1 Why Click? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 1.12 Testing Click Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 1 . . 63 3 Miscellaneous Pages 89 3.1 click-contrib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 3.2 Click Changelog . . . . . . . . . . . . . . .0 码力 | 107 页 | 428.42 KB | 1 年前3 Click Documentation
Release 6.7Click Documentation Release 6.7 Pallets Team Jun 23, 2020 Contents 1 Documentation 3 1.1 Why Click? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 1.12 Testing Click Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 1 . . 63 3 Miscellaneous Pages 89 3.1 click-contrib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 3.2 Click Changelog . . . . . . . . . . . . . . .0 码力 | 107 页 | 428.42 KB | 1 年前3
 Click Documentation Release 1.2.dev0Click Documentation Release 1.2.dev0 Pallets Team Jun 23, 2020 Contents 1 Documentation 3 1.1 Why Click? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 1.12 Testing Click Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 1 . . . . . . . . . . . . . . . . 41 Python Module Index 57 Index 59 i ii Click Documentation, Release 1.2.dev0 click is a Python package for creating beautiful command line interfaces in a composable0 码力 | 64 页 | 301.16 KB | 1 年前3 Click Documentation Release 1.2.dev0Click Documentation Release 1.2.dev0 Pallets Team Jun 23, 2020 Contents 1 Documentation 3 1.1 Why Click? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 1.12 Testing Click Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 1 . . . . . . . . . . . . . . . . 41 Python Module Index 57 Index 59 i ii Click Documentation, Release 1.2.dev0 click is a Python package for creating beautiful command line interfaces in a composable0 码力 | 64 页 | 301.16 KB | 1 年前3
 Click Documentation
Release 5.2.dev0Click Documentation Release 5.2.dev0 Pallets Team Jun 23, 2020 Contents 1 Documentation 3 1.1 Why Click? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 1.12 Testing Click Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 1 . . 61 3 Miscellaneous Pages 87 3.1 click-contrib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 3.2 Click Changelog . . . . . . . . . . . . . . .0 码力 | 103 页 | 416.61 KB | 1 年前3 Click Documentation
Release 5.2.dev0Click Documentation Release 5.2.dev0 Pallets Team Jun 23, 2020 Contents 1 Documentation 3 1.1 Why Click? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 1.12 Testing Click Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 1 . . 61 3 Miscellaneous Pages 87 3.1 click-contrib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 3.2 Click Changelog . . . . . . . . . . . . . . .0 码力 | 103 页 | 416.61 KB | 1 年前3
 Click Documentation
Release 4.2.dev0Click Documentation Release 4.2.dev0 Pallets Team Jun 23, 2020 Contents 1 Documentation 3 1.1 Why Click? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 1.12 Testing Click Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 3 Miscellaneous Pages 85 3.1 Click Changelog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 101 页 | 407.32 KB | 1 年前3 Click Documentation
Release 4.2.dev0Click Documentation Release 4.2.dev0 Pallets Team Jun 23, 2020 Contents 1 Documentation 3 1.1 Why Click? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 1.12 Testing Click Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 3 Miscellaneous Pages 85 3.1 Click Changelog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 101 页 | 407.32 KB | 1 年前3
 Flask Documentation (1.1.x)signs data to ensure its integrity. This is used to protect Flask’s session cookie. Click [https://palletsprojects.com/p/click/] is a framework for writing command line applications. It provides the flask command handling a request, and closed before the response is sent. flaskr/db.py import sqlite3 import click from flask import current_app, g from flask.cli import with_appcontext def get_db(): if 'db' executescript(f.read().decode('utf8')) @click.command('init-db') @with_appcontext def init_db_command(): """Clear the existing data and create new tables.""" init_db() click.echo('Initialized the database0 码力 | 428 页 | 895.98 KB | 1 年前3 Flask Documentation (1.1.x)signs data to ensure its integrity. This is used to protect Flask’s session cookie. Click [https://palletsprojects.com/p/click/] is a framework for writing command line applications. It provides the flask command handling a request, and closed before the response is sent. flaskr/db.py import sqlite3 import click from flask import current_app, g from flask.cli import with_appcontext def get_db(): if 'db' executescript(f.read().decode('utf8')) @click.command('init-db') @with_appcontext def init_db_command(): """Clear the existing data and create new tables.""" init_db() click.echo('Initialized the database0 码力 | 428 页 | 895.98 KB | 1 年前3
 WeRoBot 1.2.0 微信公众号开发框架文档Hello World 消息处理 使用 Session 记录用户状态 创建自定义菜单 消息加解密 部署 在独立服务器上部署 在SAE上部署 Handler 类型过滤 robot.key_click —— 回应自定义菜单 robot.filter —— 回应有指定文本的消息 Session 开启/关闭 Session 修改 Handler 以使用 Session WeRoBot.Client "button":[{ "type": "click", "name": "今日歌曲", "key": "music" }] }) 注意以上代码只需要运行一次就可以了。在创建完自定义菜单之后, 我们还 需要写一个 Handler 来响应菜单的点击操作 @robot.key_click("music") def music(message): robot.unknown 未知类型 (Message) robot.subscribe 被关注 (Event) robot.unsubscribe 被取消关注 (Event) robot.click 自定义菜单事件 (Event) robot.view 链接 (Event) robot.scancode_push 扫描推送 (Event) robot.scancode_waitmsg 扫描弹消息0 码力 | 70 页 | 82.33 KB | 1 年前3 WeRoBot 1.2.0 微信公众号开发框架文档Hello World 消息处理 使用 Session 记录用户状态 创建自定义菜单 消息加解密 部署 在独立服务器上部署 在SAE上部署 Handler 类型过滤 robot.key_click —— 回应自定义菜单 robot.filter —— 回应有指定文本的消息 Session 开启/关闭 Session 修改 Handler 以使用 Session WeRoBot.Client "button":[{ "type": "click", "name": "今日歌曲", "key": "music" }] }) 注意以上代码只需要运行一次就可以了。在创建完自定义菜单之后, 我们还 需要写一个 Handler 来响应菜单的点击操作 @robot.key_click("music") def music(message): robot.unknown 未知类型 (Message) robot.subscribe 被关注 (Event) robot.unsubscribe 被取消关注 (Event) robot.click 自定义菜单事件 (Event) robot.view 链接 (Event) robot.scancode_push 扫描推送 (Event) robot.scancode_waitmsg 扫描弹消息0 码力 | 70 页 | 82.33 KB | 1 年前3
 WeRoBot 1.3.0 微信公众号开发框架文档Hello World 消息处理 使用 Session 记录用户状态 创建自定义菜单 消息加解密 部署 在独立服务器上部署 在SAE上部署 Handler 类型过滤 robot.key_click —— 回应自定义菜单 robot.filter —— 回应有指定文本的消息 Session 开启/关闭 Session 修改 Handler 以使用 Session WeRoBot.Client "button":[{ "type": "click", "name": "今日歌曲", "key": "music" }] }) 注意以上代码只需要运行一次就可以了。在创建完自定义菜单之后, 我们还 需要写一个 Handler 来响应菜单的点击操作 @robot.key_click("music") def music(message): robot.unknown 未知类型 (Message) robot.subscribe 被关注 (Event) robot.unsubscribe 被取消关注 (Event) robot.click 自定义菜单事件 (Event) robot.view 链接 (Event) robot.scancode_push 扫描推送 (Event) robot.scancode_waitmsg 扫描弹消息0 码力 | 76 页 | 84.54 KB | 1 年前3 WeRoBot 1.3.0 微信公众号开发框架文档Hello World 消息处理 使用 Session 记录用户状态 创建自定义菜单 消息加解密 部署 在独立服务器上部署 在SAE上部署 Handler 类型过滤 robot.key_click —— 回应自定义菜单 robot.filter —— 回应有指定文本的消息 Session 开启/关闭 Session 修改 Handler 以使用 Session WeRoBot.Client "button":[{ "type": "click", "name": "今日歌曲", "key": "music" }] }) 注意以上代码只需要运行一次就可以了。在创建完自定义菜单之后, 我们还 需要写一个 Handler 来响应菜单的点击操作 @robot.key_click("music") def music(message): robot.unknown 未知类型 (Message) robot.subscribe 被关注 (Event) robot.unsubscribe 被取消关注 (Event) robot.click 自定义菜单事件 (Event) robot.view 链接 (Event) robot.scancode_push 扫描推送 (Event) robot.scancode_waitmsg 扫描弹消息0 码力 | 76 页 | 84.54 KB | 1 年前3
 Celery 1.0 Documentationqueue/exchange. 5.3 Tutorial: Creating a click counter using carrot and celery 5.3.1 Introduction A click counter should be easy, right? Just a simple view that increments a click in the DB and forwards you to when traffic starts to increase, you are likely to bump into problems. One database write for every click is not good if you have millions of clicks a day. So what can you do? In this tutorial we will send a task. 5.3. Tutorial: Creating a click counter using carrot and celery 47 Celery Documentation, Release 1.0.6 (stable) 5.3.2 The model The model is simple, Click has the URL as primary key and a number0 码力 | 123 页 | 400.69 KB | 1 年前3 Celery 1.0 Documentationqueue/exchange. 5.3 Tutorial: Creating a click counter using carrot and celery 5.3.1 Introduction A click counter should be easy, right? Just a simple view that increments a click in the DB and forwards you to when traffic starts to increase, you are likely to bump into problems. One database write for every click is not good if you have millions of clicks a day. So what can you do? In this tutorial we will send a task. 5.3. Tutorial: Creating a click counter using carrot and celery 47 Celery Documentation, Release 1.0.6 (stable) 5.3.2 The model The model is simple, Click has the URL as primary key and a number0 码力 | 123 页 | 400.69 KB | 1 年前3
共 424 条
- 1
- 2
- 3
- 4
- 5
- 6
- 43














 
 