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.32.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2e93752525c5250dc338fa3f96521a2faca5861e495ea290e3738cc721b8c81 |
|
MD5 | e03ae3a3b3bc4cab4325e3772e18df5e |
|
BLAKE2b-256 | a7ef61661664a79dc9bb3ec73576fc0c7a783890794d1b4c8ff99ed32ea3654e |
Hashes for nostr_protocol-0.32.1-cp312-cp312-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4092a3738a2445a8491068e3f48703e68bc19872c264e6fdd68cc7329ee8d807 |
|
MD5 | 36f21017c95c773a666da26ae071d217 |
|
BLAKE2b-256 | 067f7acc03c27c956abeb9a739a1966f47417073f6cda8bd9a151765e349d6a3 |
Hashes for nostr_protocol-0.32.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 314c391283d8ba235f5100de7861daf8d7f1cb44de91c4e50def1627a78dd472 |
|
MD5 | 81c30b66169d2c0289a8ae1a94d27274 |
|
BLAKE2b-256 | 715ce2450dfcf5012777b9193a21b6e8621de92af7c321d9ede402ad1cea5da7 |
Hashes for nostr_protocol-0.32.1-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a236b085201a8de7b7ce9bad7db49581e1a35511c34399dcac9d50b39fd200ea |
|
MD5 | 0b66badfd078b50543bcc465c3f88ef4 |
|
BLAKE2b-256 | 3faac874ee6e003fe10e9f620774cbee92d52106951921b656b8bc95077b922c |
Hashes for nostr_protocol-0.32.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7479959d0162fa6b52000f4e4b842fb509b7c17e70057dda3ac1dabba8c7ef63 |
|
MD5 | 870db53698d4a5d872cafd315664d184 |
|
BLAKE2b-256 | f122e6c7874bac26db2f425ccf9a2cfed3ca797a1466e9c1f5c9debe1eb3652e |
Hashes for nostr_protocol-0.32.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13ccc6d003066947da00b50004db65ac487282873cac2aec309f69d990e0f33b |
|
MD5 | 71b84a360e4376fc3e8e285ac5aedaf0 |
|
BLAKE2b-256 | 4b87244f900de8c65fc65281ba0a497217c9671e5a83c50f4eecceb6549e6758 |
Hashes for nostr_protocol-0.32.1-cp311-cp311-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dffb0bde7524b14856393d6b56f3f027c2558a7f85816e3c630e0d6b13616af3 |
|
MD5 | e8aaa2711dd1189678d2eebcf49c9d0b |
|
BLAKE2b-256 | 2ea078b00e7ddef357bcc6502b5588d5675964824509b228da55d21f6ebf15fb |
Hashes for nostr_protocol-0.32.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f143ce112147bd7c61df348863d1afdc3d8efb70694fcd19834a8e9bcbe26bd |
|
MD5 | 893b3ed4b7e260ac8682edab7811badf |
|
BLAKE2b-256 | 26702a1da950e863230c5d80483ade8c06ec8ad549ee18f22987ace0be92a908 |
Hashes for nostr_protocol-0.32.1-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6ae5526865d455b18f8b4842fea0502b6a4894411bedd8aab411bc5921fe468 |
|
MD5 | ae8eef470d0f705ba2c9c0441cb5c0cf |
|
BLAKE2b-256 | 2d7c74d47b28494947850535e932b721c5b37ea60998ec69e2e1f69fa7f64d6c |
Hashes for nostr_protocol-0.32.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af62ca147d2c0851368cd93b92704c7c35eece653837b6b2c7a7ce334b3143b1 |
|
MD5 | 29343e6cbb7b0987d3ff5b27a1b111d0 |
|
BLAKE2b-256 | 57052b5699c8943fe5e8c03ad5419f29a100b79657a40bd2161dd6ae32c8a3d4 |
Hashes for nostr_protocol-0.32.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7624c6b746ad0c50589181bcae88a9ea02114d6b63804f120cf585e44941582 |
|
MD5 | 095a09b67e25b517f2ec347babfda37d |
|
BLAKE2b-256 | 7180d15c92e85358ed20550be69cd3b36d99555c80b976993c17e8288c3852f6 |
Hashes for nostr_protocol-0.32.1-cp310-cp310-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b022ce6a62e6d792cc1c92292f84fd4d67116715f05774992964c949666de361 |
|
MD5 | 6bbe55b0e4fa37452e82e19058d80838 |
|
BLAKE2b-256 | 1e379d624017aeb91e465b3e721e334bce3348416ff5b2231c4dd2dcb070a6fd |
Hashes for nostr_protocol-0.32.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbbd859748026da96f3cdd056bd954c353ee3e347c1f90bae06a037b0840b36c |
|
MD5 | 8e24a189120d0fa696590eb1dc34dff9 |
|
BLAKE2b-256 | 740472d9f8dd2844bc9942f6621a6aafbc2bafc3d40f69ad7cec3ebd83f0106d |
Hashes for nostr_protocol-0.32.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ae8e8bc6c8af1e62604fac802a559c44fae292c9b8cc1d5543eb1377d730e21 |
|
MD5 | 49c86df2dc6dc26fa20682caf1539877 |
|
BLAKE2b-256 | 2adbf4a80d5d14c10ce6bdcc7a9307a4a082acb62ef100578502bb5f83b4f94d |
Hashes for nostr_protocol-0.32.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4f2486de53bb27900609bddaafc155e7e1a229a3c1bb68490199f34e15898d4 |
|
MD5 | 6875e13bf0bf07171659b312f3673d00 |
|
BLAKE2b-256 | 707d15a08cd7360e06ea31d4aac11440123ae952f121a17b1b9a8f5bb679ed82 |
Hashes for nostr_protocol-0.32.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2429375ebb84a6e8f6eb7d1ef3a82f3ff1626c891639f5dd952a2b335b9a1a5 |
|
MD5 | 55124ee7df999c16dfb93e90233930c3 |
|
BLAKE2b-256 | bcbb0cb2e8803086cfa374eab60f318d7921017ea3f73b61a6a119cfb6f638b4 |
Hashes for nostr_protocol-0.32.1-cp39-cp39-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 919070c3d1df5ffeac621907111a6adc902d6ee1a4d4f4b8e9d84632eabd337a |
|
MD5 | 10ee17ee5bcd9dca20c137f5a83179cf |
|
BLAKE2b-256 | 22c89146509096db524b39ecf500b7acf7efc6bc595ae7e060b1d6591b912703 |
Hashes for nostr_protocol-0.32.1-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a326e934ef7b6c0798fee7cfcac021c131200048134c3716c6b9b665a63f9748 |
|
MD5 | 08693d56cfa9edae30d10a0f0132665e |
|
BLAKE2b-256 | e6ade87aa1ecc74e347a680a4b39d829983aadd0bc8e8dda34f7b33831ef9160 |
Hashes for nostr_protocol-0.32.1-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c13aabcb7d4e54da0feb3473be50b8611bb8692119ef7b23c33c440a8e29717 |
|
MD5 | 0ec3a45ae4bf686af65c86e49475ad0b |
|
BLAKE2b-256 | cd2038936eb59341aeaac5053a5befdd97a16ebf9da3e098a129b00510eb6759 |
Hashes for nostr_protocol-0.32.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23d7c9b083505e52f0dc9ede19197cef80fb190d0855e69a818a432abe3de788 |
|
MD5 | 72e343f302fb1b2ad7e9a153fbe20fc6 |
|
BLAKE2b-256 | 2dbb1f08dd7189a401cc02b4ed73ddb538523303c8f6182598b01894c09d1139 |