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.9.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | caca3ad45259e731387ffe5d0cbf38998a617d53a32549f970164d7b22a6e493 |
|
MD5 | 59f43a1ae8388b2e7ad98f7bbe079a64 |
|
BLAKE2b-256 | d979d23338fa994d91aa17fcd1a4cb42294d831ef8fde6503f9772905b883b6e |
Hashes for nostr_protocol-0.9.0-cp312-cp312-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea4cde9823abd01192e1b392a1b97c2ccdea6a06ecbd2fc6f9c171d019928e1a |
|
MD5 | 2157d24b93a6bea47af9fea63650babb |
|
BLAKE2b-256 | 5591631a416c9c9a7622662179a0d9139cc13e4cf788debb9723a7828bd836ff |
Hashes for nostr_protocol-0.9.0-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45be0fad513af2160cab4e43414bedbb4e3ebe54b2ec9c45ee7d39effe326640 |
|
MD5 | 2d72c160cfa4c8aa6bb2ecdfe90c1067 |
|
BLAKE2b-256 | 81825038565e380b076216d4494097e7cdc97d384a7826f33e26029b883dcf05 |
Hashes for nostr_protocol-0.9.0-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b218f0a62e16facf2ce379ec3118c2a263b4d2211401f21a7dd7f48d4a0a14f |
|
MD5 | f9a7c8cf22cfb2090ced694786bce3d2 |
|
BLAKE2b-256 | 6581001e40689f90df0b2e7e4683ea172a923c1480905ee9b37f68524756f244 |
Hashes for nostr_protocol-0.9.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffcb4727cbf0d9acbe20219ea45c8359485ef88c4872ae746b2c0bc6773e533c |
|
MD5 | 3ad75ffe89484eb4801e7e8d631c88d5 |
|
BLAKE2b-256 | 4af9b84a79be3a4cb4c573929963c83d61ef58f18b317b180d073116cd185c7c |
Hashes for nostr_protocol-0.9.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 082e282474fd30be33e44c0e26a0f12bd7868d0fc3b716c69a86af6c889f9ffc |
|
MD5 | bc727768922f17a22413b91f4f74de4f |
|
BLAKE2b-256 | aa0780c90f391011818649bf9d28049722450799f694e811caabde1f5e4b87c1 |
Hashes for nostr_protocol-0.9.0-cp311-cp311-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b493995b7a2255b329672024c19683a7e4d35fc539efdb88832f7503f7fb08a |
|
MD5 | 341ed3db0ea6f62a9cf12194bdd8cac6 |
|
BLAKE2b-256 | 9a1c1ca5120b8c3b8bc93137726b84e4c26359b87b6f255d4460775ceca2c7a8 |
Hashes for nostr_protocol-0.9.0-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ef70ccf129fc3e522fac8006a19baeb9bff091795a7f602348d71b74cdb0750 |
|
MD5 | 9b54120adeacaf14ad49159e838d0ecf |
|
BLAKE2b-256 | b1fc6c00627a54386e6b722ff1a138f09cd7af941b740ef3903c73b61b2845ba |
Hashes for nostr_protocol-0.9.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc2790bfec804fd1ff4d1e31ac0f9be0a45ef11a9c9cfc4d3c867f3abdf4bc42 |
|
MD5 | 0d047d5bd9da23729f3426173121a101 |
|
BLAKE2b-256 | a357bc3d09d482af89cdca5c3b396b482bf4fe4dacfa94cf074c0ceac29df2e2 |
Hashes for nostr_protocol-0.9.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3052519985713b6a849363d04a731b9d15f0b8cbb98b1b269fd10ec1f2e183c |
|
MD5 | 3b16211808d1f3231a28314493848576 |
|
BLAKE2b-256 | 809e4f5f29b2781b1a9776f92a5552600c5f1e16d1a7c9877e4300aba6593a5d |
Hashes for nostr_protocol-0.9.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c07d76c7025f6db1ad24d1f47bf1df1ab0307d6ac624c677dacb4789ad6471d8 |
|
MD5 | 304837684714c1b5fbf25aecaa079358 |
|
BLAKE2b-256 | 040665481532496488529126b51f8d8c388ca5e4f12176e40c4beb494447ec24 |
Hashes for nostr_protocol-0.9.0-cp310-cp310-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a03e22bc87cc44388bf56216fd0a2d1f4cacd6a32550be0fe67280b5cabacec |
|
MD5 | 96ab3e5e94a7af1b2cbe30c6816c3ee5 |
|
BLAKE2b-256 | d5798c6fa5c2c2b77ba3dab01305dc064fc443440b7b81fbbee2c054fbea330c |
Hashes for nostr_protocol-0.9.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68da0c950749b4908fee6b582f3d645f6481c93060f147ca6aafc2e9f4d47ab6 |
|
MD5 | 9111c5961b1de5bff10a4cec688cca67 |
|
BLAKE2b-256 | 454d236267715e1fa1e42bb2738a4272b791e4fcc3222cbebcf246a33f21dec7 |
Hashes for nostr_protocol-0.9.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dea567342f76ed36fe3c48cd84e6e4222e3221c1640fb1452b9096c7a9fb6c83 |
|
MD5 | 7a3a8276590f127115e3acf86640b60f |
|
BLAKE2b-256 | 57726ec02ea9de958928580eb594fa5bf90cb7281ee851fa23f145359ea7ddb1 |
Hashes for nostr_protocol-0.9.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac44679e1d27f3775ab7b25139d090caa6a7d41cf9088a49f675378e87451a34 |
|
MD5 | 328931216ce0c2eab3a11759301ebc44 |
|
BLAKE2b-256 | 52682c8ca40a4b945a6d53bf2668ce916185facaa5ecb160a02e0532732f19a2 |
Hashes for nostr_protocol-0.9.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5264053d7127a936dcd9f34d0e6589258a868b06ee06351e9e9bcf6617d35aa7 |
|
MD5 | 0a6a9c31422b0a967d432e61b28c8142 |
|
BLAKE2b-256 | 5679cf744dbc515b5e9774ed7fee10593a0c459aad81f59e5008f44cbc1993b9 |
Hashes for nostr_protocol-0.9.0-cp39-cp39-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c334e327a4b03629c29306f9e1aeceb51b808ba182a341a14d39567d10a01576 |
|
MD5 | 4ad32efb6a2e068429c1b55464664de6 |
|
BLAKE2b-256 | 22dce335da9ae6ce1991ff6bf5a4753ddabf355f3c61b97cf374331d2ab99aa4 |
Hashes for nostr_protocol-0.9.0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28b14a2ec4263998ed12183a6e98a2002b64f46cd283117a6d72c1b53f2e7d5d |
|
MD5 | d67a344ee1291bf45ff8c74f8e9c5c96 |
|
BLAKE2b-256 | c141c0881efb0b3997b8dc888d3951da079fa7267de12b053179f15f1e8f7417 |
Hashes for nostr_protocol-0.9.0-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e12fee72ad755c29d70748c7f5830d111f4e589f681b969caa2776e1b75b167 |
|
MD5 | 6faf0b0cecbcc476be914e771dd6e687 |
|
BLAKE2b-256 | 23799c90ddad854033e11646cc5598e9b21bb119f2444f112178b55e5f948673 |
Hashes for nostr_protocol-0.9.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 749734554732564289213ff2daaff45d615e12af56dbcd3ab31113c4bfc90190 |
|
MD5 | d9addb826c8f3978abaead9e4b8b8a3d |
|
BLAKE2b-256 | b5b3d44e824958b0bc410fec9ee82a919ea08dbc599f453a53d9ffc244e99819 |