Nostr protocol implementation
Project description
Nostr - Python Package
Description
Python bindings of nostr library.
If you're writing a typical Nostr client or bot, you may be interested in nostr-sdk.
Getting started
pip install nostr-protocol
from nostr_protocol import Keys, EventBuilder
keys = Keys.generate()
print(keys.secret_key().to_bech32())
print(keys.public_key().to_bech32())
print("Mining a POW text note...")
event = EventBuilder.text_note("Hello from Rust Nostr Python bindings!", []).to_pow_event(keys, 20)
print(event.as_json())
More examples can be found in the examples/ directory.
Supported NIPs
Look at https://github.com/rust-nostr/nostr/tree/master/crates/nostr#supported-nips
Book
Learn more about rust-nostr
at https://rust-nostr.org.
State
This library is in an ALPHA state, things that are implemented generally work but the API will change in breaking ways.
Donations
rust-nostr
is free and open-source. This means we do not earn any revenue by selling it. Instead, we rely on your financial support. If you actively use any of the rust-nostr
libs/software/services, then please donate.
License
This project is distributed under the MIT software license - see the LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for nostr_protocol-0.12.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9414905a0f0c3e1391aa5d383bd91eca22cac9cb4f2481de771e9bf3a314b0b1 |
|
MD5 | 85795341f2d20c280d5d307eec508d5c |
|
BLAKE2b-256 | 7916a9e8395b670062706b1d71633d621a8d854daf5235cee4da872fc608e493 |
Hashes for nostr_protocol-0.12.0-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 209b8398af644f852ab22092e18bfcfa745fd15c420f0d2aa4d03ca5c5f452c3 |
|
MD5 | 1059ffcf0a69ea43b08bd69762e6c4b6 |
|
BLAKE2b-256 | be83c69f26f9a57f2ff749b5b7f907d310309f115af306007e397f06734db0a9 |
Hashes for nostr_protocol-0.12.0-cp312-cp312-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7f5b07ba6f04475e23b375ad3e9d12f96bdb4068ff0f1f84b3d4eea53641a99 |
|
MD5 | 07e13b795a44de9ebaf87c1bde277220 |
|
BLAKE2b-256 | 26ca0ba5cf64094ce960ed39ad02ac34f2df469efeec83ad4eed5d58a83c4a26 |
Hashes for nostr_protocol-0.12.0-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 493f1288938f745b0b180ab1fca87cf5207faf46e41e91d444b31c978aa98caf |
|
MD5 | 6a5b538b2afde2f58806d2131589dfee |
|
BLAKE2b-256 | 430e8d9440272dcf1309140bc7b9145276ede6ac114b97abe3f4de96d24a1036 |
Hashes for nostr_protocol-0.12.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 237377629e18176355227b43782564440278d1f99412e235a91107c81b7700ef |
|
MD5 | 10cd74b39d81f2b45f07e5e4395e33fa |
|
BLAKE2b-256 | aec49119185637d9702e2c51ca31ddbc70e3ff17a8f1f2aed94592c6c649dd51 |
Hashes for nostr_protocol-0.12.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 585c72af0a8bab12152d47c72ddc7195355571eed03aa002634841e6d55e50c5 |
|
MD5 | 5765742d396a57d0ef94fd3ec5bea126 |
|
BLAKE2b-256 | aa14118740be28a9d21b5fc31727e4ac28971ccce0ebb129312fdbd99d6e97fd |
Hashes for nostr_protocol-0.12.0-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 740299b15cd0ae71765a79788fc39f05e9387578083f454bc68f884c2c77952c |
|
MD5 | 1fcdcca7c01a7384d7a31ebb22ca1136 |
|
BLAKE2b-256 | 880769620a47f7d346a6e0dbcc737e3cb726bf120d418c64b2c74fe88348f1b2 |
Hashes for nostr_protocol-0.12.0-cp311-cp311-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20fc56ed2ad25910f4df900cc0d5c1b678660e43f85623534b0db82db7129f44 |
|
MD5 | 7bbd83c623bc6bff2305cc899e32df07 |
|
BLAKE2b-256 | 4555e3dc6000f4da731cef10002eef941c64998a89fa5fc66551bb024b318b5f |
Hashes for nostr_protocol-0.12.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40c86d92c9fc9f733a8b094be5fa15292c90f0fdd69d4d143e3ed3e0aa07c2cd |
|
MD5 | 3a0c66b28a52ff062da0f66b44faeebb |
|
BLAKE2b-256 | 5a00f6b1bebbedae2cda9020e606500eb1419667abc48f2741beb43039e38e2a |
Hashes for nostr_protocol-0.12.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 178473103ca3e6b16f4c668b8e1aaeb8d562126248aceee825162db0231f0321 |
|
MD5 | 2d9259a2c50c173c380aaf9930df9983 |
|
BLAKE2b-256 | a527419e7d2fce658d74060a435a3e67f5da6eb4d2d5b6536ce0f3681fd01126 |
Hashes for nostr_protocol-0.12.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eea3923914995a15ef673d632122a34b8fb4e24dbdd8ef447e20852131ddaf8 |
|
MD5 | d079daeef5ed17d422fee89ceef2f1fc |
|
BLAKE2b-256 | af69e0931e4d59b08baf108773ab046af385608f30ea0415fd38823132f55e80 |
Hashes for nostr_protocol-0.12.0-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 029476d4a5553093a08268c080581beaec8dc11693fbfc3319da0f5f6ddad0b3 |
|
MD5 | 4ecb8dd22ef054e55bb3c365718c7fb2 |
|
BLAKE2b-256 | d11160b45e63ede14199070129b4ef3cbeb81400513d017fb735d00f5499d02b |
Hashes for nostr_protocol-0.12.0-cp310-cp310-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d72458ca06e83737189a378408505496115414f99a652457ede9666ba7f8af6 |
|
MD5 | b6581102b2bbe5f396e323e701a29ad2 |
|
BLAKE2b-256 | d515f4875527f0aa39197d67164f730f85fa6ff1beadf44df37f47b7fcc1e24f |
Hashes for nostr_protocol-0.12.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a73d26a8fafeef374d74242fd90831a07917c47f86919130774dfb7a6e111cf9 |
|
MD5 | e4358bfee14f90533b49fcb67cac9d54 |
|
BLAKE2b-256 | 08b4a66ac7edc70e8c385093f992ff157ad19f1ab0f42aa58367390e3476cf0b |
Hashes for nostr_protocol-0.12.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea1b80e6be1456f2713934fc2b11941e6ce33129855522c8aa7c147d2f681003 |
|
MD5 | f554ea91f158040f3ee4ea2ac9da1278 |
|
BLAKE2b-256 | 48302097cfd3b612f20ea85e64240414c8eda4db15f62a54f669862aa0a360da |
Hashes for nostr_protocol-0.12.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ea4ce5f078487cae3ed77c43201d1ff0a490b828b03362d2f91064d09f1e66b |
|
MD5 | 9d7271cd2711a26b38dd36b6109dec72 |
|
BLAKE2b-256 | 825aa9888109bb2d7085b18c39021d49952a738d27af29a9630eadf34c7c87b9 |
Hashes for nostr_protocol-0.12.0-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8805cd8089c80d81deedf1757d52f09c38908d985d43177e9282bcd493426fbe |
|
MD5 | 34a5860769241b14e7a835508b1c4269 |
|
BLAKE2b-256 | a5348dc67e611e7e02c6cb41d67441635d16a0bc3424e26348f0eb5afc91847b |
Hashes for nostr_protocol-0.12.0-cp39-cp39-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 143118ac5d27d2fa9774ac907c78b9fca9d48fe63d886cdf1019ef380f9bace4 |
|
MD5 | 619e2818b836f16339fe394c7532bfcd |
|
BLAKE2b-256 | 01d7cb512253ec813f1c910e701365a791b80eec50b9e47715e76083fab64b71 |
Hashes for nostr_protocol-0.12.0-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc4c52647377e42f4072a81e55a183713afccd112e6dc6f61f2e13e2cba14af4 |
|
MD5 | 2c7dbea88317df9d31313864ebe4019d |
|
BLAKE2b-256 | 4c0362f451db41d8db7e776bd3f36e968e30103bbb70376ef048fd1d3e725985 |
Hashes for nostr_protocol-0.12.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bcdf2cad096ef30e1e7ade560b3e544950c87c8175a24947fa01c95a68f11c6 |
|
MD5 | bcf497fadf3194e22eb5feeee1187aa9 |
|
BLAKE2b-256 | 73e4abc1c45e0470cb0dfacea66ab30a540b564e0bc7b33c3755039b296e7d03 |