Flask-RESTful Documentation Release 0.3.10Nested Field Extending Flask-RESTful Content Negotiation Custom Fields & Inputs Response Formats Resource Method Decorators Custom Error Handlers Intermediate Usage Project Structure Use With Blueprints 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__)0 码力 | 42 页 | 84.60 KB | 1 年前3
Click Documentation
Release 4.2.dev0rigid in how it handles the command line interface. The upside of docopt is that it gives you strong control over your help page; the downside is that due to this it cannot rewrap your output for the current absolutely sure that this is intended behavior. Forcing lazy mode is also very useful to avoid resource handling confusion. If a file is opened in lazy mode, it will receive a close_intelligently method files will already be closed there. This limitation is unlikely to change because it would make resource handling much more complicated. For such it’s recommended to not use the file type and manually0 码力 | 101 页 | 407.32 KB | 1 年前3
PlantUML 1.2019.6 Guide de référence du langage• boundary • control • entity • database @startuml actor Foo1 boundary Foo2 control Foo3 entity Foo4 database Foo5 collections Foo6 Foo1 -> Foo2 : To boundary Foo1 -> Foo3 : To control Foo1 -> Foo4 d'un nouvelle objet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String note right : You can also put notes! Guide de référence du langage PlantUML Working with resources You can affect tasks on resources using the on keyword and brackets for resource name. Guide de référence du langage PlantUML (1.2019.6) 103 / 173 10.11 Exemple plus complexe0 码力 | 174 页 | 1.91 MB | 1 年前3
PlantUML 1.2019.1 Guide de référence du langage• boundary • control • entity • database @startuml actor Foo1 boundary Foo2 control Foo3 entity Foo4 database Foo5 collections Foo6 Foo1 -> Foo2 : To boundary Foo1 -> Foo3 : To control Foo1 -> Foo4 d'un nouvelle objet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String note right : You can also put notes! Alice --> Bob : ok @enduml Guide de Working with resources You can affect tasks on resources using the on keyword and brackets for resource name. @startgantt [Task1] on {Alice} lasts 10 days [Task2] on {Bob:50%} lasts 2 days then [Task3]0 码力 | 147 页 | 1.85 MB | 1 年前3
PlantUML 1.2019.9 Guide de référence du langage• boundary • control • entity • database @startuml actor Foo1 boundary Foo2 control Foo3 entity Foo4 database Foo5 collections Foo6 Foo1 -> Foo2 : To boundary Foo1 -> Foo3 : To control Foo1 -> Foo4 d'un nouvelle objet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String note right : You can also put notes! Guide de référence du langage PlantUML Working with resources You can affect tasks on resources using the on keyword and brackets for resource name. Guide de référence du langage PlantUML (1.2019.9) 103 / 173 10.11 Exemple plus complexe0 码力 | 174 页 | 1.93 MB | 1 年前3
PlantUML 1.2019.4 Guide de référence du langage• boundary • control • entity • database @startuml actor Foo1 boundary Foo2 control Foo3 entity Foo4 database Foo5 collections Foo6 Foo1 -> Foo2 : To boundary Foo1 -> Foo3 : To control Foo1 -> Foo4 d'un nouvelle objet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String note right : You can also put notes! Guide de référence du langage PlantUML Working with resources You can affect tasks on resources using the on keyword and brackets for resource name. Guide de référence du langage PlantUML (1.2019.4) 103 / 167 10.11 Exemple plus complexe0 码力 | 168 页 | 1.83 MB | 1 年前3
PlantUML 1.2019.3 Guide de référence du langage• boundary • control • entity • database @startuml actor Foo1 boundary Foo2 control Foo3 entity Foo4 database Foo5 collections Foo6 Foo1 -> Foo2 : To boundary Foo1 -> Foo3 : To control Foo1 -> Foo4 d'un nouvelle objet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String note right : You can also put notes! Guide de référence du langage PlantUML Working with resources You can affect tasks on resources using the on keyword and brackets for resource name. Guide de référence du langage PlantUML (1.2019.3) 103 / 159 10.11 Exemple plus complexe0 码力 | 160 页 | 1.72 MB | 1 年前3
PlantUML 1.2019.2 Guide de référence du langage• boundary • control • entity • database @startuml actor Foo1 boundary Foo2 control Foo3 entity Foo4 database Foo5 collections Foo6 Foo1 -> Foo2 : To boundary Foo1 -> Foo3 : To control Foo1 -> Foo4 d'un nouvelle objet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String note right : You can also put notes! Guide de référence du langage PlantUML Working with resources You can affect tasks on resources using the on keyword and brackets for resource name. Guide de référence du langage PlantUML (1.2019.2) 103 / 159 10.11 Exemple plus complexe0 码力 | 160 页 | 1.72 MB | 1 年前3
Référence Debian v2.124retourner alors à l’invite d’identification. Même si on se réfère à ces caractères de commande avec « control D » en majuscule, il n’est pas nécessaire de presser la touche majuscule. Le raccourci ^D, est aussi son mécanisme de déclaration de dé- pendances binaires versionnées dans les champs du fichier « control ». En voici une définition un peu simplifiée : Référence Debian 48 / 251 — « Depends » — Cela distribution/section/architecture binaire debian/control concaténés des paquets binaires Sources sommet de chaque combinaison distribution/section/source debian/control concaténés des paquets sources Table 20 码力 | 279 页 | 1.47 MB | 1 年前3
PlantUML 1.2023.11 Guide de référence du langageactor • boundary • control • entity • database • collections • queue @startuml participant Participant as Foo actor Actor as Foo1 boundary Boundary as Foo2 control Control as Foo3 entity Entity Collections as Foo6 queue Queue as Foo7 Foo -> Foo1 : To actor Foo -> Foo2 : To boundary Foo -> Foo3 : To control Foo -> Foo4 : To entity Foo -> Foo5 : To database Foo -> Foo6 : To collections Foo -> Foo7: To queue effectivement ce nouvel objet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String note right : You can also put notes! Alice --> Bob : ok @enduml Guide de0 码力 | 534 页 | 7.56 MB | 1 年前3
共 18 条
- 1
- 2













