structlog: Structured Logging in Python (2026) python-pptx in 2026: Automate PowerPoint Reports with Python python-docx: Create and Edit Word Documents with Python (2026) pypdf: Merge, Split and Edit PDFs with Python (2026) openpyxl: Automate Excel Files with Python (2026) Hypothesis: Property-Based Testing in Python (2026) tiktoken: Count LLM Tokens in Python (2026) pydantic-settings: Typed Env Config in Python (2026) orjson: Fast JSON in Python (2026) PyArrow Tables + Parquet in Python (2026) SQLAlchemy 2.0 ORM in Python (2026): Mapped Models + Session Build Semantic Search with ChromaDB in Python (2026) Build ML Demos with Gradio in Python (2026) Build Interactive Python Web UIs with NiceGUI (2026) Build Interactive Web Apps with FastHTML (2026) Type-Check Python Fast with Astral ty (2026) Stream Large Responses with FastAPI JSON Lines (2026) Build Interactive UIs with FastAPI + HTMX (2026) Deploy FastAPI on Cloudflare Python Workers (2026) Serve a SPA with FastAPI app.frontend() (2026) Safe SQL & HTML with Python 3.14 t-strings (PEP 750) Hybrid Search in LanceDB with Vector + BM25 (Python 2026) Compose Agents with Pydantic AI v2 Capabilities (2026) Build Terminal UIs with Textual in Python (2026) Portable DataFrames with Ibis and DuckDB in Python (2026) Code Agents with Hugging Face smolagents in Python (2026) Constrained LLM Generation with Outlines in Python (2026) One DataFrame API for Pandas and Polars with Narwhals (2026) Turn PDFs into LLM-Ready Markdown with Docling (2026) Trace LLM Apps with Langfuse in Python (2026)

Blockchain Full Course for Beginners (3 Hours) — Python Blockchain, Solidity, Foundry, ethers.js dApp – Source Code

First you build a blockchain in plain Python, covering hashing, chained blocks, proof of work, signatures, a toy coin, Merkle trees and consensus between nodes. Then the course moves to Solidity on a local anvil chain, testing contracts with Foundry and calling them from ethers.js. It finishes with a tip jar dApp, a voting exercise and security basics. No real funds are used at any point.

Duration
3:13:35
Tools
Python 3.14.7, ecdsa 0.19.2, Foundry 1.8.4 (forge, cast, anvil), solc 0.8.37, Node.js 20.19.2, ethers 6.17.0, VS Code 1.140

Watch the course

Chapters

  1. 0:00:0001. Welcome: the finished dApp and the plan
  2. 0:06:5002. Setting up Python, Foundry and Node
  3. 0:11:5003. What a blockchain is (and isn't)
  4. 0:17:4804. Hashing with SHA-256
  5. 0:28:2005. Blocks and chaining
  6. 0:35:3906. Tamper detection
  7. 0:43:3007. Proof of work and difficulty
  8. 0:53:3108. Keys and digital signatures
  9. 1:03:2209. A toy coin with signed transactions
  10. 1:18:2110. Merkle trees and inclusion proofs
  11. 1:26:2711. Many nodes: forks and consensus
  12. 1:36:0612. Ethereum concepts on a local chain
  13. 1:46:0013. Solidity basics: a message board
  14. 1:57:1614. A simple token with Foundry tests
  15. 2:07:4715. Calling contracts with ethers.js
  16. 2:20:0316. Final project part 1: TipJar contract
  17. 2:30:2817. Final project part 2: the dApp page
  18. 2:44:0118. Practice project: a one-vote-per-address poll
  19. 2:56:0819. Security basics: finding bugs with tests
  20. 3:06:5820. What's next: an honest road map
Download source code

File: blockchain-full-course-code.zip

Size: 347.8 KB (356,168 bytes)

SHA-256:
22e81dafbfa985542b247877691a3000ba0ff65362eb68ba19ac2114e4407eae

Licence: code is released under the MIT licence, copyright PyInns. See LICENSE and README inside the zip. Free learning code, not production code.