Registry / security / types-itsdangerous

types-itsdangerous

JSON →
library1.1.6pypypiunverified

Typing stubs for itsdangerous, providing type annotations for secure data serialization. Current version 1.1.6, updated as part of typeshed releases.

pip install types-itsdangerous
INSTALL
IMPORT
SIG · TYPES-ITSDANGEROUS
T
types-itsdangerous
securitypythonv1.1.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Signer
✓ from itsdangerous_stubs import Signer
✗ from itsdangerous.signer import Signer

Basic usage of URLSafeTimedSerializer with type stubs.

from itsdangerous import URLSafeTimedSerializer s = URLSafeTimedSerializer('secret-key') token = s.dumps({"user_id": 1}) data = s.loads(token, max_age=3600) print(data)
Debug
Known issues
gotchatypes-itsdangerous does not provide runtime functionality; it only supplies type hints. Ensure itsdangerous itself is installed separately.
fix
Install both: pip install itsdangerous types-itsdangerous
affects: all
gotchaAs part of typeshed, stubs may lag behind the latest itsdangerous release. Check compatibility if using newer versions.
fix
Check itsdangerous version and typeshed stub version match; update both if needed.
affects: all
Upgrade
Version history
1.1.6latest on PyPI · released Nov 26, 2021
Audit
Dependencies
itsdangerousrequiredRuntime library for which stubs are provided
Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources
types-itsdangerous — pip install types-itsdangerous · libregistry