1313class Collections (_Proxy ):
1414 """Access to project collections.
1515
16- Not a public constructor: use :class:`Project` instance to get a
17- :class:`Collections` instance. See :attr:`Project.collections` attribute.
16+ Not a public constructor: use :class:`~scrapinghub.client.projects.Project`
17+ instance to get a :class:`Collections` instance.
18+ See :attr:`~scrapinghub.client.projects.Project.collections` attribute.
1819
1920 Usage::
2021
@@ -29,7 +30,7 @@ def get(self, type_, name):
2930
3031 :param type_: a collection type string.
3132 :param name: a collection name string.
32- :return: :class:`Collection` object.
33+ :return: a collection object.
3334 :rtype: :class:`Collection`
3435 """
3536 self ._origin ._validate_collection (type_ , name )
@@ -39,7 +40,7 @@ def get_store(self, name):
3940 """Method to get a store collection by name.
4041
4142 :param name: a collection name string.
42- :return: :class:`Collection` object.
43+ :return: a collection object.
4344 :rtype: :class:`Collection`
4445 """
4546 return self .get ('s' , name )
@@ -50,7 +51,7 @@ def get_cached_store(self, name):
5051 The collection type means that items expire after a month.
5152
5253 :param name: a collection name string.
53- :return: :class:`Collection` object.
54+ :return: a collection object.
5455 :rtype: :class:`Collection`
5556 """
5657 return self .get ('cs' , name )
@@ -61,7 +62,7 @@ def get_versioned_store(self, name):
6162 The collection type retains up to 3 copies of each item.
6263
6364 :param name: a collection name string.
64- :return: :class:`Collection` object.
65+ :return: a collection object.
6566 :rtype: :class:`Collection`
6667 """
6768 return self .get ('vs' , name )
@@ -72,7 +73,7 @@ def get_versioned_cached_store(self, name):
7273 Multiple copies are retained, and each one expires after a month.
7374
7475 :param name: a collection name string.
75- :return: :class:`Collection` object.
76+ :return: a collection object.
7677 :rtype: :class:`Collection`
7778 """
7879 return self .get ('vcs' , name )
@@ -159,9 +160,10 @@ def list(self, key=None, prefix=None, prefixcount=None, startts=None,
159160 endts = None , requests_params = None , ** params ):
160161 """Convenient shortcut to list iter results.
161162
162- Please note that list() method can use a lot of memory and for a large
163- amount of elements it's recommended to iterate through it via iter()
164- method (all params and available filters are same for both methods).
163+ Please note that ``list()`` method can use a lot of memory and for a
164+ large amount of elements it's recommended to iterate through it via
165+ ``iter()`` method (all params and available filters are same for both
166+ methods).
165167
166168 :param key: a string key or a list of keys to filter with.
167169 :param prefix: a string prefix to filter items.
@@ -197,7 +199,7 @@ def set(self, value):
197199
198200 :param value: a dict representing a collection item.
199201
200- The method returns None (original method returns an empty generator).
202+ The method returns `` None`` (original method returns an empty generator).
201203 """
202204 self ._origin .set (value )
203205
@@ -206,7 +208,7 @@ def delete(self, keys):
206208
207209 :param keys: a single key or a list of keys.
208210
209- The method returns None (original method returns an empty generator).
211+ The method returns `` None`` (original method returns an empty generator).
210212 """
211213 if (not isinstance (keys , string_types ) and
212214 not isinstance (keys , collections .Iterable )):
0 commit comments