Rust implementation of Nostr protocol.
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
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.11.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b20273d3e8e9a588a13552ef006b677d33e188f9585253c5427099efafdb0deb |
|
MD5 | d5bd02ec3b18cdffd78d07fa1f136178 |
|
BLAKE2b-256 | 405e36fa18fb747809b8d33478d0a31e21668f469e4a3591cd8dfa24499c3c17 |
Hashes for nostr_protocol-0.11.0-cp312-cp312-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 003cc5f180f9a4ca0f0b7ac68e720088df7ce0a2de15d0204b8a87f82b5344cf |
|
MD5 | 3d716d4be08d17e496ae85b6a1fe2bf3 |
|
BLAKE2b-256 | ca66b1693c014d36ee280f25f8d4a12dd3636e5820fc6246d33f0195cfeef622 |
Hashes for nostr_protocol-0.11.0-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b77db05fa84febf3716b2526de9fe7b30940e68bd4d9604a53b104813c21d9e1 |
|
MD5 | a576855a9eed05826cc044498c435396 |
|
BLAKE2b-256 | 539f62c9956dd69c08afd4380d1ed5531de4df66ed739471f0fc4059b13cd016 |
Hashes for nostr_protocol-0.11.0-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a285b862bb8e5f72ceb22c770fbaeaedc74351b551a20d5ba7557f17e740ee77 |
|
MD5 | 20ebcc5423ae51e613c6dd3adbfee4c6 |
|
BLAKE2b-256 | eb757bb7cac90cb51e2784d0b838baa251fb53e5f87b82f6e27e89be87bc3dfd |
Hashes for nostr_protocol-0.11.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff87183dde29e9039fc6a8fa5fc6d8ed862637857154c51b64fb3c2e7295f2ca |
|
MD5 | ad2ab532822f691edfa73acc1abb12aa |
|
BLAKE2b-256 | 3a7a4185f8a1537cd9dc61e6fa2ae0fd90d3cb72c4a5121f36175c3b4a7a34c0 |
Hashes for nostr_protocol-0.11.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93de1447ae318817ad0435c8299cb6165d03cf79c294e68344702e1408f99f69 |
|
MD5 | ba96c3b3368b1fa99ca5291c741e0841 |
|
BLAKE2b-256 | d8f96d702b225b3ab80a256b4a84ab34eac3841a02edf6e41535c5eafe3707e3 |
Hashes for nostr_protocol-0.11.0-cp311-cp311-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1f67b1d3c98cb68c6515913c7f466f658c2dd408a16543a52bd80058ab79791 |
|
MD5 | 1a7d4728e408356bea3129acb60753cc |
|
BLAKE2b-256 | 2dfc1bed16bd7915f16e58bf41609deb3167398682233bffe79b8b50bacd3e5c |
Hashes for nostr_protocol-0.11.0-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 522ca56f079cd3e91e74a23c1bd6870907af068b233bdb1be5eeb482150353bf |
|
MD5 | 556315624377c540b922111935e89137 |
|
BLAKE2b-256 | be7bc5ed3d5c8e327f4cbd8e01f66060a5b6f5f8ff7dbfbba0b085526fbdd73c |
Hashes for nostr_protocol-0.11.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55712dedc4832daeda87a6ad619f98322516591a45470535293bb8bd08dddfbf |
|
MD5 | 14a397138c5959803a69d4741b22bf56 |
|
BLAKE2b-256 | 8839796184b0ef729e3e7e09f6f17608de79d81fbb2d71839390a47dd679bb4a |
Hashes for nostr_protocol-0.11.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94f8bec038f5580f0cec1de1e957d678d939126b2f3cea90236f814d99834844 |
|
MD5 | dc7a67c4f4fb5c4987c97e3538b079cd |
|
BLAKE2b-256 | 809f02086fb84daa7fbbd16c85705fbe56d80f53dbb0194e21c6423708b30d07 |
Hashes for nostr_protocol-0.11.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8970c45c511c237d14e5f02f61c2f84041a2c989a61d7ccdb0c402b0894188b0 |
|
MD5 | 39e2f0c7ece8c246228f1d68371b97ef |
|
BLAKE2b-256 | 0de177527d5f33e61fcc1848e600b0fd680be8dfaf9a16fb7bb8da6f5d83f007 |
Hashes for nostr_protocol-0.11.0-cp310-cp310-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d55aaf4e5d9b23632eefa409fa59d8daa813d93d2caab9672fd29bc466dcdf4a |
|
MD5 | cc020ecc8a5e1ec181ea59c43fd35686 |
|
BLAKE2b-256 | 0425dda5843782d4263905aa2bc70221380c0ce49db50fb4d257bd76f2f0e3f6 |
Hashes for nostr_protocol-0.11.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdcfe171eb7ad48f9419ae82ddac95586a4c5d3597a186fe2956756eadb96da4 |
|
MD5 | 2ea9f1fca9085c77eaac0b44af825df2 |
|
BLAKE2b-256 | f222ba983b101ece0d93d87cd1bb2ec23f072275a3a53504f9c5179a8d07e1c8 |
Hashes for nostr_protocol-0.11.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32799ed38de53350ff6b2c76f7c578e0d86f8a72acfb7c6bae86f72ca42ab9c4 |
|
MD5 | ecc8c1e0e05745d75bd954391d07cce4 |
|
BLAKE2b-256 | 8dce11dbc35eb27acedef4cbc0077ec17944680b657366258971f6f6d8480819 |
Hashes for nostr_protocol-0.11.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73c34d5433300a740f5b5cc073ada9c62ab8aedff422ffabd6a2ea782ee8c32c |
|
MD5 | 9aa3d909a07b07df7a20ce2e421f8964 |
|
BLAKE2b-256 | 98e8550d757459f0e279e023739bf867ad0cc4411da31dc97f4aae59113699f6 |
Hashes for nostr_protocol-0.11.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47349b4b4141655a1aafb60e712996dac89f853f811005ce4284a1b1c41562e6 |
|
MD5 | 06ffb332331bc85a96cff8b75bb0172c |
|
BLAKE2b-256 | 0b9122de4ca0252584781a00e6c3cbd97b2aa6c873067d81be1f820684b49fa8 |
Hashes for nostr_protocol-0.11.0-cp39-cp39-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2074e3589d57f631bdca802bf1ef705158d8cb59bd3f44b3c5a66793c88f2ec0 |
|
MD5 | 6ed3b1557441c6c5a815ad7d8e7e1dbe |
|
BLAKE2b-256 | 043e00085db0258193019e6431e349a76f1f57648501f5f1bf88c9469b8b6c14 |
Hashes for nostr_protocol-0.11.0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ef00877d1c18a88a32c67aab8339b0a04c059760f7c5e0ed40fa2566fc6c66d |
|
MD5 | 8b5ebf11387f493c2be871977e3a3647 |
|
BLAKE2b-256 | dea2469d7d1ea6bcf41ef7a1495edf1422221cbb1111a322eda0d1288a1d2645 |
Hashes for nostr_protocol-0.11.0-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c436f665689c5fe45be76fb661c68513531c1073b764640dd9b03ad1293e0bb |
|
MD5 | 3d8acfc12191ba5afe6e5c4566eed6c6 |
|
BLAKE2b-256 | f607bb0f59812264e292973f76603dd72bbed2d26b7db37bb95132f83f964bd1 |
Hashes for nostr_protocol-0.11.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dd2b38ba2f6af016042e8b720c8bd09612e2d69621f42a29098cb3843cdc706 |
|
MD5 | 128eb25ce43251723f126d1956acb2fa |
|
BLAKE2b-256 | 119b7128d7e44ecb4bc6ba10146942e5a686cd59a0d6be9803f33947388aa407 |