MCPcopy Index your code
hub / github.com/apify/crawlee-python / crypto_random_object_id

Function crypto_random_object_id

src/crawlee/_utils/crypto.py:21–24  ·  view source on GitHub ↗

Generate a random object ID.

(length: int = 17)

Source from the content-addressed store, hash-verified

19
20
21def crypto_random_object_id(length: int = 17) -> str:
22 """Generate a random object ID."""
23 chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
24 return ''.join(secrets.choice(chars) for _ in range(length))

Callers 15

from_urlMethod · 0.90
new_proxy_infoMethod · 0.90
__init__Method · 0.90
_openMethod · 0.90
__init__Method · 0.90
openMethod · 0.90
openMethod · 0.90
openMethod · 0.90
_openMethod · 0.90
__init__Method · 0.90
openMethod · 0.90
openMethod · 0.90

Calls

no outgoing calls