Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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

Metadata

Release files for nostr-protocol 0.35.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for nostr-protocol 0.35.0
File
nostr_protocol-0.35.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
nostr_protocol-0.35.0-cp312-cp312-manylinux_2_31_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.31+ ARM64 Details
nostr_protocol-0.35.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details
nostr_protocol-0.35.0-cp312-cp312-macosx_11_0_x86_64.whl CPython 3.12 CPython 3.12 macOS 11.0+ x86-64 Details
nostr_protocol-0.35.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
nostr_protocol-0.35.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
nostr_protocol-0.35.0-cp311-cp311-manylinux_2_31_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.31+ ARM64 Details
nostr_protocol-0.35.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details
nostr_protocol-0.35.0-cp311-cp311-macosx_11_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 11.0+ x86-64 Details
nostr_protocol-0.35.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
nostr_protocol-0.35.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
nostr_protocol-0.35.0-cp310-cp310-manylinux_2_31_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.31+ ARM64 Details
nostr_protocol-0.35.0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details
nostr_protocol-0.35.0-cp310-cp310-macosx_11_0_x86_64.whl CPython 3.10 CPython 3.10 macOS 11.0+ x86-64 Details
nostr_protocol-0.35.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
nostr_protocol-0.35.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
nostr_protocol-0.35.0-cp39-cp39-manylinux_2_31_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.31+ ARM64 Details
nostr_protocol-0.35.0-cp39-cp39-manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.28+ x86-64 Details
nostr_protocol-0.35.0-cp39-cp39-macosx_11_0_x86_64.whl CPython 3.9 CPython 3.9 macOS 11.0+ x86-64 Details
nostr_protocol-0.35.0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details

Total release size: 69.9 MB

Release files / nostr_protocol-0.35.0-cp312-cp312-win_amd64.whl

Download URL nostr_protocol-0.35.0-cp312-cp312-win_amd64.whl
Size 3.2 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
0e50b6384b6b872902e7429d0a76d27994cbd41b649df451d2b100fcfbf7fab0
BLAKE2b-256 checksum
How to use checksums
cbe42d1dcdf5c585dba7a7b59c212d1e0d53e01424ce519cf7691a96aec8d549
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp312-cp312-manylinux_2_31_aarch64.whl

Download URL nostr_protocol-0.35.0-cp312-cp312-manylinux_2_31_aarch64.whl
Size 3.6 MB
Tags CPython 3.12 Linux glibc 2.31+ ARM64
SHA-256 checksum
How to use checksums
5e73c63a9349741f285ce3d7971994dc71a7c4f61588046e23e6ce8905a2b81b
BLAKE2b-256 checksum
How to use checksums
8547e918339b6f47e6e837da044c497f7aab407c4000ff5b12d5032413ac1533
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL nostr_protocol-0.35.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 3.7 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
228d9ba27999ad79ca5acd4db69e50dbf480172d0a2430ab166876b8084c53a6
BLAKE2b-256 checksum
How to use checksums
bf8abbc313ff66b6325680f0ed1b9d9e4097dea7a7bd6e3038a53b7b02a54232
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp312-cp312-macosx_11_0_x86_64.whl

Download URL nostr_protocol-0.35.0-cp312-cp312-macosx_11_0_x86_64.whl
Size 3.6 MB
Tags CPython 3.12 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
60df92506cda2de6a0649da6c402b9828b54e802bb32c7203acf85906a7d12f1
BLAKE2b-256 checksum
How to use checksums
2cbc7a8321be081e138f79dc20f92cb306c814abbd147786144a741b772855af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL nostr_protocol-0.35.0-cp312-cp312-macosx_11_0_arm64.whl
Size 3.4 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2c58915f5ad80c4f32a2a1c49ce5496a7cd30a4c89db74da87d99e3cbdcfa8c9
BLAKE2b-256 checksum
How to use checksums
cbbebe8e9f01c84186452dac7dbd85bec26aa8724016c22beb350fa79c38531b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp311-cp311-win_amd64.whl

Download URL nostr_protocol-0.35.0-cp311-cp311-win_amd64.whl
Size 3.2 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
25adc60812b8dc687f3216e50d9aff9dcd9a50e4d6be2aaed62d6441074644ba
BLAKE2b-256 checksum
How to use checksums
23de2b0c0799c4bb3da6e16af5d9b623f4f920aa9d71dbb6b2c622a47772bc26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp311-cp311-manylinux_2_31_aarch64.whl

Download URL nostr_protocol-0.35.0-cp311-cp311-manylinux_2_31_aarch64.whl
Size 3.6 MB
Tags CPython 3.11 Linux glibc 2.31+ ARM64
SHA-256 checksum
How to use checksums
6f6781463a01689f456da4bfb025c0d9dd6c38b8d961290b62f5c0493d256721
BLAKE2b-256 checksum
How to use checksums
162c15be9f1cc23c98b096795fd243138fb3d42edd2ca93fc73bb78438facac9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL nostr_protocol-0.35.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 3.7 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b7292272ae4c4a533f4eeea669241d1c18fb46c134253d9a026b274d43060762
BLAKE2b-256 checksum
How to use checksums
eafa4d2b2437ab7285e9161576ca415f795e46a7b73dbf75db4a9c90ebb58112
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp311-cp311-macosx_11_0_x86_64.whl

