class documentation
class Settings(BaseSettings): (source)
This object stores Scrapy settings for the configuration of internal components, and can be used for any further customization. It is a direct subclass and supports all methods of :class:`~scrapy.settings.BaseSettings`. Additionally, after instantiation of this class, the new object will have the global default settings described on :ref:`topics-settings-ref` already populated.
Method | __init__ |
Undocumented |
Inherited from BaseSettings
:
Method | __contains__ |
Undocumented |
Method | __delitem__ |
Undocumented |
Method | __getitem__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __len__ |
Undocumented |
Method | __setitem__ |
Undocumented |
Method | copy |
Make a deep copy of current settings. |
Method | copy |
Make a copy of current settings and convert to a dict. |
Method | delete |
Undocumented |
Method | freeze |
Disable further changes to the current settings. |
Method | frozencopy |
Return an immutable copy of the current settings. |
Method | get |
Get a setting value without affecting its original type. |
Method | getbool |
Get a setting value as a boolean. |
Method | getdict |
Get a setting value as a dictionary. If the setting original type is a dictionary, a copy of it will be returned. If it is a string it will be evaluated as a JSON dictionary. In the case that it is a :class:`~scrapy... |
Method | getdictorlist |
Get a setting value as either a :class:`dict` or a :class:`list`. |
Method | getfloat |
Get a setting value as a float. |
Method | getint |
Get a setting value as an int. |
Method | getlist |
Get a setting value as a list. If the setting original type is a list, a copy of it will be returned. If it's a string it will be split by ",". |
Method | getpriority |
Return the current numerical priority value of a setting, or ``None`` if the given ``name`` does not exist. |
Method | getwithbase |
Get a composition of a dictionary-like setting and its `_BASE` counterpart. |
Method | maxpriority |
Return the numerical value of the highest priority present throughout all settings, or the numerical value for ``default`` from :attr:`~scrapy.settings.SETTINGS_PRIORITIES` if there are no settings stored. |
Method | set |
Store a key/value attribute with a given priority. |
Method | setdict |
Undocumented |
Method | setmodule |
Store settings from a module with a given priority. |
Method | update |
Store key/value pairs with a given priority. |
Instance Variable | attributes |
Undocumented |
Instance Variable | frozen |
Undocumented |
Method | _assert |
Undocumented |
Method | _get |
Undocumented |
Method | _repr |
Undocumented |
Method | _to |
Undocumented |