scrapy/docs/proposed/newitem-fields.rst

1.0 KiB

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> </head>

Item Field Reference

System Message: ERROR/3 (<stdin>, line 7)

Unknown directive type "module".

.. module:: scrapy.contrib_exp.newitem.fields

Field options

default

System Message: ERROR/3 (<stdin>, line 15)

Unknown directive type "attribute".

.. attribute:: Field.default

The default value for the field.

Field types

BooleanField

A true/false field.

DateField

A date, represented in Python by a datetime.date instance.

DateTimeField

A date with time, represented in Python by a datetime.datetime instance.

DecimalField

System Message: WARNING/2 (<stdin>, line 45)

Title underline too short.

``DecimalField``
---------------

A fixed-precision decimal number, represented in Python by a :class:`~decimal.Decimal` instance.

System Message: ERROR/3 (<stdin>, line 49); backlink

Unknown interpreted text role "class".

FloatField

A floating-point number represented in Python by a float instance.

IntegerField

An integer.

StringField

A text field.

System Message: ERROR/3 (<stdin>, line 72)

No suitable element following "class" directive

.. class:: StringField


</html>