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.8.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c160f2df8ceb8afc009fb6945407c0bd02151cad517386aadebd033da66b1c1c |
|
MD5 | db6f910dabba691a269c482d0dee537e |
|
BLAKE2b-256 | b5c5c7b16016cd6195dbc5516175011c79acab0c96248a5c87f16b38dec17078 |
Hashes for nostr_protocol-0.8.0-cp312-cp312-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8df869997e465666a2cf37e2678768db676f11cbeb1bdee98bec052950afae0 |
|
MD5 | 2659a1687f16013b77010dc1e5415b8b |
|
BLAKE2b-256 | 2948b2e4513b4a1d80c43b7b5843747d719efd5892ae84ef3e5a03f6a605af3c |
Hashes for nostr_protocol-0.8.0-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6adfba03724088f74439cbc8c75d1f24259ec85dc3239b7a7c3649ae36a5682f |
|
MD5 | c8470257a9ede46f5466c8c6669b0cc4 |
|
BLAKE2b-256 | 2e79f9294bf0c3e38681118fe091c48372c466ac8ce7e7024220b66c56fdca97 |
Hashes for nostr_protocol-0.8.0-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb9c4b5405d034bc67a2b23b4156b426171f3a12331bd4e42930aa8e42a58061 |
|
MD5 | 6cffe0e707194379562bba2dd8cd51bb |
|
BLAKE2b-256 | b298b1805009f6ad5048e4dbf4a8858f65501e38f2642cb19eaeba5a4ddfeb9f |
Hashes for nostr_protocol-0.8.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3937db8f7a42e5394e67f29e8a7e47fc2b518ac2797db7d892e26ceed0c2a6f4 |
|
MD5 | 9fc06cce3ce93e498e606d2d7d05c976 |
|
BLAKE2b-256 | b3b83288acda1b3a51bdb28c34a2c4023aa93321f83c2956bc756c96609e9e05 |
Hashes for nostr_protocol-0.8.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c06d44f7ca1d661f34865b217e9aa186d6d804c59d0c5a373db7656e1e8cf38 |
|
MD5 | 6e5c742be9d6bab2bca3d00ea1287699 |
|
BLAKE2b-256 | 80e82a022864c905d7e41c1a65bd393aed4d6a394f051f33b707d394b5756f11 |
Hashes for nostr_protocol-0.8.0-cp311-cp311-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3ef9499d52064e5bdcdb9d2932529525fe627323d91ec739452fad41282737b |
|
MD5 | d758464bb0fd052b3b0696d73f9fdd3a |
|
BLAKE2b-256 | f1bc6c798853838b4d4e1a667d84d1285433ea72d11a31567f87b9f6e5b5f70a |
Hashes for nostr_protocol-0.8.0-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 984d61049edef6f82850b1b347ae116e2bec3822b80e68b0936b78066f724fe2 |
|
MD5 | 5d6f63a3fe9cc5505188ed6f10ee2638 |
|
BLAKE2b-256 | 7f7b735909185b7ff0784c7da1b7fa726e36cff70e11c523fa297bdb2f5f50d0 |
Hashes for nostr_protocol-0.8.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3e40ca2e074ed788b13f371a6bf5a60f7f1abdf2309ac6784c760547f44510e |
|
MD5 | ec0a7c632fcc1933de1ac038d10be1cd |
|
BLAKE2b-256 | af7f3ebb9c8b25f4b472a60d4efde4a9fcc63f9615ca3a58a707df688625bb29 |
Hashes for nostr_protocol-0.8.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b875ca0f3ad39c5a523501d4d968d46d6a9448c64a550e782b930aadd021f8dd |
|
MD5 | ce95d5c3b0c2ebcf0c8b7d7a9681de65 |
|
BLAKE2b-256 | f2fdd4d41509b2e3a40e637c5d75a5de545753f7242a41b3410e05bcb2cbfe38 |
Hashes for nostr_protocol-0.8.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89bb28ac85749cdd39e3590cf4b4acb56a05a8a6f5315a18d3469bac1e5a5f9c |
|
MD5 | f33c90eabf2ca9d699ef6e1f8f4857d2 |
|
BLAKE2b-256 | 168ddd1228fe286a5216d7562a915d8084e10ce04f5eeb6d0716ad0ec54d43b7 |
Hashes for nostr_protocol-0.8.0-cp310-cp310-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cf09b52d6246a8a4875a51f033debaf5ae40e03dda69d27fb46b2f25a71506e |
|
MD5 | d9749c739f15c373bb41689b39e2859e |
|
BLAKE2b-256 | 96d5685a27a3b78cdeff59d9bb328bdfeb02b50daac647ce0be260fbd24e67db |
Hashes for nostr_protocol-0.8.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d38f2591f43eba4ab3462222c84a4820403e62628633dc5303e5bf4924708f4 |
|
MD5 | 732c1a2ea8c13626d614e663c9c9a3c5 |
|
BLAKE2b-256 | 535db16686dae3e417a23bc215341c3f49c9cabf93f49d50ce57ba1d25fdf60f |
Hashes for nostr_protocol-0.8.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f923c188396b07795320fdcde8a611bca7866e5bf864342aa8c02fc6c4e79a5 |
|
MD5 | b4c47656ff661d334999026d90c0a3c0 |
|
BLAKE2b-256 | 7956be8cb923d81744e42c85f9b494afea0e3b1120b950793c7d602d9c99ac6f |
Hashes for nostr_protocol-0.8.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a529c334e258615ed9efab0a5639054420de0cbcdecac5068401394b3455a54 |
|
MD5 | 2d421fab12e8baf341b723e8e46ca30d |
|
BLAKE2b-256 | 21d07045003aa61436bb2badbf24238dccea3c57cf33939e520d8039e9cf14ff |
Hashes for nostr_protocol-0.8.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6626330e790378ad6f761af7fa45670dfcb6ebf416c4dbebe42fb6229f67c436 |
|
MD5 | 6c96b368cbd90783c4ac7b5d8c7c231e |
|
BLAKE2b-256 | 9d253560aea87b40848862903f76aadf13161cb10053f83af650bc27f870000a |
Hashes for nostr_protocol-0.8.0-cp39-cp39-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23d75a63ad12cb1b37af3ca6e3d153cda5ef45869418951803d477686c967f45 |
|
MD5 | 6044aa6ca4ffea720e1869325277fc94 |
|
BLAKE2b-256 | d8bd4eb07b6afdca38319a33cd4d9bf4cf9607869f0d61d553b3b8f240ec2d0a |
Hashes for nostr_protocol-0.8.0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d15e42fd1a1e2bccfe810d40dcc5ea261dd8e43b7b9cb88914c53369b9efabcb |
|
MD5 | 38dfa7cf707fed24c41f463be4ca3f11 |
|
BLAKE2b-256 | fb929d92e25f92ed6b591e9e6011a71170a13b883900cd2d24ef9d89ed7c6115 |
Hashes for nostr_protocol-0.8.0-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51fd460d468e22653098ec2f8c83749b367f30129bdcadc29829b7ab27659b01 |
|
MD5 | 3c5885d58c727a2b012233bc822d91de |
|
BLAKE2b-256 | 0b16ed09d492dc213c80ff5c5bf45a27f78526165c7a8ad2bc31637a234fe15e |
Hashes for nostr_protocol-0.8.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36bc7ee6b541df1b7b804a51b7866b67cf4d11f4458789d891ec6827bd8bbfe8 |
|
MD5 | 839bb4c8eaaafe9395da268587e4559c |
|
BLAKE2b-256 | b3c142d4b88bf8d059201c1f64e8a62d7cada60eca7e20c5651f3e4d57fa14db |