peewee Documentation Release 3.5.0
and combine expressions. Field types table lists the various field types peewee supports and the parameters they accept. There is also an extension module that contains special/custom field types. Contents: vendor-specific parameters easily. For instance, with Postgresql it is common to need to specify the host, user and password when creating your connection. These are not standard Peewee Database parameters, so they user='www-data', charset='utf8mb4') Consult your database driver’s documentation for the available parameters: Postgres: psycopg2 [http://initd.org/psycopg/docs/module.html#psycopg2.connect] MySQL: MySQLdb0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.4.0
and combine expressions. Field types table lists the various field types peewee supports and the parameters they accept. There is also an extension module that contains special/custom field types. Contents: vendor-specific parameters easily. For instance, with Postgresql it is common to need to specify the host, user and password when creating your connection. These are not standard Peewee Database parameters, so they user='www-data', charset='utf8mb4') Consult your database driver’s documentation for the available parameters: Postgres: psycopg2 [http://initd.org/psycopg/docs/module.html#psycopg2.connect] MySQL: MySQLdb0 码力 | 349 页 | 382.34 KB | 1 年前3peewee Documentation Release 3.0.0
and combine expressions. Field types table lists the various field types peewee supports and the parameters they accept. There is also an extension module that contains special/custom field types. Contents: vendor-specific parameters easily. For instance, with Postgresql it is common to need to specify the host, user and password when creating your connection. These are not standard Peewee Database parameters, so they user='www-data', charset='utf8mb4') Consult your database driver’s documentation for the available parameters: Postgres: psycopg2 [http://initd.org/psycopg/docs/module.html#psycopg2.connect] MySQL: MySQLdb0 码力 | 319 页 | 361.50 KB | 1 年前3peewee Documentation Release 3.6.0
vendor-specific parameters easily. For instance, with Postgresql it is common to need to specify the host, user and password when creating your connection. These are not standard Peewee Database parameters, so they user='www-data', charset='utf8mb4') Consult your database driver’s documentation for the available parameters: Postgres: psycopg2 [http://initd.org/psycopg/docs/module.html#psycopg2.connect] MySQL: MySQLdb parameter is always the name of the database, and after that you can specify arbitrary psycopg2 parameters [http://initd.org/psycopg/docs/module.html#psycopg2.connect]. psql_db = PostgresqlDatabase('my_database'0 码力 | 377 页 | 399.12 KB | 1 年前3peewee Documentation Release 3.1.0
and combine expressions. Field types table lists the various field types peewee supports and the parameters they accept. There is also an extension module that contains special/custom field types. Contents: vendor-specific parameters easily. For instance, with Postgresql it is common to need to specify the host, user and password when creating your connection. These are not standard Peewee Database parameters, so they user='www-data', charset='utf8mb4') Consult your database driver’s documentation for the available parameters: Postgres: psycopg2 [http://initd.org/psycopg/docs/module.html#psycopg2.connect] MySQL: MySQLdb0 码力 | 332 页 | 370.77 KB | 1 年前3peewee Documentation Release 2.10.2
and combine expressions. Field types table lists the various field types peewee supports and the parameters they accept. There is also an extension module that contains special/custom field types. Contents: Vendor-specific Parameters Some database drivers accept special parameters when being initialized. Rather than try to accommodate all these parameters, Peewee will pass back unrecognized parameters directly the host, user and password when creating your connection. These are not standard Peewee Database parameters, so they will be passed directly back to psycopg2 when creating connections: db = PostgresqlDatabase(0 码力 | 275 页 | 276.96 KB | 1 年前3Falcon v1.2.0 Documentation
‘foo’ or ‘foo=’ will result in the parameter being ignored. If you would like to recognize such parameters, you must set the keep_blank_qs_values request option to True. Request options are set globally localhost:8000/things More Features Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and working with request and response bodies. import json import logging import Each responder in a resource receives a Request object that can be used to read the headers, query parameters, and body of the request. You can use the standard help() function or IPython’s magic ? function0 码力 | 177 页 | 252.56 KB | 1 年前3PyWebIO v1.8.1 Documentation
input functions: Parameter of input functions There are many parameters that can be passed to the input function(for complete parameters, please refer to the function document): The results of the above datalist: Optional[List[str]] = None, help_text: Optional[str] = None, **other_html_attrs) Text input Parameters: label (str) – Label of input field. type (str) – Input type. Currently, supported types are:TEXT return 'Too young' input('Input your age', type=NUMBER, validate=check_age) Returns: Parameters: Returns: described as follows: value : The real value of the input, can be any object. it will0 码力 | 160 页 | 7.47 MB | 1 年前3PyWebIO v1.8.2 Documentation
input functions: Parameter of input functions There are many parameters that can be passed to the input function(for complete parameters, please refer to the function document): The results of the above datalist: Optional[List[str]] = None, help_text: Optional[str] = None, **other_html_attrs) Text input Parameters: label (str) – Label of input field. type (str) – Input type. Currently, supported types are:TEXT return 'Too young' input('Input your age', type=NUMBER, validate=check_age) Returns: Parameters: Returns: described as follows: value : The real value of the input, can be any object. it will0 码力 | 160 页 | 7.47 MB | 1 年前3PyWebIO v1.8.0 Documentation
input functions: Parameter of input functions There are many parameters that can be passed to the input function(for complete parameters, please refer to the function document): The results of the above datalist: Optional[List[str]] = None, help_text: Optional[str] = None, **other_html_attrs) Text input Parameters: label (str) – Label of input field. type (str) – Input type. Currently, supported types are:TEXT return 'Too young' input('Input your age', type=NUMBER, validate=check_age) Returns: Parameters: Returns: described as follows: value : The real value of the input, can be any object. it will0 码力 | 159 页 | 7.47 MB | 1 年前3
共 601 条
- 1
- 2
- 3
- 4
- 5
- 6
- 61