Skip to main content

Like Blockchain But Tastier™️

Project description

sausagelink

About

sausagelink is like Blockchain, but tastier. The package allows you to maintain a Link (chain) of Sausage (blocks) such that the data contained within each Sausage and the order of the Link cannot be tampered with.

saUsage is simple

from sausagelink import Sausage, Link
link = Link()
# link = Link(Sausage())
link.append({'foo': 'bar'})
print(link)
# [⎨0⎬, ⎨1⎬]
print(link[0].data)
# None
print(link[1].data)
# {'foo': 'bar'}
link[0].sizzle == link[1].previous_sizzle
# True
sausage = link[-1]
print(sausage.rancid())
# False
sausage.data = {'foo': 'baz'}
print(sausage.rancid())
# True

Install

pip install sausagelink

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

sausagelink-1.5.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

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