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.10.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e946591c45f6d3dc24a4fb1993fb5bdc8862ad82eca5785fd4b1dc14f5d1151 |
|
MD5 | 026e25db8fde7bf2608c2e50159f9c03 |
|
BLAKE2b-256 | b1245b62271405c36e577e811418ce75f92edeafab8f55e7a412ac327d83c9be |
Hashes for nostr_protocol-0.10.0-cp312-cp312-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2572668afefeaa7c9cde64214755ebb54fda1d96ba962f6b34a091114d4d1ed9 |
|
MD5 | e4c5aa4509d8da3b161f454e4c443919 |
|
BLAKE2b-256 | 3661355bf5518830324cf7a09ede9a3d55db4a0843ff6325feb5f0241da8682e |
Hashes for nostr_protocol-0.10.0-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61b7dc61211f913046f57db7e5e5450c351f91cae3267245d653198c0710820f |
|
MD5 | 0e23e959b58dc7d6cbe4b7f84762bea1 |
|
BLAKE2b-256 | 922fc5ad04aae2f678fbd90579525bdf13fb5ff9da90522b64a8b67640750f7a |
Hashes for nostr_protocol-0.10.0-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a51d0f19f5bb6c881d91f1b9fdbc1496fc13810bd23b74745853d583a9ad78ec |
|
MD5 | 78277215c4d319f2569abd75d60e77df |
|
BLAKE2b-256 | e361872286a1a57008747692a650e6aa8cb4dfaa089583f7ca80dd15c9cbf6b3 |
Hashes for nostr_protocol-0.10.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 628f2da6678738cb7dc678906e4aed4f160c8f1f2332810b085241f76b70f609 |
|
MD5 | dc37391b50fe3f7d084b9f894f1eb84f |
|
BLAKE2b-256 | 0cd04c85c933db2b8d32bb01ee5d68ecfa7fe23b0a83a625bbdc9a05d122939f |
Hashes for nostr_protocol-0.10.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d33e1cb64c9c785c95c38ea81213e16c8f1dedd28cdb22d53e387bfdd0e8a64 |
|
MD5 | 65d0952f019485bee948ebd4318d3c54 |
|
BLAKE2b-256 | e92760182df38c4c1bded10d5b29421cf0a7ebe5d198cecef7db0def5a87df78 |
Hashes for nostr_protocol-0.10.0-cp311-cp311-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 848c3424e37144e51a2e2763c0b84fe24d3f0b4ed3af8c7b264e33f53f5b3737 |
|
MD5 | 7d175d39603c2313bfbbb454e35779f8 |
|
BLAKE2b-256 | 2137f2ad239851948fbd2e462a76aeb150fb1dfc9bf63b1985646731debddef9 |
Hashes for nostr_protocol-0.10.0-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7362c8f66f78b280e98ad5b9206458307bd69ffd0e16cb0696dc715b39f89af1 |
|
MD5 | 8c616c5cabc7129fb806e0cd5b881b28 |
|
BLAKE2b-256 | 9873ccc7690cc129ed8c2bdcb1934fbe35820c94cfda1c72fa08a0c76cbd2143 |
Hashes for nostr_protocol-0.10.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebb64c0fa5fe9f2b5e6a40b774a405724575a1308c40b294042796d5032e582c |
|
MD5 | 66aaba474698c74ceebe109b9eed843a |
|
BLAKE2b-256 | 9b59cade391be4b105a0db5cb302876160a824e54a4115f48da4ea393f17d882 |
Hashes for nostr_protocol-0.10.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2baa8a7329fb87a076e7c8084d5aa04ea98b8104eeed4ae414609954fcf0e03f |
|
MD5 | 2c35541bfbba8e718a6bfa8fbdc7dab3 |
|
BLAKE2b-256 | 008f3be9eac144938ac9ee050beb254ab350b3582ef262e46be52edb657cfc01 |
Hashes for nostr_protocol-0.10.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6498182f1e2f9dae68893dc4a7a5b6d5380f0542d0b99fc4b58f84157d8a55b |
|
MD5 | 36c59e8a32dc0db46dbae46a28f88f0d |
|
BLAKE2b-256 | 4f838ace408d1f634a728a59d4bbff3a68d03a71b53478804f391a164487efac |
Hashes for nostr_protocol-0.10.0-cp310-cp310-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea30d29adb988de7330cac6de6a860d8ad26ac98b24a53eebbd8c6b54bede62e |
|
MD5 | 55674c5955a54ae556c1c67e4aa1b5ea |
|
BLAKE2b-256 | cbd8259893abaeebc859c566a7358b100c32d6237cd3fbb66e74f231b1423ca7 |
Hashes for nostr_protocol-0.10.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc9829f28b7d90c1cae7c01ac1d2f08da90650482084fd3c77dabb6b0644d15a |
|
MD5 | f5eaa4389c41a899d631a241e1fe7ec8 |
|
BLAKE2b-256 | 5a06854cd6ace7c1c926e29956ef18ef5a3baa4bdaa93b781e97d850d818c14f |
Hashes for nostr_protocol-0.10.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb6277b14695693e039977046dfd2f76b71933017a0f0bf769845ba9fb2d7ad9 |
|
MD5 | 0a31d771178e922ba22e788d6215d239 |
|
BLAKE2b-256 | c982f15de7248e44e819949d3362760334581366a3d74a222adc161de8fbc9bd |
Hashes for nostr_protocol-0.10.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5c7555307b1d8558e3d690144166921300b0d2b76c8b35dc7e100700c57800e |
|
MD5 | 946b77840f3d7c6bbbd0363d90187eca |
|
BLAKE2b-256 | 117f8c3cdd7edce326d1563ff15d8ef5a961223c20a896019d616747c10b7726 |
Hashes for nostr_protocol-0.10.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa54ede543e5c599fc4b77471f341c9c524af191ee2caecbad583275c42dd9f6 |
|
MD5 | 4d11815453e655d71aed8daba0ea7854 |
|
BLAKE2b-256 | 49ae2ec1f70bce3c0412eb3c41e96a85389f5a4173880ff5190cc4bed21c3d92 |
Hashes for nostr_protocol-0.10.0-cp39-cp39-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b573b66c88f08d9cd3dbb03ddb3e160d1db473c8a4ecc8c2ff7692fdfba12536 |
|
MD5 | ffb93057d38ff4bfd469775131396b38 |
|
BLAKE2b-256 | 5d60c5de2ec8cb430c03cc3713677cbdbf776d77f76dfb9243a518ecb65e8583 |
Hashes for nostr_protocol-0.10.0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01665672188afbc0237b490869f1cc04379c4b71443d370a85b84f7eca2713bf |
|
MD5 | 5fc10061a028334bbcdfc04baec81a9f |
|
BLAKE2b-256 | 09135affdd5f99e27614e7600b05b71eacbca6de9ad98a0f069b4f263bdda45b |
Hashes for nostr_protocol-0.10.0-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddeca69b8cf4fcecf10098b185c8383853bda6b4e78893e66ec0470718c2ea2b |
|
MD5 | 35db86ea2e87b9e07c003cfc9b78895e |
|
BLAKE2b-256 | 8451e9b94489d415bb3fb37b4126f4eff63c720dadd3c58c77a632b19495d956 |
Hashes for nostr_protocol-0.10.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46c3b7e3d175abf7e47cf30b26c1a57f17103c6337d0dfe5eb352166133f5553 |
|
MD5 | 04eb666c27102a7ba912d1aee24f63db |
|
BLAKE2b-256 | 1c9769703c8a0b7e5e342e0cbc8218445041f769bdacc077ebae8ecc8da6bf8c |