MCPcopy Create free account
hub / github.com/apify/crawlee-python / usable_session_count

Method usable_session_count

src/crawlee/sessions/_models.py:77–79  ·  view source on GitHub ↗

Get the number of sessions that are currently usable.

(self)

Source from the content-addressed store, hash-verified

75 @computed_field(alias='usableSessionCount')
76 @property
77 def usable_session_count(self) -> int:
78 """Get the number of sessions that are currently usable."""
79 return len([session for _, session in self.sessions.items() if session.is_usable])
80
81 @computed_field(alias='retiredSessionCount')
82 @property

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected