Skip to main content

yeaply (Python)

Ask a person for a decision on their phone, end to end encrypted, in one call. See yeaply.com.

import yeaply

y = yeaply.connect("Deploy bot", url="https://example.com")   # first run: prints a pairing code, waits
answer = y.ask(
    "Deploy v2.3 to production?",
    body="12 commits since v2.2.",
    facts={"Branch": "main"},
    options=["Deploy", {"id": "hold", "label": "Hold", "style": "danger"}],
    timeout="1h",          # withdraws the question and raises YeaplyError("timeout")
)
print(answer.option_id, answer.label, answer.note, answer.answered_at)

asyncio:

y = await yeaply.aio.connect("Deploy bot")
answer = await y.ask("Deploy?", options=["Yes", "No"])
  • y.send(...) returns a handle: h.answer(timeout=...), h.withdraw(), h.state(); y.handle(packet_id) resumes after a restart.
  • stop = y.on_answer(callback) (a background thread; in asyncio a task, and the callback may be async).
  • Keys live in key_file (default ~/.config/yeaply/<name>.json, mode 0600; same format as the JS SDK) or in YEAPLY_KEYS (from y.export_keys()).
  • Every answer is checked against the hash of the exact question sent; a mismatch raises YeaplyError("answer_rejected").

Needs PyNaCl (libsodium) and httpx. MIT, LOUMI Education LLC.

Metadata

Release files for yeaply 0.1.0

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

Source distribution (sdist)

Source distribution for yeaply 0.1.0
File Size Uploaded Provenance Actions
yeaply-0.1.0.tar.gz 17.0 kB Without provenance Details for yeaply-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yeaply 0.1.0
File Interpreter ABI Platform Actions
yeaply-0.1.0-py3-none-any.whl Python 3 none any Details for yeaply-0.1.0-py3-none-any.whl

Total release size: 34.7 kB

Release files / yeaply-0.1.0.tar.gz

Download URL yeaply-0.1.0.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a88578f4857ca775ebf0e7adbb4a675752cb8c121dcaac2bca1e494bcd91689c
BLAKE2b-256 checksum
How to use checksums
4833f7860f60599011b8ed1348aeb497412bbec492a33cf94829ec1366d38d66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.2

Release files / yeaply-0.1.0-py3-none-any.whl

Download URL yeaply-0.1.0-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48447547b12fd81767151216261fed707be384b8d41957aec8c5b9e3ebdb3915
BLAKE2b-256 checksum
How to use checksums
68f3d5f6718dee92e5ea82b5c8c0706d6992980001f93a3cd597896eae8c801c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.2

Security for yeaply 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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