Flask-RESTful Documentation Release 0.3.8Attributes Default Values Custom Fields & Multiple Values Url & Other Concrete Fields Complex Structures List Field Advanced : Nested Field Extending Flask-RESTful Content Negotiation Custom Fields & Inputs Response Response Formats Resource Method Decorators Custom Error Handlers Intermediate Usage Project Structure Use With Blueprints Full Parameter Parsing Example Passing Constructor Parameters Into Resources from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': 'world'} api.add_resource(HelloWorld, '/') if __name__0 码力 | 55 页 | 93.30 KB | 1 年前3
Flask-RESTful Documentation Release 0.3.7Attributes Default Values Custom Fields & Multiple Values Url & Other Concrete Fields Complex Structures List Field Advanced : Nested Field Extending Flask-RESTful Content Negotiation Custom Fields & Inputs Response Response Formats Resource Method Decorators Custom Error Handlers Intermediate Usage Project Structure Use With Blueprints Full Parameter Parsing Example Passing Constructor Parameters Into Resources from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': 'world'} api.add_resource(HelloWorld, '/') if __name__0 码力 | 55 页 | 93.21 KB | 1 年前3
Flask-RESTful Documentation Release 0.3.10Attributes Default Values Custom Fields & Multiple Values Url & Other Concrete Fields Complex Structures List Field Advanced : Nested Field Extending Flask-RESTful Content Negotiation Custom Fields & Inputs Response Response Formats Resource Method Decorators Custom Error Handlers Intermediate Usage Project Structure Use With Blueprints Full Parameter Parsing Example Passing Constructor Parameters Into Resources from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': 'world'} api.add_resource(HelloWorld, '/') if __name__0 码力 | 42 页 | 84.60 KB | 1 年前3
Flask-RESTful Documentation Release 0.3.6Attributes Default Values Custom Fields & Multiple Values Url & Other Concrete Fields Complex Structures List Field Advanced : Nested Field Extending Flask-RESTful Content Negotiation Custom Fields & Inputs Response Response Formats Resource Method Decorators Custom Error Handlers Intermediate Usage Project Structure Use With Blueprints Full Parameter Parsing Example Passing Constructor Parameters Into Resources from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': 'world'} api.add_resource(HelloWorld, '/') if __name__0 码力 | 49 页 | 91.90 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.8Flask from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': 'world'} api.add_resource(HelloWorld, '/') if __name__ defining methods on your resource. A basic CRUD resource for a todo application (of course) looks like this: from flask import Flask, request from flask_restful import Resource, Api app = Flask(__name__) TodoSimple(Resource): def get(self, todo_id): return {todo_id: todos[todo_id]} def put(self, todo_id): todos[todo_id] = request.form['data'] return {todo_id: todos[todo_id]} api.add_resource(TodoSimple0 码力 | 50 页 | 253.64 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.7Flask from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': 'world'} api.add_resource(HelloWorld, '/') if __name__ defining methods on your resource. A basic CRUD resource for a todo application (of course) looks like this: from flask import Flask, request from flask_restful import Resource, Api app = Flask(__name__) TodoSimple(Resource): def get(self, todo_id): return {todo_id: todos[todo_id]} def put(self, todo_id): todos[todo_id] = request.form['data'] return {todo_id: todos[todo_id]} api.add_resource(TodoSimple0 码力 | 50 页 | 253.09 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.6Flask from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': 'world'} api.add_resource(HelloWorld, '/') if __name__ defining methods on your resource. A basic CRUD resource for a todo application (of course) looks like this: from flask import Flask, request from flask_restful import Resource, Api app = Flask(__name__) TodoSimple(Resource): def get(self, todo_id): return {todo_id: todos[todo_id]} def put(self, todo_id): todos[todo_id] = request.form['data'] return {todo_id: todos[todo_id]} api.add_resource(TodoSimple0 码力 | 46 页 | 245.60 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.10Flask from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': 'world'} api.add_resource(HelloWorld, '/') if __name__ defining methods on your resource. A basic CRUD resource for a todo application (of course) looks like this: from flask import Flask, request from flask_restful import Resource, Api app = Flask(__name__) TodoSimple(Resource): def get(self, todo_id): return {todo_id: todos[todo_id]} def put(self, todo_id): todos[todo_id] = request.form['data'] return {todo_id: todos[todo_id]} api.add_resource(TodoSimple0 码力 | 39 页 | 212.29 KB | 1 年前3
Scrapy 0.12 Documentationdownloaded. Spider Middleware Customize the input and output of your spiders. Extensions Add any custom functionality using signals and the Scrapy API Reference Command line tool Learn about the command-line sites being printed in your output, run: scrapy crawl dmoz.org Using our item Item objects are custom python dicts; you can access the values of their fields (attributes of the class we defined earlier) from inside projects. For example, the fetch command will use spider- overridden behaviours (such as custom USER_AGENT per-spider setting) if the url being fetched is associated with some specific spider.0 码力 | 228 页 | 462.54 KB | 1 年前3
Scrapy 0.14 Documentationdownloaded. Spider Middleware Customize the input and output of your spiders. Extensions Add any custom functionality using signals and the Scrapy API Reference Command line tool Learn about the command-line see sites being printed in your output, run: scrapy crawl dmoz Using our item Item objects are custom python dicts; you can access the values of their fields (attributes of the class we defined earlier) from inside projects. For example, the fetch command will use spider- overridden behaviours (such as custom USER_AGENT per-spider setting) if the url being fetched is associated with some specific spider.0 码力 | 235 页 | 490.23 KB | 1 年前3
共 511 条
- 1
- 2
- 3
- 4
- 5
- 6
- 52













