Pages

Topics

Tools

↑↓navigate↵openescclose

All syntax guides

Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.

3,965 guides across 14 topics

Topics

Latest guides

Illustration of a digital signature verification process in Python, showing a key pair and a signed message.
Python

Python Cryptography: Sign and Verify Digital Signatures

Generate RSA and ECDSA keys, sign messages, and verify signatures in Python with the cryptography library. Includes common signing and verification pitfalls.

cryptographydigital-signaturesrsaecdsa
Illustration of RSA public and private key pair with encryption and decryption flow in Python.
Python

Python Cryptography: RSA Public and Private Keys

python cryptography rsa public private keys: Learn to generate, serialize, and use RSA public and private keys in Python with the cryptography library, including encry...

cryptographyRSApublic keyprivate key
Illustration of AES symmetric encryption in Python showing a key and encrypted data.
Python

Python Cryptography: AES Symmetric Encryption

Implement AES symmetric encryption in Python with the cryptography library: key generation, CBC and GCM modes, padding, authentication, and key management.

PythonAESsymmetric encryptioncryptography
Illustration of a Fernet encryption key and a secure token representing encrypted data in Python.
Python

Python Cryptography Fernet Encrypt Decrypt

Learn how to encrypt and decrypt data securely with Fernet in Python's cryptography library. This guide covers key generation, encrypting and decrypting bytes, handling InvalidToken errors, and rotating keys with MultiFernet.

FernetCryptographyEncryptionPython
Comparison of jsonschema and pydantic validation approaches in Python
Python

python jsonschema vs pydantic: Choosing the Right Validation Tool

Compare jsonschema and Pydantic for Python data validation: declarative JSON Schema vs type-hint-based models, type coercion, error handling, and when to use each.

JSON SchemaPydanticData ValidationType Hints
Illustration of a JSON document failing format validation with a ValidationError raised in Python
Python

Python jsonschema Formats and Validation Errors

python jsonschema formats and validation errors: Learn how jsonschema format validation works, why formats are ignored by default, and how to read and handle Validatio...

jsonschemaJSON SchemaPython validationerror handling
Diagram showing a JSON document with required fields, nested objects, and arrays being validated by Python jsonschema.
Python

Python jsonschema: Validate Required Nested and Arrays

python jsonschema validate json required nested and arrays: Learn how to use Python jsonschema to validate JSON with required fields, nested objects, and arrays, inclu...

jsonschemaJSON validationrequired fieldsnested objects
Comparison of Python tomllib and tomlkit TOML parsing libraries, showing read-only vs round-trip editing.
Python

Python tomllib vs tomlkit: Which TOML Parser?

python tomllib vs tomlkit: Compare Python's tomllib and tomlkit for reading and editing TOML files. Learn which library fits your parsing and round-trip needs.

TOMLtomllibtomlkitPython configuration
Illustration of a TOML configuration file being edited with Python's tomlkit library while preserving its comments and formatting.
Python

Read, Modify, and Write TOML with Python tomlkit

Learn how to read, modify, and write TOML files in Python with the tomlkit library while preserving comments, key order, and formatting.

tomlkitTOMLconfiguration filespyproject.toml
Illustration of a Python script reading a pyproject.toml file using the tomllib module
Python

Python tomllib: Read pyproject.toml Files

Read pyproject.toml with Python's tomllib: TOML loading, nested data, error handling, and tomli on older Python versions.

tomllibpyproject.tomlTOML parsingconfiguration files