Skip to main content

blockchain-python is a lightweight Python library for implementing blockchain technology. It provides an easy-to-use interface for creating decentralized ledgers with features like secure transactions, immutable ledger, and flexible data storage.

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blockchain_python-0.0.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blockchain_python-0.0.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file blockchain_python-0.0.2.tar.gz.

File metadata

  • Download URL: blockchain_python-0.0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for blockchain_python-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c313830b8e033ba204f8bd45dc0f722c417addf7d95f281dbebc41f0e61d4116
MD5 1d360ca89175d7cfbbe30386ec9d3b48
BLAKE2b-256 d731c56daf417b5368cf90178f48baaedc00a96f4704a3290a79cee5577de82d

See more details on using hashes here.

File details

Details for the file blockchain_python-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for blockchain_python-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8f8579bdf41285b06443c2c0afa2281bdde2d9752b97147ea7f444c662089882
MD5 cbc0f4ce124b7b8c8cdbf92e17bb3fcc
BLAKE2b-256 88ca90842371817bf999ef99e57aa3395a267cd2f2453cceab6d38435cf126a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page