Skip to main content

pwngrid-api

PyPI Python 3.6, 3.7, 3.8

Pwnagotchi's Pwngrid API client (⌐■_■)

$ pip install pwngrid-api

Example

import pwngrid_api


try:
    private_key = pwngrid_api.utils.load_key("./id_rsa_client")
except FileNotFoundError:
    private_key = pwngrid_api.utils.gen_key()
    pwngrid_api.utils.save_key(private_key, "./id_rsa_client")

pwngrid = pwngrid_api.PwngridClient("pygotchi", private_key)
print(pwngrid.unit.identity)

pwngrid.enroll()

pwngrid.send_message(
    recipient="94b67781c4057533d2e2700a9fcce924fbcfc0abf57724415ebc6819a51e4e39",
    cleartext=b"Hello World!",
)

for m in pwngrid.get_inbox()["messages"]:
    data, cleartext, sender = pwngrid.read_message(m["id"])
    print(sender.identity, cleartext.decode("utf-8"))

Metadata

Release files for pwngrid-api 0.0.3

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

Source distribution (sdist)

Source distribution for pwngrid-api 0.0.3
File Size Uploaded Provenance Actions
pwngrid-api-0.0.3.tar.gz 5.4 kB Without provenance Details for pwngrid-api-0.0.3.tar.gz

Release files / pwngrid-api-0.0.3.tar.gz

Download URL pwngrid-api-0.0.3.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6deacf2571d7c4bdba459a3f881ec4b73b32d2b89b672291c0ea9cb9c1ce8350
BLAKE2b-256 checksum
How to use checksums
8b759734822d6a44430bb913e73800aac9992f579a0adf7b7c9c7a8c96e95509
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1

Security for pwngrid-api 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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