This is the code repository for Hands-On Blockchain for Python Developers, published by Packt.
Empowering Python developers in the world of blockchain and smart contracts
This book will help Python developers enhance their productivity in writing DeFi and NFT applications. You’ll gain in-depth knowledge of related technologies such as Layer 2 and IPFS, further expanding your understanding of the blockchain ecosystem.
This book covers the following exciting features:
- Understand blockchain and smart contracts
- Learn how to write smart contracts with Vyper
- Learn how to use the web3.py library and Ape Framework
- Discover related technologies like Layer 2 and IPFS
- Acquire step-by-step guide to writing an Automatic Market Maker Decentralized Exchange smart contract
- Build innovative, interactive, and token-gated web3 NFTs applications
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
from ape import accounts, project
import os
def main():
password = os.environ["MY_PASSWORD"]
dev = accounts.load("dev")
dev.set_autosign(True, passphrase=password)
contract = project.SimpleStorage.deploy(sender=dev)
num_value = contract.retrieve.call()
print(f"The num value is {num_value}")
Following is what you need for this book: This blockchain book is for developers interested in understanding blockchain and smart contracts. It is suitable for both technology enthusiasts looking to explore blockchain technology and programmers who aspire to become smart contract engineers. Basic knowledge of GNU/Linux and Python programming is mandatory to get started with this book.
With the following software and hardware list you can run all code files present in the book (Chapter 1-17).
Chapter | Software required | OS required |
---|---|---|
1-17 | Python (3.10+) | Windows, macOS, Linux |
1-17 | Vyper (0.3.10) | Windows, macOS, Linux |
1-17 | Ape Framework (0.7.23) | Windows, macOS, Linux |
Arjuna Sky Kok is a skilled quantitative software engineer with a passion for all things related to finance and technology. Arjuna lives in Jakarta, where he studied mathematics and programming at a university. Arjuna's academic achievements include double degrees in Computer Science and Mathematics. Right now, he's focusing his talent in the crypto space. Arjuna believes that DeFi and NFTs will serve as the foundation for future finance, and he also has a keen interest in AI, especially Large Language Models (LLM). Outside his job, Arjuna enjoys watching anime and climbing mountains.