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.new_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.
License
This project is distributed under the MIT software license - see the LICENSE file for details
Donations
⚡ Tips: https://getalby.com/p/yuki
⚡ Lightning Address: yuki@getalby.com
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
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for nostr_protocol-0.0.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1786e17e066da8d31383a25697f5ed11ff927ee85229089c98514226020fe53b |
|
MD5 | 211f0999d939dbf8ba7a14d111196318 |
|
BLAKE2b-256 | ec38b20f1dad87395e8067c9127a9378f16c09e8ac1bad623c72c3e347033791 |
Close
Hashes for nostr_protocol-0.0.4-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36c21fc2f37c13d6996f4c648619d547d60ac75ad21a5f949136015824cdc057 |
|
MD5 | b967d9d71ec83896dcab2ec1b5ca0fbc |
|
BLAKE2b-256 | 1890377d2c38b60f5e0de6415ba610257094a26c4e6a0c99e74d3b54aca9cc8a |
Close
Hashes for nostr_protocol-0.0.4-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5421ef3531d0041857a496f3194b79ded1a8fa56e586de1ad19dfaa0c3153879 |
|
MD5 | 506db2972f6d9a51948ff905ce5158cd |
|
BLAKE2b-256 | 81b994d2bf414bdf3ded6620268f5fc537b7842f55d514c405b3bb1a539540f9 |
Close
Hashes for nostr_protocol-0.0.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc403c66697783273ad8473b39af7a03aad9271500321a50e28b531ab9fb305e |
|
MD5 | dc1125a83566b90f4483263a7f6ba850 |
|
BLAKE2b-256 | 3661ed70ed5233d30418d2d02b46ec8f403b570e69f2bd58bb7d91b583280a0e |
Close
Hashes for nostr_protocol-0.0.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a832a3905643f21f6d331690753d5ee37c7f2a07cadeb3c6bd26f82788fb07a5 |
|
MD5 | 05c2d97f22f9acdc313c07d3fe26dec6 |
|
BLAKE2b-256 | 4b78a8f6b58c7996cc5c112b249bd76baae80744cc9043f6be53feae89c090b5 |
Close
Hashes for nostr_protocol-0.0.4-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8db736a628d708b9de8c9cb6c2d6463947e2a06e35332eed7c6c8ab766aaa6ed |
|
MD5 | dac1154b06b88a99c195aa4887db8eda |
|
BLAKE2b-256 | edee6e7ebec986d053f20be09a3a30997c58224728bba55925709e567174784d |
Close
Hashes for nostr_protocol-0.0.4-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3def9dde94afb5305c473dfee5e038ce982255ed94b85afd52b356ffeb1da89 |
|
MD5 | ad0237c01a46834c057cd69902eac050 |
|
BLAKE2b-256 | fa63c39df0eedea4438df130bd3aaf27d7634e4483bebe4c3fc9f9212fe90dc3 |
Close
Hashes for nostr_protocol-0.0.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 517a1c91ec2cd8d6cea6ea3e2a75d7ff3597bdcabc1f721c3134c4fd2003d251 |
|
MD5 | f97789cbcac3d6138d2b369a49aca4bb |
|
BLAKE2b-256 | 6644bf32a189fd253e17f8ebb36ac2b46f7fd3ecbe365895652ad04ccbf3d6da |
Close
Hashes for nostr_protocol-0.0.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fc62624a010f7c4a55c23bbf6ac611a8790edb6809704ededb8e2f23eb318be |
|
MD5 | 10d2b86f4f1a59b2500946be108e228e |
|
BLAKE2b-256 | 3066cb60e44b70a1746729e6e0125d12aaaba9d69a334126d436ec22fcbccf42 |
Close
Hashes for nostr_protocol-0.0.4-cp38-cp38-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e404a282250cc50ba1176136c09c1a642e0da09d9d22096d379460ff3e67047e |
|
MD5 | 8ddb08b7298887c3cbcda744bc176009 |
|
BLAKE2b-256 | 6eee718bc011eb2086a888b1f5968f565a23bac39aa203b6bee26f6eb9637912 |
Close
Hashes for nostr_protocol-0.0.4-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 032ab452b60ae03dfcb21ba5827518c79feff7e04e6b1a21ec826fe859062a1c |
|
MD5 | 8731e7657b2b117b4406cbab464e20ae |
|
BLAKE2b-256 | bbdfce1f67649a25d8f348d796ce4149424aeeb31fcaef01f82b19c47dd2e992 |
Close
Hashes for nostr_protocol-0.0.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 896c267bc9ca6dd523410a1359bc591e609de9148bba91c97da652d6529b7d87 |
|
MD5 | 3f17a42f7eafd55b051885d6464927ca |
|
BLAKE2b-256 | 8e097bcc2f8f5aaf06591f17609cf474733c386c22547631c941e8df6ae8f182 |