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.12.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f2bc411871b2d7d1ba876da7f835e0d33692f2c51044cf74f7a0bdb3fe57dea |
|
MD5 | 271134da1013be6104bda1c7bf2174c7 |
|
BLAKE2b-256 | 35c3b23f0031cafdb1a2a58867676345bc90f8c5b005827e8532abf40771b644 |
Hashes for nostr_protocol-0.12.1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0c275e5519af1c97d7f94ed4001d35f6d709d2f75eedca505077bdffb1abd47 |
|
MD5 | 6930c376915e6c0e268f576f3158a1d7 |
|
BLAKE2b-256 | e51c8979d24776540d170b092d346ff21249bc75762e4e3853cb1beaa664da47 |
Hashes for nostr_protocol-0.12.1-cp312-cp312-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb82ba016a39d1e3783a1358dd3ff22383ca9fd48cb117c6ca3ccb83b21d5573 |
|
MD5 | 1093c0b2309863d1e2f5cd221dcd2d51 |
|
BLAKE2b-256 | 0d535bdd944ce9d5c3c0f2321912eaea604362fae2300f61d2e82fc19ec7f871 |
Hashes for nostr_protocol-0.12.1-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f080459a54e49c45dc30a66956b5a69e4fffacb0ad77ee744ab5f3597a75f2cb |
|
MD5 | 839181bdda33175a44ee8836c6cb6cbb |
|
BLAKE2b-256 | f4cd599df6a1825a42ca9342677280459a58f8be023ab42e6581b59b00a7894a |
Hashes for nostr_protocol-0.12.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 294d30cf3471dafbff3a30aff900b967e5b5fe49c0fd92165fa62884335122d8 |
|
MD5 | f333bb36570880aacd720038ea803d84 |
|
BLAKE2b-256 | be1226ee288617ea7c29e7723bc28918fc0580a00c4bf331e0649ba2d574d682 |
Hashes for nostr_protocol-0.12.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32b425f48ddfbf7c2d0f817c0041f6ca92a1ed2279c7c7d707ae8f563c3fa0cc |
|
MD5 | a24d5d51bed2429bcf0b19cc6640ccc3 |
|
BLAKE2b-256 | 15d4b6d640da44bfdd30b1c1fd4f9787659d35ffdc3f0e91a291c3c9385478ea |
Hashes for nostr_protocol-0.12.1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4590ac4c9fb67db875cab5a6ca19b0ee89b857f5588362f54a3f3602df90738 |
|
MD5 | 62c932906df3122bdbc2f4e051c7d441 |
|
BLAKE2b-256 | a2af4259d33c47c93949943c363886c89259b25d56603c517c1b2ad0870f7f96 |
Hashes for nostr_protocol-0.12.1-cp311-cp311-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c64ad71a0ce7ad3665d73068c12e40cc4fa2a4eec60bcf8a64adb74173b7d464 |
|
MD5 | 2d5e285c39abf45be2fd89fbaa72cb9a |
|
BLAKE2b-256 | bd91a5e7c714f72064fad3588e452950a64a244f35f73cd00e2d51a1b7bf61cc |
Hashes for nostr_protocol-0.12.1-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bebd831623257d726f95eeb3ab94e2d7aa7e0cabe21272ee5bdbe6687a88d90a |
|
MD5 | 812d4875380982b1b1e32f709187f1d2 |
|
BLAKE2b-256 | c255f38b41d22784285f3e7afeba964dcf06c6e1208470b17916c9dbbeb859a2 |
Hashes for nostr_protocol-0.12.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae48f06a629847822043810ebe8b851e0daea4ce20326941ee939c118d081095 |
|
MD5 | 9b5c7ab29f7481a7329cde26ec5fbb5a |
|
BLAKE2b-256 | 9b62a55ec7aff70a6df7189c7510a06dd3f325464660ef10883fde295dcb136a |
Hashes for nostr_protocol-0.12.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb6f88d03c2de414a49044119c144b07c34824d62bca1f557bf85aeb2672bd67 |
|
MD5 | 7270d2f99dc433d714fce69cf4d96162 |
|
BLAKE2b-256 | 3ba31d99589e73b660c13c3dd42d26919521740e0655dd3aa3290ad538882760 |
Hashes for nostr_protocol-0.12.1-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8d0fa7e57f154ad5396911b74b970c5fab78533cf130b4dead459c4086fb93f |
|
MD5 | e94c99be04e804f6dd4fc83ba7b6bac4 |
|
BLAKE2b-256 | a1cdb4b0a7bd6a0036e532f0c283792e5e4980b2aedc125f6d888734df0c1577 |
Hashes for nostr_protocol-0.12.1-cp310-cp310-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e8d9bd6cad1f4996ece71b137b5cc415556a3a0c3afcec668b5b7393fb8abf3 |
|
MD5 | efcc7822cb1323ae9383e4103cb5cbcd |
|
BLAKE2b-256 | 95c0278551936ee0dda1de5a915e66016c3eac41435998148e05ee508e7451a2 |
Hashes for nostr_protocol-0.12.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65cfdf75a9af5ecd29bab812c6b5a8d8e00a60e0a303f498c46e29604e57854b |
|
MD5 | 03957d28533bea28c2f97e2fbe96006b |
|
BLAKE2b-256 | 08d58710847da79a15e32d41ac335f07d584ed75e800bf0cefff962e77892f5f |
Hashes for nostr_protocol-0.12.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60ada89763c4351eeab592a86257af597c3b7a43318d30e3cb9191ec1d5309b7 |
|
MD5 | 6090d5fc3a84d2768cacb66157436b40 |
|
BLAKE2b-256 | 7613f86106825f85ca67eba9090aa8245570d6a0de517a7c1d7c492ac7476210 |
Hashes for nostr_protocol-0.12.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5ffda7127effe9ef9ebfe1c623a5768da7caa3d923a024cebd58ce9441924dd |
|
MD5 | f2d7bf922637fe67b85713894663c3c0 |
|
BLAKE2b-256 | b31a40570c70f8971b5590d713d338817d258ae53f9c6b4c8bdef803f0ec575a |
Hashes for nostr_protocol-0.12.1-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e66f3901763ef7febde291b58d966ba9d1cf702cdb439b89d4b64bd3f0173c7e |
|
MD5 | 9b21015d2e1fa6db1be650e85af2bc0f |
|
BLAKE2b-256 | 89897f54d3f08a0f03e8eff458799a5e782e6da4dfd382b5222af69a69db0524 |
Hashes for nostr_protocol-0.12.1-cp39-cp39-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6222dcb966fb59fd9b024259f1dea51d026ffae075ec33b7a9166f7b03165e6 |
|
MD5 | b7d42bc6fdc2b16add6b5a452b9326f7 |
|
BLAKE2b-256 | 278d3f3f191f0a7ecbdf15c97e02edfe3a08dbbf5a82a4e24d64b46b32f59511 |
Hashes for nostr_protocol-0.12.1-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ad39fa105fdfe1a939a0191e209546dfb67dbe4e382c5375af149f1ae248c0 |
|
MD5 | 6a57dcf362537ac49bf73783aeeeadac |
|
BLAKE2b-256 | f80b857deb6a9050bbedf91dd0be0ebec8204ca0b3eda66939e15a96f977ced9 |
Hashes for nostr_protocol-0.12.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7ec5daac19d41087e23facc514d596caaedaf39a3359037cc3310ff99cbd6ce |
|
MD5 | 196062ddd11a94eab5b167175663e0c7 |
|
BLAKE2b-256 | 31fb6cb5596aec79373da1ba9b8adfe39916cf1a39d7e0f9d5c1fea21bb1e31f |