Learn Python by Building a Blockchain and Cryptocurrency [Video]
Video
Video
$167.99
Subscription
$15.99
$10 p/m for three months
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with Video + Subscription?
Download this video in MP4 format, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
What do I get with Print?
What do I get with Print?
What do you get with video?
What do you get with video?
What do you get with Audiobook?
What do you get with Exam Trainer?
Video
$167.99
Subscription
$15.99
$10 p/m for three months
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with Video + Subscription?
Download this video in MP4 format, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Access this title in our online reader
Online reader with customised display settings for better reading experience
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Access this title in our online reader
Online reader with customised display settings for better reading experience
What do you get with video?
Download this video in MP4 format
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with video?
Stream this video
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with Audiobook?
Download a zip folder consisting of audio files (in MP3 Format) along with supplementary PDF
What do you get with Exam Trainer?
Flashcards, Mock exams, Exam Tips, Practice Questions
Access these resources with our interactive certification platform
Mobile compatible-Practice whenever, wherever, however you want
-
Free ChapterGetting Started
-
Diving Into the Basics of Python
- Module Introduction
- Understanding the REPL and Data Types
- Working with Variables
- Working with Numbers
- Using Operators
- Understanding a "Special" Behavior when Working with Numbers
- Working with Strings
- Working with Lists
- Adding & Removing List Items
- Preparing the Blockchain - The Theory
- Installing our IDE
- Using Functions to Add List Items
- Accessing the Last List Item
- Adding Arguments to Functions
- Understanding the "return" Keyword
- Using Default Arguments
- Working with Keyword Arguments
- Using the "input" Function
- Avoiding Repetitive Code Execution
- Understanding the Variable Scope
- Exploring the Official Documentation
- Adding Comments and Doc Strings
- Structuring Multi Line Code in Python
- Wrap Up
-
Working with Loops & Conditionals
- Module Introduction
- Understanding Loops - Theory
- Creating a "for" Loop
- Creating a "while" Loop
- Understanding Conditionals - Theory
- Adding "if-else" to our Blockchain
- Working with "elif"
- Understanding "break" & "continue"
- Improving our Code with Loops & Conditionals
- Understanding Boolean Operators - "is" & "in"
- The "not" Keyword
- Understanding "and" and "or"
- Grouping Conditionals
- What About "switch" in Python?
- Verifying our Blockchain
- Using Conditions inside the "while" Loop
- Using "else" in Loops
- Adding the "range" Function
- Wrap Up
-
Understanding Complex Data Structures
- Module Introduction
- Understanding the Required Data Structure for our Blockchain
- Working with Iterables
- Choosing the Right Datastructure
- Transactions with Dictionaries & Tuples
- Unpacking the Tuple
- Mining Blocks
- Hashing Previous Blocks
- Understanding List Comprehensions
- And What are Dict Comprehensions?
- Combining List Comprehensions & "if"
- Improving the Blockchain Validation Logic
- Managing a List of Participants in the Blockchain
- Calculating Balances
- Rewarding the Miners of our Blockchain
- Verifying Transactions
- Understanding Reference vs Value Copying.
- Working with the Range Selector
- Understanding Shallow vs Deep Copies
- Comparing "is" & "=="
- Diving Deeper Into Iterable Methods
- Understanding the "all" & "any" Functions
- Comparing Iterables
- Wrap Up
-
Working with Functions & Strings
- Module Introduction
- Comparing Strings & Lists
- Understanding the "format" Method
- Escaping Characters
- Formatting Strings Conveniently with "f"
- Adding String Formatting to our Project
- Understanding the "map" Function
- Working with Lambda Functions
- Reducing Lists
- Unpacking Function Arguments
- Fixing a Bug
- Wrap Up
-
Working the Python Standard Library
- Module Introduction
- Exploring the Python Standard Library
- Importing Packages - Theory
- Importing "hashlib" to create a Unique Hash
- Using Other Import Syntaxes
- The "Proof of Work"
- Adding the Proof of Work to our Blockchain
- Including the Proof of Work in our Mining Function
- Fixing a Hash Order Fault
- Splitting Up our Code
- Wrap Up
-
Working with Files
- Module Introduction
- Handling File Access
- Reading Data from a File
- Reading Multi-Line Content
- Using the "with" Block Statement
- Adding File Access to our Blockchain
- Converting Strings into Python Objects
- Storing Data with Pickle
- Comparing Pickle & JSON
- Changing the Project Back to JSON
- Why we need Proper Error Handling
- Wrap Up
-
Handling Errors & Debugging
-
Object Oriented Programming
- Module Introduction
- What is Object Oriented Programming?
- Understanding Classes
- Creating a Class
- Comparing Classes, Instances & Dictionaries
- Understanding Class Attributes
- Constructor & Instance Attributes
- Printing Classes with Special Methods
- Private & Public Attributes
- Understanding Inheritance
- Planning Blockchain Classes
- Adding a "Block" Class to the Blockchain
- Saving Custom Class Objects via .json
- Adding a "Transaction" Class
- Inheritance in Action
- Adding a "Verification" Helper Class
- Initialising the "Node" Class
- Turning the Blockchain into a Class
- Adding a "Node" Class
- Understanding "Instance" vs "Class" vs "Static Methods" & "Attributes"
- Using "Static" & "Class" Methods on the "Verification" Class
- Using Private Attributes in the Blockchain
- Properties vs Attributes
- Wrap Up
-
Modules
- Module Introduction
- Creating Packages - Module Bundles
- The "pycache" Folder
- Module Docstrings
- Controlling Exports
- Understanding Execution Context & "__name__"
- Why we need a Private & Public Key Transaction Protection
- Using Anaconda to Install Third Party Packages
- Generating Keys with a Third Party Package
- Connecting the Node & the Wallet
- Generating Keys on the Node
- Saving & Loading Keys to Files
- Creating Transaction Signatures
- Adding a Signature to our Transactions
- Verifying Signatures
- Improving the Verification Logic
- Wrap Up
-
Adding HTTP with Flask
- Module Introduction
- HTTP Requests - The Basics
- Understanding API-Endpoints/ URLs
- Data Formats
- Planning our API
- Setting Up our Environment with Flask
- Adding our First Route
- Installing Postman
- Adding a POST Request
- Setting Up Routes to Manage our Wallet
- Returning Funds
- Adding Transactions
- Fetching Open Transactions
- Testing the Public Key
- Adding a User Interface
- Optional: Configuring our UI - Creating a Wallet
- Optional: Configuring our UI - Loading a Wallet and Adding Mining & Transactions
- Exploring our UI
- Wrap Up
-
The Node Network
- Module Introduction
- Adding Node Management Methods to the Blockchain
- Setting Up Routes to Add Nodes
- Adding a Remove Node Route
- Adding "get_Nodes" to get all Nodes
- Attaching a Node User Interface
- Running Multiple Nodes
- Sending Requests from within Python
- Broadcasting Transactions - Adding the Function & Route
- Broadcasting Transactions - Testing & Fixing Errors
- Broadcasting New Blocks: Adding the Function & Route
- Broadcasting New Blocks: Informing the Peer Nodes
- Broadcasting Transactions: Testing
- Solving Conflicts
- Understanding Consensus
- Finding Conflicts
- Implementing a Consensus Algorithm
- Testing Consensus
- Wrap Up
-
Next Steps and Course Roundup
About this
video
Python is easy-to-use and extremely versatile and powerful, making it one of the most popular programming languages. Python offers both object-oriented and structural programming features. The Blockchain technology is an exciting trend that’s here to stay.
This course will take you on a journey where you’ll learn Python by building a Blockchain and Cryptocurrency. It's very popular because it's easy to learn and use, runs on all operating systems, and allows you to build a broad variety of programs, be it web applications, desktop applications, utility scripts, or for data science and machine learning.
In this course, you'll learn a lot about the core concepts of the Blockchain and see how Python can be used for the many aspects that make up a Blockchain and Cryptocurrency. As a nice side-effect, you’ll see how a Blockchain works. This course will show you how to use Python to build your own basic Blockchain and Cryptocurrency (Coin). We’ll dive into the basics of Python and you’ll understand the complex data structures.
The code files and all related files are uploaded on the GitHub repository at https://github.com/packtpublishing/learn-python-by-building-a-blockchain-cryptocurrency
- Publication date:
- August 2018
- Publisher
- Packt
- Duration
- 16 hours 23 minutes
- ISBN
- 9781789610666