Download URL nostr_protocol-0.35.0-cp311-cp311-macosx_11_0_x86_64.whl
Size 3.6 MB
Tags CPython 3.11 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
6252c25d4454a38484f28fdcc6f4627074c9d1b95f9373447ccdbdc10fd4edae
BLAKE2b-256 checksum
How to use checksums
053c6899cd818bc0b1306bcba7a7f19900e9be5a1a68911b5cf6a58a89b22442
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL nostr_protocol-0.35.0-cp311-cp311-macosx_11_0_arm64.whl
Size 3.4 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0a383fff32bfd57e2f6b62e7c15796b60d503e70963606ac7ac4148a50da772b
BLAKE2b-256 checksum
How to use checksums
a812baa7ed8dd89a984c1a6a34e916d1a79298a52dad36fc7df7ff87dc16d348
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp310-cp310-win_amd64.whl

Download URL nostr_protocol-0.35.0-cp310-cp310-win_amd64.whl
Size 3.2 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
6b804e5ed702a416d0adef947b41d76c5aadbaa58baba93b3ea3f9bc10bc6965
BLAKE2b-256 checksum
How to use checksums
96c53372fe8d652fa2ebc64b6e26df60b13ad79356a53803c5d627d14cd4cbce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp310-cp310-manylinux_2_31_aarch64.whl

Download URL nostr_protocol-0.35.0-cp310-cp310-manylinux_2_31_aarch64.whl
Size 3.6 MB
Tags CPython 3.10 Linux glibc 2.31+ ARM64
SHA-256 checksum
How to use checksums
499f12c4c998877ef0fe09fa3e1fe3c7c22792f9ddb503e70f1780cd34a0f14e
BLAKE2b-256 checksum
How to use checksums
2f26b575908df52ecb43e57e7e714b7492254019bb8693a47ed470e0c40501e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL nostr_protocol-0.35.0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 3.7 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7697adf9730cebfdc573493de5a78e5c80d525bcd362f162901700c49ab2b436
BLAKE2b-256 checksum
How to use checksums
23fd1aa4dbbf6734dbc6e5cbba9f2e9c8c04523571c8386853c0d0c2b72ac1b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp310-cp310-macosx_11_0_x86_64.whl

Download URL nostr_protocol-0.35.0-cp310-cp310-macosx_11_0_x86_64.whl
Size 3.6 MB
Tags CPython 3.10 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
8081b37f43fa46a7a149a539527c271c7778887a6125864273879541c20cbb3a
BLAKE2b-256 checksum
How to use checksums
fb3b7ab6ee191090248bdf3517472507b9274adb24b827dfcb72db1ee7bf192d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL nostr_protocol-0.35.0-cp310-cp310-macosx_11_0_arm64.whl
Size 3.4 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0cec2e1887e23242f21a6d2cf90f93db4706b8df01e0d3eb8a9fb652cf4f19de
BLAKE2b-256 checksum
How to use checksums
0732cf34f9585ede4785e0b179cdee5b4293e18349264a550b88d9443486a12e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp39-cp39-win_amd64.whl

Download URL nostr_protocol-0.35.0-cp39-cp39-win_amd64.whl
Size 3.2 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
99b119d6325d74535aff017025a95423e061c609a5f844b5174ab341d46d84e7
BLAKE2b-256 checksum
How to use checksums
92ef7ec9d14e6ee825f55a89c7a9d191cd6b7ab78ef1558022d8c340ad8cc82b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp39-cp39-manylinux_2_31_aarch64.whl

Download URL nostr_protocol-0.35.0-cp39-cp39-manylinux_2_31_aarch64.whl
Size 3.6 MB
Tags CPython 3.9 Linux glibc 2.31+ ARM64
SHA-256 checksum
How to use checksums
47624c174de3c7580e14b8ad7724b446a21153a24dc6b13ac006a20c9450312a
BLAKE2b-256 checksum
How to use checksums
4e767d3a83002a5dfadd0a4dcc7afc7532dc2275611cb200fd0d6b0d555e7b49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp39-cp39-manylinux_2_28_x86_64.whl

Download URL nostr_protocol-0.35.0-cp39-cp39-manylinux_2_28_x86_64.whl
Size 3.7 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5429af26d270cbe632d02fc207c37083a9476a2e5cd90e0df84ce4009680f807
BLAKE2b-256 checksum
How to use checksums
5b8904ba773b136361e1a50b7f37ba361d5811283bf34a4a6b9de127743900da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp39-cp39-macosx_11_0_x86_64.whl

Download URL nostr_protocol-0.35.0-cp39-cp39-macosx_11_0_x86_64.whl
Size 3.6 MB
Tags CPython 3.9 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
4ad8e8fbcfca5d58ce376f00412644b084b7cf6047cd469720ac934686f31a75
BLAKE2b-256 checksum
How to use checksums
77641db9b3943969b9154fb09966d16dfd32572049057da514216a89765715a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / nostr_protocol-0.35.0-cp39-cp39-macosx_11_0_arm64.whl

Download URL nostr_protocol-0.35.0-cp39-cp39-macosx_11_0_arm64.whl
Size 3.4 MB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6ea59c222ff28f5eb138afd8e8b1cfb55dfa5c21360b7c5f26fc6fb2cc3789a2
BLAKE2b-256 checksum
How to use checksums
20ef2d1ab00f3d179400c512bfff57c69bd8b91b5deb2e419f491b610cdf4a31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page