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.33.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d5e1a2ff4fc1d28e439041be676e2db8046d248c1df9ed99429f12fe60247f5 |
|
MD5 | 149c38cad784808752a4a2e025cec1ab |
|
BLAKE2b-256 | ccb5bfb978ceb8123fb0f884849c505ea900f9c97cc7e1c0258295e3925e9e2b |
Hashes for nostr_protocol-0.33.0-cp312-cp312-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e24abf57ead3ff3afaf95b9c3c168439c34ed204e21a6b705fea937165624ac3 |
|
MD5 | c100200441286bee11dae02251c15994 |
|
BLAKE2b-256 | 11d33d00f4c63157492c9adf8f133194fd1a28db34ac2558c822ad64b7766767 |
Hashes for nostr_protocol-0.33.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cdd8c058b5340c4ef7a6c091a050a35fdb0f7cd9da2a834342b02b76ce5a00e |
|
MD5 | 86e5fd86892ab5a7519187bd35b41255 |
|
BLAKE2b-256 | 5f76b58b3aef76322f7a21ad8fa9f4109451218792caf080b8e119ddb51062df |
Hashes for nostr_protocol-0.33.0-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01c799a71ab4cdeccb9f336c23fe49cab97fa80d28b1a36efea8a9df521d2994 |
|
MD5 | ae4ec2950ccc0c65e309cdc313365b29 |
|
BLAKE2b-256 | 827c8980167da5be0257a2acb9b6cc8422eaf5f70172cf90068df261bf1b2575 |
Hashes for nostr_protocol-0.33.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dae7291e49e89723950ef06173d66e684226df20e093395c71a16c9cccd0f45a |
|
MD5 | 07ef60643c31156439ab9a0520cae0e4 |
|
BLAKE2b-256 | 27d72a92a57d16e1ea9dda649c205db0246f87d7a0e9e109370c5f37895ded2b |
Hashes for nostr_protocol-0.33.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd347a3702a8e6c056ae340724284a9c770bcf7852e643cfdd2d188df37426e8 |
|
MD5 | 3c8156d547863c4f74e9a8c7102d136d |
|
BLAKE2b-256 | 3f470f5128076fc273c9a407c02130b73d75ef8f7bb19eade8f8714029c469b5 |
Hashes for nostr_protocol-0.33.0-cp311-cp311-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92883725e160b69dfec4e109c9e918b1d1c38267c08700d7e73b617621a388f0 |
|
MD5 | aba3c7b43c81466efd425b4c61e41ada |
|
BLAKE2b-256 | 734258e54e288a9064ac32e0e62095ff5052021ea63ce53739f23493b3e8789b |
Hashes for nostr_protocol-0.33.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d6c6b0ad10d0873a8ecacacd5aae1bed812788196c38ebde1ab0ee02702e8ca |
|
MD5 | 48e4d56a510c35199ce1c414baae9fc6 |
|
BLAKE2b-256 | 6392b31110d8e56aa0012e5e0c3e136250a4e56af0272f4fee6abf31288112ed |
Hashes for nostr_protocol-0.33.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e177ad24ba142fa8e888fb9a263c9b5aa317d0def32eb8432638d78d9e7d7fe4 |
|
MD5 | b58acc6e79dfe725c6736b1bec6ebd44 |
|
BLAKE2b-256 | 6807aa65751d69d7f2ad4c902050eb83ed49d2d6d24ec751df6f3deedc47f6be |
Hashes for nostr_protocol-0.33.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c225e3d34904716a06a46f9b3909009e038754f7419f01fd1de850ad6211701 |
|
MD5 | 4c279d7c3580d2f946f68bfe9861e1a0 |
|
BLAKE2b-256 | afa2c12a3189364b85cef89ff4f9f8bce371baf4b5bf64c5bfea971cff901953 |
Hashes for nostr_protocol-0.33.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bbdf2c808d7b9b257ed252e00d10a41b1c9c9b722babe86432fc1f61a9fa5c0 |
|
MD5 | 7ff0e8d2f3880b8fc5f1e27e1123d5ff |
|
BLAKE2b-256 | 867fe6424bfb16d029d97d6aa9cc425e575f8afc96d8e759ef4818006a3926af |
Hashes for nostr_protocol-0.33.0-cp310-cp310-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f65366e5743dfebdb54eb9b654904ed9858b01aa2bc882db7e46774d369d80f |
|
MD5 | 3d31bcc27d176a36894dcd24bae4f2c7 |
|
BLAKE2b-256 | 39fe35a1822606dfa5bdfded5f18771a26b64f2bdd2352516dedadfb0e128c45 |
Hashes for nostr_protocol-0.33.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8abaaeed74daa02a7fc2af0c43fe5a68f85b764eaeb1bfca5157e6e4ab69bf6 |
|
MD5 | 1ddf15a3ab4b33e4f6f89826c4cfcfa3 |
|
BLAKE2b-256 | abeb5c9e9c4dcb841b30695977ff3025b790e334c3dcaa6fdaeb8298d4fc81ec |
Hashes for nostr_protocol-0.33.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa9ee0135a4cb4aaab2b6d47f5cc01feba1eaaf0087c30015d16db012ebfdd0e |
|
MD5 | 5f21bfb3475dd212fa0b93d5b6939e82 |
|
BLAKE2b-256 | 01b2abde41bc699631c7aa515caa977121c52bfdc4ba5c729ae0da01e1867e43 |
Hashes for nostr_protocol-0.33.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f869340165682fd720319ae94ad32271c47a9634db2595a72c8e0d57f690d1e |
|
MD5 | c32e53b1ae009525ab491007e33fc328 |
|
BLAKE2b-256 | ff9a500bb8b6f70395eb103c5691e15482895ed0036a42c6975c7e66a336f196 |
Hashes for nostr_protocol-0.33.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 210f41249ebde1dd2901c18e4845862df3d1602be4782310a737e3110d748db1 |
|
MD5 | 060a643035b3dc16081d8da1f801a747 |
|
BLAKE2b-256 | 7fbdd11e360e670434cde62ad0823c244cc386034eb49a4ec99c164269b723fc |
Hashes for nostr_protocol-0.33.0-cp39-cp39-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1e0c7330a21e98774ed542b728b75d4f7cba0edc253622a5a617d2df7b3de77 |
|
MD5 | ca34a40da2b7f8e35bd0fb529b427d6a |
|
BLAKE2b-256 | 01b11780e49f57f212c8aaec94fc2128d9917c15e45cf0056eda5497d413c992 |
Hashes for nostr_protocol-0.33.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f4b2574fa72529dc46aa381a7c52dee3f362e80892ee4a826ad0f7da6e6ad16 |
|
MD5 | 9d4ee9c85781323eeb9d0bdcce1fb818 |
|
BLAKE2b-256 | 86f16ae31a8e00c6fbf1aef50753c008727ee1aca5c51714629e53b883ba1ff0 |
Hashes for nostr_protocol-0.33.0-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b30dde004adc46c02390b0faf5aadacf5a637936bb38cbea56179c7d4bf6411 |
|
MD5 | 65a4dfa54b19976739f88ed5ff8c9b13 |
|
BLAKE2b-256 | 38dc401e2c763195131866681470d3c994e6eb63f5b3508e7e245531a26b2ca9 |
Hashes for nostr_protocol-0.33.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f196b69ab94bac0790ae1ad13727165c8d9fc8391f73f118fdc0dd9d7ae2338d |
|
MD5 | a189237100184d2cdcd41b61cf06d93e |
|
BLAKE2b-256 | 6b217e731f4f25be9634a0f331424119fb50d00974314ddee0c1586a56ab943d |