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
File details
Details for the file nostr_protocol-0.34.0-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc743fa4d83205357726e7f59dfc973f3882ff77b4cc06d4f76c1a70bcb8ef7b |
|
MD5 | 51d3f7447ad1bc5db2a5b2b80e172039 |
|
BLAKE2b-256 | 9eee1d927f7e9adc6add3694760b863f444c82d64caf33f45feab7f87400f6a0 |
File details
Details for the file nostr_protocol-0.34.0-cp312-cp312-manylinux_2_31_aarch64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp312-cp312-manylinux_2_31_aarch64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.12, manylinux: glibc 2.31+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 435f39ce69f0142735895b513f5085c0a5f8760acc3b963af45498518821f0de |
|
MD5 | 4a5d11c9efc0949e699aef42ea54c522 |
|
BLAKE2b-256 | d55019a65a465927d16b8e0a4d5465a49bdd8012d850cdf569edfc474e9e3acb |
File details
Details for the file nostr_protocol-0.34.0-cp312-cp312-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b7f53ed5e5fe4d1385947056330f28f662f90233c8d55947a56d86b885e8b54 |
|
MD5 | 33683afd37c53e9600145a406f5cf7b6 |
|
BLAKE2b-256 | 76f133771161ef189e7538141f412d2cde16a7a2c6ee5adebde0dc215b86d6a8 |
File details
Details for the file nostr_protocol-0.34.0-cp312-cp312-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp312-cp312-macosx_11_0_x86_64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.12, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ab2d3a12ce11ff89b2bed716e6bb5dbd9033cb0e6518f24f559c5ed75aa32e9 |
|
MD5 | aba9de70b93205577eafc543934064b6 |
|
BLAKE2b-256 | d2b9ebc242232f1ae9563dacf432b2f690060ebf850a6a767c8012cc487211d7 |
File details
Details for the file nostr_protocol-0.34.0-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e828764b3b8bfb463c5adc3014d91f85d78f92a86e053af50bd2390aa585e4b |
|
MD5 | 05e86487d1ca2bbb42ebd664da1cc931 |
|
BLAKE2b-256 | 9a1614a171800610e4a35f4dce319d413483180b90dcd886a7ba1625441a1532 |
File details
Details for the file nostr_protocol-0.34.0-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c986db53db6ae304504ca8df00b3b0578ebb8067507bbbbd3ef26177cf8ce14b |
|
MD5 | 1da141a6faab8bb80963e6cec2251fa2 |
|
BLAKE2b-256 | b3c1a40fa35897464d667be683de29be44644fb65232d96402a5f9896d5b76af |
File details
Details for the file nostr_protocol-0.34.0-cp311-cp311-manylinux_2_31_aarch64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp311-cp311-manylinux_2_31_aarch64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.11, manylinux: glibc 2.31+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 986f135a30db8fbb48d85f253390dac326663e917508d35407f25be477b9b8a1 |
|
MD5 | 0dbe74054ba04d3da6c5e33b91a537a0 |
|
BLAKE2b-256 | 77f4e5190f451f71562db124c5508cff092c4248195c6021877f26cd96ae7ee2 |
File details
Details for the file nostr_protocol-0.34.0-cp311-cp311-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8617cd7018173df89f7fbef7c18b8abe25ae8dbf1b4c8c52718899df82a54736 |
|
MD5 | 07543972a193e330916ae94003c6d922 |
|
BLAKE2b-256 | acec196d760dfe24a261d61e1c50e3102bc323ccc08d0ba20bb0eac3ea039251 |
File details
Details for the file nostr_protocol-0.34.0-cp311-cp311-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp311-cp311-macosx_11_0_x86_64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.11, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c76e322cff3145df6e0bd9354ca3eab0a876ceedf786ba84d89fd26735f0d50 |
|
MD5 | e2b86dddeed019ae03be7641219a2c5b |
|
BLAKE2b-256 | 60b782eae6d405b383edcc73d546402dd623ffc90b07f396398e7a0c4adba297 |
File details
Details for the file nostr_protocol-0.34.0-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9900ed9e55a48e32c2884240234f71a6b2973ccaf6b4dd0fc9ae9a67a97808c6 |
|
MD5 | d6c649e346412a953069d4a7408dbc09 |
|
BLAKE2b-256 | b969b9871210726c23c520300ac909168e7aa1180a46f7df545e2ab24caef8d8 |
File details
Details for the file nostr_protocol-0.34.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28ae2f4b0815d5c5504de42af572c8fa82604cb3db99725bde36bf36bda2b640 |
|
MD5 | 8a76f370d49155d4316aae9dcb35a93e |
|
BLAKE2b-256 | 84608aa606f45ae7fcfda1309a507b793783dcf095b46ede628eda7d78632503 |
File details
Details for the file nostr_protocol-0.34.0-cp310-cp310-manylinux_2_31_aarch64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp310-cp310-manylinux_2_31_aarch64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.10, manylinux: glibc 2.31+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6180aee147244a9c5bb3d73e4e3cbdee358d6cf9a144fd322a79ab9e48eac0c4 |
|
MD5 | d55071ade17d7e03ddaa0b5a3e8aab60 |
|
BLAKE2b-256 | 16cc9063264a00215cedf2b9239336ccb2b90ed0869f2cbb9fd9671e53bd43fe |
File details
Details for the file nostr_protocol-0.34.0-cp310-cp310-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23d0b4e643050a097d7066f32e8c75517bfbbe75478e103f98a51b835df522ab |
|
MD5 | 107db0bd1b5ab38687c707a2093e566e |
|
BLAKE2b-256 | 87b071ef7197098895a202dabac211fcdeb6bdf3ff5cca25823b3f44cad298dd |
File details
Details for the file nostr_protocol-0.34.0-cp310-cp310-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp310-cp310-macosx_11_0_x86_64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.10, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a0e310fd8771f6352f3c61748482292a7f6f166ef29cedc836c2f9f6e489fcd |
|
MD5 | 9d99333f5fa26364877ca881cf7b343e |
|
BLAKE2b-256 | 418dad571e8cd5a221589af744badca85dfb6d2554949c8af0c5b3c9b366c3b2 |
File details
Details for the file nostr_protocol-0.34.0-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 690e3f35c8227e44c815afa4a28131b230389f0047af02b53ccb1665bbefcb78 |
|
MD5 | 7ce2193bace8559e8a00474a132cd13b |
|
BLAKE2b-256 | 6b3fc45eea40d1d9f33c00fb83e7f181a0d6669cfc63fca4868fd6fb1afecd53 |
File details
Details for the file nostr_protocol-0.34.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4adb70b3cb628faa2845851d249efd6b7b633c035abf089d4ed09c89f80837f3 |
|
MD5 | 39d6e05a2609902dc90bac94e105975e |
|
BLAKE2b-256 | d013757308769420805d0afe4b651730b2bfe16db44022bfa227b38778b9192c |
File details
Details for the file nostr_protocol-0.34.0-cp39-cp39-manylinux_2_31_aarch64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp39-cp39-manylinux_2_31_aarch64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.9, manylinux: glibc 2.31+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c632a58fd3820dc044e4eb231f4fa6629994c99a476546db98832ee2d4a898f |
|
MD5 | 1ea948867a41db2548bd2e53039ff3c6 |
|
BLAKE2b-256 | 4272fbbf0847afbec01a27a5d7d547682c574b83929f974cd6e8c59936df43b5 |
File details
Details for the file nostr_protocol-0.34.0-cp39-cp39-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp39-cp39-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3d874c116fc114e0ae28d658ec6ef4777eb7c721be4e72f79b5f28a1173bcf5 |
|
MD5 | aa08387534df4b09e217846e0801a6e0 |
|
BLAKE2b-256 | ac3c53946b746d8ba97764ca3fb9615d6b0622eafdc1f5b5b8cecbe268c1d574 |
File details
Details for the file nostr_protocol-0.34.0-cp39-cp39-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp39-cp39-macosx_11_0_x86_64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.9, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62e274876ebb504ef38fb1657473f7e491eaab86310567c446218128888260da |
|
MD5 | 888cf23dcb486acd3332ef655ac63fae |
|
BLAKE2b-256 | f5ccba35f3ee6db4faa29c184188844aa47c65577ad6e635ed7e6e7815f3933b |
File details
Details for the file nostr_protocol-0.34.0-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: nostr_protocol-0.34.0-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b8df0136f5e603f22c257febe7240bbf9cec73e337785f073c4c2907e7b3516 |
|
MD5 | 444bc0f37dc425b097d9afa3101ae501 |
|
BLAKE2b-256 | 7230c8ac3d2cfc5c5f6ddf770ac4664d97b9e59d065b298106d2af4e27f665ba |