Skip to main content

mewisme-meta

Async Python SDK for the meta.go gRPC runtime.

from mewisme_meta import AppStateAuth, AppStateCookie, CookieAuth, MetaClient

async with await MetaClient.managed(runtime_path="/path/to/meta-runtime") as meta:
    session = await meta.create_session(CookieAuth({"c_user": "...", "xs": "..."}))
    events = meta.events(session.session_id)
    events.on("message", lambda event: print(event.message.message))

    snapshot = await meta.refresh_auth(
        session.session_id,
        AppStateAuth((AppStateCookie("c_user", "..."), AppStateCookie("xs", "..."))),
    )

    async for event in events:
        print(event.WhichOneof("payload"))

Sessions accept CookieAuth, AppStateAuth, or CredentialAuth. Credentials requires identifier, password, and exactly one of totp or otp. refresh_auth() rotates auth in-place without replacing the runtime session or SDK event streams; auth_snapshot() exports normalized cookies, AppState and Facebook session metadata.

Use await MetaClient.external(endpoint, token) to connect to an already running runtime. Managed mode resolves runtime_path, then META_RUNTIME_PATH, then the bundled mewisme-meta-runtime wheel, then meta-runtime on PATH. If none is available it fails locally without downloading anything.

Release builds pin mewisme-meta-runtime to the exact SDK version so pip installs a matching platform wheel. An explicitly installed runtime remains supported as an override; the protocol-major handshake still rejects incompatible binaries after launch.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mewisme_meta-0.0.0-py3-none-any.whl (84.1 kB view details)

Uploaded Python 3

File details

Details for the file mewisme_meta-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: mewisme_meta-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 84.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mewisme_meta-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77208e05d0e84ae794e14afcb76006ccbac48a63f9124baa055ea5334b2c3e3d
MD5 2a729bd1691bf6e39e74f302efc4549e
BLAKE2b-256 aad7045fb74c38dc8206792d95032bd6b3717fcc057a4024b5ea450ff8bac894

See more details on using hashes here.

Provenance

The following attestation bundles were made for mewisme_meta-0.0.0-py3-none-any.whl:

Publisher: release.yml on mewisme/meta.go

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.0.1

2 files

This release

0.0.0 This release

1 file

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