Skip to main content

StupidBC

StupidBC is a simple Python implementation of a blockchain.

Installation

Use the package manager pip to install StupidBC.

pip install StupidBC

Usage

from blockchain import BlockChain

bc = BlockChain()

for i in range(10):
    new_block = blockchain.create_block(f"Lucas é um gostoso!")
    bc.mine(new_block)
    bc.add_block(new_block)

print(blockchain._chain)

Running Tests

In the terminal, run the following command

pytest

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Acknowledgments

  • Lucas Santos - Implemented a blockchain in typescript - khaosdoctor

Metadata

Release files for StupidBlockChain 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for StupidBlockChain 1.0.0
File Size Uploaded
StupidBlockChain-1.0.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for StupidBlockChain 1.0.0
File Interpreter ABI Platform
StupidBlockChain-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / StupidBlockChain-1.0.0.tar.gz

Download URL StupidBlockChain-1.0.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1971b947116be29e8f348093845e7bceeffcb83dcd375e0720005101ff7688c1
BLAKE2b-256 checksum
How to use checksums
31334cdef0266491b1c03d7657a5cc3545a27f305570580daada9e57f7347d49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.1

Release files / StupidBlockChain-1.0.0-py3-none-any.whl

Download URL StupidBlockChain-1.0.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d7fed695b5356e445e4ff0948f3bb45a40d7162cb77d28926e652f23753e518
BLAKE2b-256 checksum
How to use checksums
70a5d95e33df4cbb2c18e5508935256c47809e907e427422708dde4252f07735
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page