Skip to main content

elua-sdk

Sign in with an elua account, check a licence and send bug reports and ideas, for apps a developer organisation publishes on elua. For Python 3.9+, on Windows.

pip install elua-sdk
from elua_sdk import Elua, EluaError

elua = Elua("acme.notes", "ec_0123456789abcdef")
session = elua.session() or elua.sign_in(["profile", "license", "feedback"])
me = session.profile()                # user, display_name, language, avatar
ok = session.license().allowed        # signed by elua; holds offline for a while
session.report("bug", "Crashes on save", "Steps: …", "1.2.0")

sign_in blocks until the person answers in Elua Hub (up to three minutes): call it off your UI thread. It takes wait= (seconds) and cancel= (a threading.Event; set it to stop waiting). session.sign_out() signs out of your app.

Errors are EluaErrors, and their code says what happened: no_hub (Elua Hub isn't installed; send people to HUB_DOWNLOAD), cancelled, signed_out (sign in again), refused (with status) or other (the network, or something unexpected).

The session is kept in %LOCALAPPDATA%\elua-sdk\<app id>\session.json, the same file as the Rust and TypeScript libraries', sealed with DPAPI for this Windows user. To seal it another way, pass sealer= an object with seal(text) -> str and open(sealed) -> str.

The one dependency is cryptography, to check the ed25519 signature on elua's licence answers: a widely used, reviewed library, rather than signature code of our own.

How signing in works

Your app never sees a password. Elua Hub signs people in (OAuth 2.0 with PKCE for desktop apps, RFC 8252): the library listens on http://127.0.0.1:<port>/elua/callback and opens elua://authorize?…; Elua Hub asks the person, and on Allow hands a one-time code back, which the library trades for tokens that work only for your app.

What you need

An organisation on elua and a project for your app (Elua Hub › My apps), its client id (ec_…), and the modules you use turned on: auth to sign in, then license and feedback as needed.

Try it with python examples/sign_in.py <app id> <client id>.

Licence

Licensed under either of MIT or Apache-2.0, at your option.

Metadata

Release files for elua-sdk 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 elua-sdk 0.1.0
File Size Uploaded Provenance Actions
elua_sdk-0.1.0.tar.gz 20.3 kB Without provenance Details for elua_sdk-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 37.6 kB

Release files / elua_sdk-0.1.0.tar.gz

Download URL elua_sdk-0.1.0.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8bbdaafaefafe2b8ab88b34f2813d31c181d4685d8f8cf87a8eb78761e4f510e
BLAKE2b-256 checksum
How to use checksums
40b126c671720ba7ff5c9da8a145600d22956f2177ec4b9cf84ef9f097fbfbc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL elua_sdk-0.1.0-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b334702a11757ad3596c12ee7242c3dd7773fddc313244d4dbdafb5ebd2252d
BLAKE2b-256 checksum
How to use checksums
8687ef75b5b294d1c126bf459a751ec58747792da073fb15023c311e9f048589
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for elua-sdk 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