Blockchain-Python
Blockchain-Python is a Python library for creating a basic blockchain structure.
Installation
You can install Blockchain-Python using pip:
pip install blockchain-python
import blockchain_python as bcp
# Initialize Blockchain
blockchain = bcp.Blockchain()
# Add a block with transaction data
blockchain.add_block('transaction 1')
# Read the first block
blockchain.read_block(0)
# Show all blocks
blockchain.show_all_blocks()
Example
import blockchain_python as bcp
# Initialize Blockchain
blockchain = bcp.Blockchain()
# Add multiple blocks
blockchain.add_block('transaction 1')
blockchain.add_block('transaction 2')
blockchain.add_block('transaction 3')
# Read the second block
blockchain.read_block(1)
# Show all blocks
blockchain.show_all_blocks()
Release files for blockchain-python 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| blockchain_python-0.0.2.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| blockchain_python-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / blockchain_python-0.0.2.tar.gz
| Download URL | blockchain_python-0.0.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c313830b8e033ba204f8bd45dc0f722c417addf7d95f281dbebc41f0e61d4116
|
|
BLAKE2b-256 checksum How to use checksums |
d731c56daf417b5368cf90178f48baaedc00a96f4704a3290a79cee5577de82d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.13
|
Release files / blockchain_python-0.0.2-py3-none-any.whl
| Download URL | blockchain_python-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f8579bdf41285b06443c2c0afa2281bdde2d9752b97147ea7f444c662089882
|
|
BLAKE2b-256 checksum How to use checksums |
88ca90842371817bf999ef99e57aa3395a267cd2f2453cceab6d38435cf126a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.13
|