weida

GitHub crates.io

weida for Python (`crates/py/weida-py`, against the C ABI `libweida`) — feature parity

Rendered from docs/libraries/weida-py.md at 92c768a

Contents
  1. 1. What a row means
  2. 2. Classes
  3. 3. Errors
  4. 4. Waiting
  5. 5. Packaging
  6. 6. What is not mapped
  7. 7. Sources

1. What a row means

The package is cffi in out-of-line ABI mode over libweida (decisions/0045), and its API mirrors the C ABI: one class per handle, one method per function with the weida_<type>_ prefix dropped. Its reference is therefore weida-c.md: every row present there is present here unless a row below says otherwise, and every row absent there is absent here for the same reason. This document lists what the Python surface adds or changes. Verdicts are present (with the test), refused (with the reason) or absent (with the reason); there is no "partial".

Python shapes. A duration is seconds as an int or float and its name drops _ms or _us (shutdown_timeout, expire_after, ConnectionStats.age); one read back is a float; an optional one takes None. An enumeration is an enum.IntEnum in weida, named after weida's Rust type, its members the suffixes of the WEIDA_<TYPE>_* constants (weida.Congestion.BBR); an argument must be a member of that class, anything else is a TypeError, and a getter returns a member. A configuration value (RuntimeConfig, Limits, GuaranteeSet, ReconnectPolicy) takes keyword fields only; an unknown one is a TypeError naming it, and the values are converted when the call that takes it builds the handle (Runtime.owned), where a wrong type is a TypeError and a negative or non-finite number a ValueError. The terms of a RADIO join and segment (weida_join_terms, weida_segment_terms) are keyword arguments of the method that takes them, Dish.join and Radio.segment, converted the same way when it is called. A value the C ABI copies out at once is a frozen dataclass. A C queue (weida_peer_events; the identity, cursor and flow queues, and the swarm's Fetch and SeedSession, whose method keeps the C name next, take the same shape) is a class with recv(timeout=None), which returns the next item or None once the queue has ended; iterating it (for item in queue) calls recv without a timeout and stops at None. Its weida.asyncio twin has async recv() and async for (__aiter__) instead and is not iterable synchronously. drop() and with release the reader; leaving a loop early does not.

The tests are crates/py/weida-py/tests/unit/ (no sockets: the in-process transport only, one second each) and tests/integration/ (localhost, ten seconds each unless a test names more); smoke.py runs from a fresh virtualenv against the built wheel. Measured on CPython 3.13 on linux-amd64.

2. Classes

C ABIPython (weida, and weida.asyncio for the waiting ones)Verdict
weida_runtime_config, weida_limits, weida_guarantee_set, weida_reconnect_policyRuntimeConfig(**fields) with every field of weida_runtime_config (worker_threads, shutdown_timeout, max_connections, max_connections_per_peer, endpoint_queue, max_resolved_addresses, connect_attempt_timeout, send_timeout, outbox_messages, outbox_bytes, outbox_full, max_handshakes, retry_above_handshakes, discovery, resolver) and the nested limits=Limits(**fields) (every Limits field), guarantees=GuaranteeSet(**fields) (every dimension) and reconnect=ReconnectPolicy(**fields) or ReconnectPolicy.never(**fields); converted when Runtime.owned builds the handles (§1)present; test_config.py::test_a_full_configuration_builds_a_runtime, test_config.py::test_configuration_input_errors_raise_at_once, test_config.py::test_a_guarantee_the_dialler_does_not_offer_raises_negotiation, test_errors.py::test_a_runtime_with_no_worker_threads_is_a_runtime_failure
weida_runtimeRuntime.owned(config), .listener(), .requester(tls), .pusher(tls), .subscriber(tls), .pair(tls), .surveyor(tls), .dish(tls), .peer(tls), .swarm(tls), .shutdown(timeout) (consumes), .drain(deadline, timeout) -> Drained (consumes; deadline in seconds, §1; a deadline out of range is a ValueError that consumes nothing; a wait cut short by its timeout, or a cancelled asyncio one, aborts the drain where it is), .drop(), .suppressed_duplicates(), .expired_transfers() (an int each)present; every integration test, test_stats.py::test_expired_transfers_counts_a_reply_expired_with_expire_after_0, test_stats.py::test_an_inproc_connection_is_reported_with_its_url_and_no_transport, test_drain.py::test_a_drain_with_nothing_pending_returns_at_once, test_drain.py::test_a_deadline_out_of_range_is_a_value_error_and_consumes_nothing (drain), test_patterns.py::test_push_to_pull_over_inproc_arrives_in_order, ::test_a_pair_exchanges_in_both_directions, ::test_a_survey_collects_two_respondents_answers_within_its_window (patterns), test_swarm.py::test_a_blob_seeded_by_one_runtime_is_fetched_by_two_others_which_verify_it (swarm)
weida_resolver, weida_resolvedthe RuntimeConfig field resolver, a callable (lookup) -> list[str] answering each lookup of the runtime's dials with "ip:port" strings in dial order, called with a frozen Lookup(name, port, max_addresses) (port None when the URL wrote none); a plain callable runs on a daemon thread of its own, one lookup at a time, a coroutine function on the running loop of the weida.asyncio.Runtime made with it (on weida.Runtime a TypeError); a raise, or an answer that is not a list of str, refuses the lookup, and the dial raises InvalidAddress carrying why; the thread never keeps the process alive and ends with the runtime and everything made from itpresent; test_resolver.py::test_a_name_only_the_resolver_knows_is_dialled_through_it, test_resolver.py::test_a_coroutine_function_resolver_answers_on_the_running_loop, test_resolver.py::test_a_refused_or_malformed_answer_raises_invalid_address, test_resolver.py::test_a_runtime_with_a_resolver_does_not_keep_the_process_alive, test_config.py::test_configuration_input_errors_raise_at_once
weida_trustTrust(), .add_pin(fp), .add_anchor(pem | x509.Certificate), .add_anchor_file(path), each returning the trust, .is_empty() -> boolpresent; test_errors.py::test_a_malformed_pin_is_an_invalid_fingerprint, test_sync.py::test_a_wrong_pin_raises_untrusted, test_mtls.py::test_an_anchor_accepts_the_dialled_name_and_refuses_another, test_mtls.py::test_identity_and_anchor_files_read_back, test_sources.py::test_a_trust_source_reports_a_refresh_and_is_empty_follows_it
weida_identityIdentity.generate(), .generate_for(names), .from_pem(cert, key) (any bytes-like), .from_pem_file(path), .from_pem_files(cert_chain, key) (str, bytes or os.PathLike, as ssl takes them), .from_cryptography(cert, key), .fingerprint(), .certificate_pem() -> bytes, .to_pem() -> bytearray (holds the key; the caller wipes it), .certificates() -> list[bytes] (DER, leaf first)present; the test_identity.py tests, test_mtls.py::test_identity_and_anchor_files_read_back
weida_pemnot exposed: copied out at once into bytes (certificate_pem) or a bytearray (to_pem) and dropped, which wipes itrefused: a Python caller needs the bytes, not the handle
weida_client_tls, weida_server_tlsClientTls(trust, identity=None, *, alpn=None) with trust a Trust or a TrustSource and identity an Identity or an IdentitySource, ServerTls(identity, require_client=None, *, alpn=None) with identity an Identity or an IdentitySource and require_client None, a Trust, a TrustSource or ANY_KEY; alpn an Alpn (None is Alpn.WEIDA). A value is copied, a source sharedpresent; test_mtls.py::test_a_pinned_client_key_is_accepted_and_each_side_sees_the_others_chain, test_mtls.py::test_an_anonymous_or_unknown_client_is_refused_with_tls_and_nothing_reaches_the_server, test_mtls.py::test_a_binding_that_requires_clients_from_an_empty_trust_does_not_bind, test_mtls.py::test_any_key_exposes_the_fingerprint_and_the_chain, test_mtls.py::test_a_files_identity_source_rotates_a_bindings_certificate_and_its_events_report_it, test_mtls.py::test_a_mismatched_alpn_rejects_the_dial_with_tls, test_sources.py::test_source_and_alpn_argument_errors_are_type_errors
weida_identity_source, weida_weak_identity_sourceIdentitySource.from_identity(id), .ephemeral(names), .external(id), .files(dir, names=None, poll=None) (poll in seconds), .current(), .fingerprint(), .update(id), .report_failure(reason), .report_handoff_stolen(), .reload() -> bool, .events(), .downgrade(); WeakIdentitySource.upgrade() -> IdentitySource | None; calling either class is a TypeError; weida.asyncio has subclasses whose events() is its IdentityEventspresent; test_sources.py::test_an_external_identity_source_reports_its_updates_as_events, test_sources.py::test_a_weak_source_upgrades_until_the_last_strong_handle_is_gone_and_the_events_end, test_mtls.py::test_a_files_identity_source_rotates_a_bindings_certificate_and_its_events_report_it, test_asyncio.py::test_identity_events_iterate_with_async_for
weida_trust_source, weida_weak_trust_sourceTrustSource.from_trust(t), .external(t), .current(), .update(t), .report_failure(reason), .is_empty() -> bool, .events(), .downgrade(); WeakTrustSource.upgrade() -> TrustSource | None; calling either class is a TypeErrorpresent; test_sources.py::test_a_trust_source_reports_a_refresh_and_is_empty_follows_it, test_mtls.py::test_a_files_identity_source_rotates_a_bindings_certificate_and_its_events_report_it, test_mtls.py::test_a_mismatched_alpn_rejects_the_dial_with_tls
weida_files_optionsnot exposed: the keywords names and poll of IdentitySource.files, an unknown one a TypeErrorpresent; test_mtls.py::test_a_files_identity_source_rotates_a_bindings_certificate_and_its_events_report_it, test_sources.py::test_source_and_alpn_argument_errors_are_type_errors
weida_identity_events, weida_identity_eventIdentityEvents.recv(timeout) -> IdentityEvent | None (None once the source is gone), from IdentitySource.events() or TrustSource.events(), iterable, .fileno(), in weida.asyncio async recv() and async for (§1); IdentityEvent a frozen dataclass copied out at once: kind an IdentityEventKind, fingerprint, from_, to, message, missed, None where the kind does not carry itpresent; test_sources.py::test_an_external_identity_source_reports_its_updates_as_events, test_sources.py::test_a_weak_source_upgrades_until_the_last_strong_handle_is_gone_and_the_events_end, test_mtls.py::test_a_files_identity_source_rotates_a_bindings_certificate_and_its_events_report_it, test_asyncio.py::test_identity_events_iterate_with_async_for
weida_transfer_metaTransferMeta(content_type=None, *, content_len=None, trace=None, topic=None, achieved=None, report=None, report_mode=None), a plain value turned into a handle per call; trace a traceparent (a malformed one raises InvalidArgument), achieved an Acknowledgement, report a sequence of cursor levels (Acknowledgement members, or application stages as ints at or above CURSOR_LEVEL_APPLICATION_FLOOR; 6 to 15 InvalidArgument, more than 16 distinct LimitExceeded at the send, another type a TypeError), report_mode a ReportModepresent; test_sync.py::test_a_streamed_round_trip, test_config.py::test_metadata_travels_with_a_request_and_its_reply, test_cursors.py::test_a_request_that_orders_accepted_receives_the_reported_offsets_in_order, test_cursors.py::test_final_only_yields_exactly_one_update_per_level, test_cursors.py::test_a_report_order_of_the_wrong_type_is_a_type_error
weida_listenerListener.bind_quic(addr, tls, timeout), .bind_quic_socket(socket, tls, timeout) (an int descriptor, on Windows a SOCKET, e.g. socket.socket.detach() or Handoff.take_socket(); libweida's once the call reaches C; a bool or non-int is a TypeError, a negative one or one above 2**63 - 1 a ValueError, both leaving it the caller's), .bind_relay(relay, via, tls, timeout), .bind_inproc(bus), .bind_unix(path) -> UnixBinding (str, bytes or os.PathLike, UTF-8), .bind_pipe(name) -> PipeBinding (each Unsupported on the other platform), .replier(path), .puller(path), .publisher(path), .pair(path), .respondent(path), .bus(path, tls), .radio(path) (dropping the radio releases the path), .acceptor(path) (a dropped acceptor leaves its path registered), .seeder(path) -> Seeder, .relay() -> Relay (AlreadyRegistered on a second call)present; test_binding.py::test_a_hand_over_keeps_a_requesters_connection, test_relay.py::test_a_dial_only_replier_reached_through_a_relay_answers_a_requester (binding lifecycle), test_local.py::test_a_round_trip_over_a_unix_socket_names_the_clients_uid, test_local.py::test_a_round_trip_over_a_named_pipe_names_the_clients_sid (local transports), test_swarm.py::test_a_blob_seeded_by_one_runtime_is_fetched_by_two_others_which_verify_it (swarm)
weida_bindingBinding.local_addr(), .close(timeout) (a wait cut short by its timeout, or a cancelled asyncio one, aborts the close; the port is then freed by the runtime's shutdown), .hand_over(timeout) -> Handoff (consumes; Unsupported for a relayed binding, Closed once a close was started), .take_over(held, timeout) -> int (held any bytes-like), .disconnect(fingerprint) -> int, .relay_events() -> PeerEvents | None (None for a binding that is not relayed); dropping a relayed binding ends its registration, as close does without waiting, and any other binding serves on until close, a hand-over or the runtime's shutdownpresent; test_binding.py::test_a_closed_binding_refuses_the_next_dial, test_binding.py::test_a_hand_over_keeps_a_requesters_connection, test_binding.py::test_disconnect_closes_a_peers_connections_by_its_key, test_relay.py::test_a_dial_only_replier_reached_through_a_relay_answers_a_requester (binding lifecycle)
weida_local_bindingLocalBinding.bus()present
weida_unix_binding, weida_pipe_bindingUnixBinding.path(), PipeBinding.name(); dropping either ends the binding, the unix one removing its socket filepresent; test_local.py::test_a_round_trip_over_a_unix_socket_names_the_clients_uid, test_local.py::test_a_round_trip_over_a_named_pipe_names_the_clients_sid (local transports)
weida_handoffHandoff.held() -> int, .local_addr(), .bytes() -> bytes (a copy), .take_socket() -> int (once, then Closed); dropping it closes a socket not takenpresent; test_binding.py::test_a_hand_over_keeps_a_requesters_connection (binding lifecycle)
weida_relay, weida_relay_requestRelay.accept(timeout) -> RelayRequest, .fileno(); RelayRequest.peer_fingerprint(), .target() (None for a registration), .admit(timeout), .admit_with(bytes_per_sec, timeout), .refuse(timeout) (all three consume; a bytes_per_sec that is a bool or not an int is a TypeError, a negative one or one above 2**64 - 1 a ValueError, and neither consumes the request); dropped unanswered, a request answers NO_REPLYpresent; test_relay.py::test_a_dial_only_replier_reached_through_a_relay_answers_a_requester, test_relay.py::test_a_registration_the_relay_refuses_raises_rejected_from_bind_relay, test_relay.py::test_a_tunnel_admitted_with_a_budget_moves_no_faster_than_it (binding lifecycle)
weida_requesterRequester.connect(url, timeout), .request(body, timeout) -> IncomingTransfer, .request_with(meta, body, timeout) -> IncomingTransfer, .open(meta=None, timeout) -> (OutgoingTransfer, ReplyStream) (a tuple; meta copied when the exchange opens), .connection_stats() -> tuple[ConnectionStats, ...], .events() -> PeerEvents (a new reader per call)present; test_sync.py::test_a_streamed_round_trip, test_asyncio.py::test_a_round_trip_over_quic, test_config.py::test_metadata_travels_with_a_request_and_its_reply, test_asyncio.py::test_request_with_carries_metadata_on_the_loop, test_streams.py::test_an_opened_exchange_reads_its_reply_while_the_request_is_still_open, test_asyncio.py::test_an_opened_exchange_and_a_dropped_reply_stream_on_the_loop, test_stats.py::test_an_inproc_connection_is_reported_with_its_url_and_no_transport, test_stats.py::test_a_replier_runtime_shut_down_yields_lost_then_retrying, test_sync.py::test_a_quic_connection_reports_its_transport
weida_reply_streamReplyStream.recv(timeout) -> IncomingTransfer (consumes; a recv cut short by its timeout, or a cancelled asyncio one, abandons the reply), .drop() (the replier sees CANCELED: its canceled returns)present; test_streams.py::test_an_opened_exchange_reads_its_reply_while_the_request_is_still_open, test_streams.py::test_dropping_a_reply_stream_tells_the_replier_nobody_is_listening, test_asyncio.py::test_an_opened_exchange_and_a_dropped_reply_stream_on_the_loop
weida_pusherPusher.connect(url, timeout), .disconnect(url) -> bool, .peer_count(), .connection_stats(), .events() -> PeerEvents, .dropped() -> int, .open(meta=None, timeout) -> OutgoingTransfer (finish() hands back the receipt; a wait cut short resets the transfer CANCELED), .send(body, timeout), .send_with(meta, body, timeout) (body any bytes-like)present; test_patterns.py::test_push_to_pull_over_inproc_arrives_in_order, test_asyncio.py::test_push_pull_and_a_fan_out_on_the_loop (patterns)
weida_pullerPuller.path(), .fileno(), .recv(timeout) -> IncomingTransfer (a recv cut short loses nothing)present; test_patterns.py::test_push_to_pull_over_inproc_arrives_in_order, test_asyncio.py::test_push_pull_and_a_fan_out_on_the_loop (patterns)
weida_publisherPublisher.path(), .publish(topic, payload) -> int, .publish_with_trace(topic, payload, trace) -> int, .open(topic) -> FanOut, .open_with_trace(topic, trace) -> FanOut, .subscriber_count(), .filter_count(), .dropped() -> int, .dropped_on(topic) -> TopicDrops | None, .drops() -> tuple[TopicDrops, ...]; weida.asyncio.Publisher.open hands out a weida.asyncio.FanOutpresent; test_patterns.py::test_a_subscriber_receives_only_its_topic, ::test_a_skipped_sequence_reads_as_a_gap_under_per_producer_detect, ::test_a_fan_out_streams_one_payload_to_every_subscriber (patterns)
weida_subscriberSubscriber.connect(url, timeout), .disconnect(url) -> bool, .peer_count(), .connection_stats(), .events() -> PeerEvents, .subscribe(filter, timeout), .unsubscribe(filter, timeout), .grant(filter, limit, timeout) (a limit that is not an int a TypeError, a negative one or one above 2**64 - 1 a ValueError), .filter_count(), .fileno(), .recv(timeout) -> IncomingTransferpresent; test_patterns.py::test_a_subscriber_receives_only_its_topic, ::test_a_skipped_sequence_reads_as_a_gap_under_per_producer_detect (patterns)
weida_fan_out, weida_fan_out_write_within_opFanOut.topic(), .subscribers(), .write_within(chunk, limit, timeout) -> int (limit in seconds, §1; a wait cut short by its timeout, or a cancelled asyncio one, abandons the transfer; every other call raises InvalidArgument while it runs), .write_now(chunk) -> int, .finish() -> int (consumes); .drop() aborts every copy not finishedpresent; test_patterns.py::test_a_fan_out_streams_one_payload_to_every_subscriber, test_asyncio.py::test_push_pull_and_a_fan_out_on_the_loop (patterns)
weida_topic_dropsnot exposed: copied out at once into frozen TopicDrops(topic, subscriber_budget, subscriber_queue, no_parked_connection, superseded, expired, too_large, no_datagrams, layers_cut), from the publisher's and radio's dropped_on and drops and from Peer.segment_drops; TopicDrops::total refused as in weida-c.mdpresent; test_patterns.py::test_a_skipped_sequence_reads_as_a_gap_under_per_producer_detect (patterns)
weida_pairedPaired.path() ("" on a dialling pair), .connect(url, timeout) (once; LimitExceeded for a second address, Unsupported on a bound pair), .peer_count(), .connection_stats(), .events() -> PeerEvents | None (None on a bound pair), .dropped() -> int, .open(meta=None, timeout) -> OutgoingTransfer, .send(body, timeout), .send_with(meta, body, timeout), .fileno(), .recv(timeout) -> IncomingTransferpresent; test_patterns.py::test_a_pair_exchanges_in_both_directions, test_asyncio.py::test_pair_survey_and_bus_on_the_loop (patterns)
weida_surveyorSurveyor.connect(url, timeout), .peer_count(), .connection_stats(), .survey(body, deadline, timeout) -> SurveyRun, .survey_with(meta, body, deadline, timeout) -> SurveyRun (deadline in seconds, §1, bounding the asking and the answers; a deadline out of range a ValueError, one the clock cannot add InvalidArgument)present; test_patterns.py::test_a_survey_collects_two_respondents_answers_within_its_window, test_asyncio.py::test_pair_survey_and_bus_on_the_loop (patterns)
weida_survey_run, weida_survey_answerSurveyRun.next(max_bytes, timeout) -> bytes | None (None once the run ended; an answer copied out at once into bytes; a failed answer raises its error and the run goes on; a next cut short by its timeout, or a cancelled asyncio one, leaves its read in flight for the next call), .late() -> int, .respondents(), .fileno(); .drop() resets the unanswered exchangespresent; test_patterns.py::test_a_survey_collects_two_respondents_answers_within_its_window, test_asyncio.py::test_pair_survey_and_bus_on_the_loop (patterns)
weida_respondentRespondent.path(), .fileno(), .accept(timeout) -> IncomingRequestpresent; test_patterns.py::test_a_survey_collects_two_respondents_answers_within_its_window, test_asyncio.py::test_pair_survey_and_bus_on_the_loop (patterns)
weida_bus_memberBusMember.path(), .connect(url, timeout), .peer_count(), .connection_stats(), .send(body, timeout) -> int, .send_with(meta, body, timeout) -> int (the members reached; LimitExceeded above Limits.subscriber_buffer_bytes), .fileno(), .recv(timeout) -> IncomingTransfer, .dropped() -> intpresent; test_patterns.py::test_a_bus_message_reaches_every_other_member, test_asyncio.py::test_pair_survey_and_bus_on_the_loop (patterns)
weida_radioRadio.path(), .segment(topic, *, max_age=None, priority=0, follows_upstream=False) -> Segment, .datagram(topic, payload) -> int (the dishes handed), .dish_count(), .dropped() -> int, .dropped_on(topic) -> TopicDrops | None, .drops() -> tuple[TopicDrops, ...], .evict(fingerprint, filter) -> int (InvalidFingerprint for malformed text), .dish_drops() -> tuple[DishDrops, ...]; dropping it releases the pathpresent; test_patterns.py::test_a_dish_receives_the_radios_segments_with_their_numbers_and_layers, ::test_a_superseded_segment_counts_in_dish_drops, ::test_a_radio_datagram_reaches_a_dish_that_carries_datagrams, test_radio.py::test_a_radio_evicts_a_dish_by_its_key (patterns)
weida_segmentSegment.number(), .topic(), .write(chunk) -> int, .write_layer(layer, chunk) -> int (the copies that took it; a layer of MAX_SEGMENT_LAYERS or above LimitExceeded, a finished one RuntimeFailure), .finish_layer(layer), .finish() -> int (consumes; the copies still holding layer 0); .drop() resets every unfinished layer; from Radio.segment, also from Peer.segmentpresent; test_patterns.py::test_a_dish_receives_the_radios_segments_with_their_numbers_and_layers, ::test_a_superseded_segment_counts_in_dish_drops, test_radio.py::test_a_radio_evicts_a_dish_by_its_key (patterns)
weida_dishDish.connect(url, timeout), .peer_count(), .connection_stats(), .events() -> PeerEvents, .join(filter, timeout, *, max_age=None, max_layer=None) (LimitExceeded for a max_layer of 16 to 255, InvalidArgument above, Protocol for a filter outside the grammar), .leave(filter, timeout), .fileno(), .recv(timeout) -> Received (a recv cut short loses nothing), .stale() -> int, .overflow() -> intpresent; test_patterns.py::test_a_dish_receives_the_radios_segments_with_their_numbers_and_layers, ::test_a_superseded_segment_counts_in_dish_drops, ::test_a_radio_datagram_reaches_a_dish_that_carries_datagrams, test_radio.py::test_a_radio_evicts_a_dish_by_its_key, test_asyncio.py::test_radio_and_dish_on_the_loop (patterns)
weida_join_terms, weida_segment_termsnot exposed: the keyword arguments max_age (seconds or None, §1) and max_layer (an int or None, every layer) of Dish.join, and max_age, priority (an int; outside int16 InvalidArgument) and follows_upstream (a flag) of Radio.segment, turned into a handle per callpresent; test_patterns.py::test_a_dish_receives_the_radios_segments_with_their_numbers_and_layers, test_asyncio.py::test_radio_and_dish_on_the_loop (patterns)
weida_received, weida_dish_dropsnot exposed: copied out at once into a frozen Received(kind, transfer, topic, segment, payload) (kind a ReceivedKind; a stream segment carries its IncomingTransfer, taken at once, a datagram segment its topic, segment and payload as bytes; a field the kind does not carry None) and a tuple of frozen DishDrops(peer_fingerprint, subscriber_budget, subscriber_queue, superseded, expired, too_large, no_datagrams, layers_cut) (peer_fingerprint None for a dish that proved no key)present; test_patterns.py::test_a_superseded_segment_counts_in_dish_drops, ::test_a_radio_datagram_reaches_a_dish_that_carries_datagrams, test_radio.py::test_a_radio_evicts_a_dish_by_its_key (patterns)
weida_replierReplier.path(), .fileno(), .accept(timeout)present; test_sync.py::test_an_accept_with_nothing_pending_raises_again, test_asyncio.py::test_two_accepts_on_one_replier_serve_two_requests
weida_incoming_requestIncomingRequest.meta(), .take_body(), .reply(meta, timeout) (consumes), .refuse(code, timeout) (consumes; code an ErrorCode, anything else a TypeError that consumes nothing), .canceled(timeout) (the watch starts at the call and outlives the request; in weida.asyncio a plain method that starts it and returns the awaitable, so it can be taken before reply or refuse), .connection() -> intpresent; test_sync.py::test_a_second_reply_raises_closed, test_refusals.py::test_a_refused_request_raises_the_refused_codes_error_at_the_requester, test_refusals.py::test_a_refusal_code_that_is_not_an_error_code_is_a_type_error_and_leaves_the_request_usable, test_refusals.py::test_canceled_returns_once_the_requester_gives_up, test_asyncio.py::test_canceled_starts_at_the_call_and_returns_once_the_requester_gives_up, test_stats.py::test_an_inproc_connection_is_reported_with_its_url_and_no_transport
weida_incoming_transferIncomingTransfer.meta(), .fileno(), .readinto(buffer, timeout), .read(n, timeout) (b"" at the end), .collect(max_bytes, timeout) -> Message (consumes), .connection() -> int, .reporter() -> Reporter | None (a new reporter per call; take it before collect)present; test_sync.py::test_small_reads_reassemble_the_body, test_sync.py::test_a_collect_over_its_ceiling_raises_limit_exceeded, test_sync.py::test_a_reply_dropped_unfinished_reads_as_canceled, test_stats.py::test_an_inproc_connection_is_reported_with_its_url_and_no_transport, test_cursors.py::test_a_request_that_orders_accepted_receives_the_reported_offsets_in_order
weida_outgoing_transferOutgoingTransfer.fileno(), .write(data, timeout), .write_all(data, timeout), .trace(), .set_priority(n), .expire_after(seconds) (weida_outgoing_transfer_expire_after_ms in seconds, §1), .cursors() -> Cursors | None (once; take it before finish), .finish() (consumes)present; write_all is the Python loop R3c leaves to the caller, its timeout bounding the whole call; test_config.py::test_metadata_travels_with_a_request_and_its_reply, test_config.py::test_an_expired_reply_fails_its_finish_with_expired, test_cursors.py::test_a_request_that_orders_accepted_receives_the_reported_offsets_in_order
weida_deliveryDelivery.delivered(timeout) (consumes)present
weida_incoming_metaIncomingMeta, a frozen dataclass copied out at once; peer_chain is a tuple of DER bytes, leaf first, or None; peer_local a frozen LocalPrincipal(uid, gid, pid) for an AF_UNIX peer, a frozen WindowsPrincipal(sid, pid) for a named-pipe peer, else None, pid None where the platform reports none (an observation only); trace and tracestate a str or None; achieved an Acknowledgement or None; gap a frozen Gap(expected, seen) under OrderingMode.PER_PRODUCER_DETECT when a sequence number was skipped, else None; segment and layer the segment number and layer of a RADIO stream segment, both or neither, else None; report a tuple of the ordered cursor levels (Acknowledgement below the floor, int at or above it; () when none), report_mode a ReportMode, report_id an int exactly when levels were ordered, else Nonepresent; test_mtls.py::test_any_key_exposes_the_fingerprint_and_the_chain, test_config.py::test_metadata_travels_with_a_request_and_its_reply, test_local.py::test_a_round_trip_over_a_unix_socket_names_the_clients_uid, test_local.py::test_a_round_trip_over_a_named_pipe_names_the_clients_sid, test_patterns.py::test_a_skipped_sequence_reads_as_a_gap_under_per_producer_detect, test_patterns.py::test_a_dish_receives_the_radios_segments_with_their_numbers_and_layers, test_cursors.py::test_a_request_that_orders_accepted_receives_the_reported_offsets_in_order
weida_msgMessage(payload: bytes, meta: IncomingMeta), copied out at oncepresent
weida_connection_statsnot exposed: copied out at once into a tuple of frozen ConnectionStats(url, age, redials, transport, remote), one per live dialled address in dial order; transport a TransportStats(path: PathStats, tx: UdpCounts, rx: UdpCounts) or None on a local transport, remote a RemoteStats (the PathStats numbers but max_datagram_size, plus age, tx, rx) or None until the peer's first record, on a local transport or with path_report off; PathStats.max_datagram_size None when the peer accepts no datagram; durations in seconds (§1)present; test_stats.py::test_an_inproc_connection_is_reported_with_its_url_and_no_transport, test_sync.py::test_a_quic_connection_reports_its_transport
weida_peer_events, weida_peer_eventPeerEvents.recv(timeout) -> PeerEvent | None (None once the requester, pusher, subscriber, dialling pair, dish, raw peer or swarm, or the relayed binding's registration, is gone), from Requester.events(), Pusher.events(), Subscriber.events(), Paired.events(), Dish.events(), Peer.events(), Swarm.events() or Binding.relay_events(), iterable, .fileno(); in weida.asyncio async recv() and async for (§1); PeerEvent a frozen dataclass copied out at once: kind a PeerEventKind, url, peer_fingerprint, cause a LossCause, attempt, delay (seconds), why a GiveUp, why_attempts, why_presented, why_message, missed, None where the kind does not carry itpresent; test_stats.py::test_a_replier_runtime_shut_down_yields_lost_then_retrying, test_asyncio.py::test_peer_events_iterate_with_async_for, test_relay.py::test_a_dial_only_replier_reached_through_a_relay_answers_a_requester
weida_cursors, weida_cursor_setCursors.recv(timeout) -> CursorSet | None (None once no more cursors come: the reporter finished, the stream was reset or the connection is gone), from OutgoingTransfer.cursors(), iterable, .fileno(); in weida.asyncio async recv() and async for (§1); a CursorSet is a tuple of frozen CursorEntry(level, offset) copied out at once, ascending by level, level an Acknowledgement below CURSOR_LEVEL_APPLICATION_FLOOR and an int at or above it; weida_cursor_set_offset not mapped (scan the tuple)present; test_cursors.py::test_a_request_that_orders_accepted_receives_the_reported_offsets_in_order, test_cursors.py::test_final_only_yields_exactly_one_update_per_level, test_asyncio.py::test_cursors_on_the_loop (cursors)
weida_reporterReporter.levels() (a tuple, ascending), .mode() -> ReportMode, .set_granularity(bytes, interval) (interval in seconds, §1), .report(level, offset, timeout) (a level not ordered is ignored; a wait cut short, or a cancelled asyncio one, aborts the report), .finish(timeout) (consumes); .drop() flushes nothingpresent; test_cursors.py::test_a_request_that_orders_accepted_receives_the_reported_offsets_in_order, test_cursors.py::test_final_only_yields_exactly_one_update_per_level, test_asyncio.py::test_cursors_on_the_loop (cursors)
weida_peer, weida_flow_metaRuntime.peer(tls) -> Peer, Peer.connect(url, timeout), .disconnect(url) -> bool, .peer_count(), .dropped() -> int, .connection_stats(), .events() -> PeerEvents (weida_peer_peer_events; events as on every other dialler), .open(meta=None, timeout) -> OutgoingTransfer, .open_bi(meta=None, timeout) -> (OutgoingTransfer, ReplyStream) (a tuple, as Requester.open), .send(meta, body, timeout) (meta a TransferMeta or None, body any bytes-like), .segment(topic, timeout, *, max_age=None, priority=0, follows_upstream=False) -> Segment (the terms of Radio.segment), .segment_drops(topic) -> TopicDrops | None, .open_flow(meta=None, timeout) -> Flow (returns once the flow's header is written; a refusal arrives as a later send that raises; DatagramsUnavailable unless both runtimes carry datagrams), meta a FlowMeta(content_type=..., trace=..., topic=...) of keyword fields turned into a handle per call (§1; each a str, None unset, another type a TypeError, an unknown field a TypeError, a malformed trace InvalidArgument, a label above 256 bytes LimitExceeded at the open); a wait cut short, or a cancelled asyncio one, resets an open transfer CANCELED and abandons an exchangepresent; test_flows.py::test_a_flow_carries_datagrams_to_an_acceptor_and_ends_after_them, test_flows.py::test_a_flow_without_datagrams_is_unavailable_other_kinds_are_tagged_and_a_refusal_reaches_the_sender, test_flows.py::test_flow_metadata_of_the_wrong_type_is_a_type_error, test_asyncio.py::test_flows_on_the_loop (flows), test_peers.py::test_a_raw_peer_opens_a_stream_that_the_acceptor_reads, test_asyncio.py::test_raw_peers_on_the_loop (raw peers)
weida_acceptor, weida_incoming, weida_credit_grantAcceptor.path(), .fileno(), .accept(timeout) -> Incoming (an accept cut short loses nothing; NotConnected once the queue ended), Incoming a frozen Incoming(kind, transfer, request, consumer, flow, id, filter, limit) copied out at once: kind an IncomingKind; a stream carries its IncomingTransfer, an exchange its IncomingRequest, a subscription its Consumer and a flow its IncomingFlow, each taken at once; a credit grant carries id, filter and limit (ints and a str, the grant copied and dropped at once), an unsubscription id and filter (None for the whole connection); every other field None; in weida.asyncio the handles are its classespresent; test_flows.py::test_a_flow_carries_datagrams_to_an_acceptor_and_ends_after_them, test_flows.py::test_a_flow_without_datagrams_is_unavailable_other_kinds_are_tagged_and_a_refusal_reaches_the_sender, test_asyncio.py::test_flows_on_the_loop (flows), test_peers.py::test_a_raw_peer_opens_a_stream_that_the_acceptor_reads, test_peers.py::test_credit_granted_in_two_steps_releases_exactly_that_many_deliveries (raw peers)
weida_consumerConsumer.id() -> int, .filter(), .path(), .open(meta=None, timeout) -> OutgoingTransfer, .deliver(meta, body, timeout), .close(code, reason) (code an int, an ErrorCode member works; a bool or non-int a TypeError, negative or above 2**64 - 1 a ValueError); in weida.asyncio open and deliver are coroutines; .drop() leaves the subscriptionpresent; test_peers.py::test_credit_granted_in_two_steps_releases_exactly_that_many_deliveries, test_asyncio.py::test_raw_peers_on_the_loop (raw peers)
weida_flow, weida_path_statsFlow.send(payload) (any bytes-like; never waits; TooLarge with .max above max_payload(), on an ended flow the error that ended it, e.g. Rejected), .max_payload() -> int | None, .stats() -> FlowStats(sent, too_large, discarded, not_live) (frozen), .path_stats() -> PathStats | None (the PathStats of ConnectionStats, copied out at once, durations in seconds; None on a local transport), .abort() (consumes; resets CANCELED); .drop() closes with FIN; never waits, so weida.asyncio hands out the same classpresent; test_flows.py::test_a_flow_carries_datagrams_to_an_acceptor_and_ends_after_them, test_flows.py::test_a_flow_without_datagrams_is_unavailable_other_kinds_are_tagged_and_a_refusal_reaches_the_sender, test_flows_quic.py::test_a_flow_carries_datagrams_over_quic (flows)
weida_incoming_flow, weida_datagramIncomingFlow.info() -> IncomingMeta (endpoint, topic, content_type, trace, peer_fingerprint, peer_chain, peer_local; every other field absent), .fileno(), .recv(timeout) -> bytes | None (a datagram copied out at once; None once the flow ended and every datagram before its end was taken; a recv cut short loses nothing), iterable, in weida.asyncio async recv() and async for (§1), .stats() -> IncomingFlowStats(received, overflow) (frozen), .path_stats() -> PathStats | None, .refuse() (consumes; stops REJECTED); .drop() stops CANCELEDpresent; test_flows.py::test_a_flow_carries_datagrams_to_an_acceptor_and_ends_after_them, test_flows_quic.py::test_a_flow_carries_datagrams_over_quic, test_asyncio.py::test_flows_on_the_loop (flows)
weida_blob, weida_blob_id_ofBlob(root, size, piece_log2=PIECE_SIZE_DEFAULT_LOG2) (root any bytes-like of BLOB_ID_LEN bytes, else a ValueError), .root() -> bytes, .size(), .piece_log2(), .count(), .span(index) -> (start, end) | None (end exclusive), blob_id_of(data) -> bytes; an index or length is an int, a bool or non-int a TypeError, negative or above 2**32 - 1 a ValueErrorpresent; test_swarm.py::test_a_blob_seeded_by_one_runtime_is_fetched_by_two_others_which_verify_it, ::test_piece_tree_input_errors_raise_at_once (swarm)
weida_piece_list, weida_tree_hasherPieceList.of(data, piece_log2=PIECE_SIZE_DEFAULT_LOG2), .parse(blob, data), .blob(), .to_bytes() (a copy), .check(index, piece) -> bool; calling PieceList is a TypeError; TreeHasher(piece_log2=PIECE_SIZE_DEFAULT_LOG2), .update(data) (returns the hasher), .finish() -> PieceList (consumes)present; test_swarm.py::test_a_blob_seeded_by_one_runtime_is_fetched_by_two_others_which_verify_it, ::test_piece_tree_input_errors_raise_at_once (swarm)
weida_bitsBits(length), Bits.full(length), .from_bytes(length, data), .as_bytes() (a copy, least significant bit first), .len(), .get(index) -> bool, .set(index, on), .ones(), .all() -> boolpresent; test_swarm.py::test_a_blob_seeded_by_one_runtime_is_fetched_by_two_others_which_verify_it, ::test_a_piece_a_seeder_says_is_gone_is_unavailable_until_another_seeder_serves_it, ::test_piece_tree_input_errors_raise_at_once (swarm)
weida_swarm, weida_fetch_optionsRuntime.swarm(tls) -> Swarm, Swarm.connect(url, timeout), .disconnect(url) -> bool, .peer_count(), .connection_stats(), .events() -> PeerEvents, .fetch(blob, have, *, list=None, stall=None, min_rate=None, per_peer=None, max_inflight=None, max_peers=None, have_refresh=None) -> Fetch (the options as keyword arguments, stall and have_refresh in seconds, §1, None weida's default, turned into a handle per call; an unknown keyword, a wrong type or a list that is not a PieceList a TypeError)present; test_swarm.py::test_a_blob_seeded_by_one_runtime_is_fetched_by_two_others_which_verify_it, ::test_a_declined_session_leaves_the_fetch_not_connected, test_asyncio.py::test_swarm_on_the_loop (swarm)
weida_fetch, weida_pieceFetch.blob(), .list() -> PieceList | None, .delivered(), .in_flight(), .unavailable() (Bits copies), .prioritize(start, end), .clear_priority() (each answers while a next is in flight, which starts again at the next call, losing nothing), .next(timeout) -> Piece | None (a frozen Piece(index, bytes) copied out at once; None once every piece is held; a next cut short, or a cancelled asyncio one, leaves its read in flight), iterable, .fileno(), in weida.asyncio async next() and async for (§1)present; test_swarm.py::test_a_blob_seeded_by_one_runtime_is_fetched_by_two_others_which_verify_it, ::test_a_declined_session_leaves_the_fetch_not_connected, ::test_a_piece_a_seeder_says_is_gone_is_unavailable_until_another_seeder_serves_it, test_asyncio.py::test_swarm_on_the_loop (swarm)
weida_seeder, weida_seed_sessionListener.seeder(path) -> Seeder, Seeder.path(), .fileno(), .accept(timeout) -> SeedSession; SeedSession.blob(), .meta() -> IncomingMeta, .connection() -> int, .fileno(), .next(timeout) -> Order | None (a frozen Order(kind, index), kind an Ask, index None but for PIECE), .answer_list(list, timeout), .answer_have(bits, timeout), .answer_piece(data, timeout) (any bytes-like), .answer_gone(index, timeout), .decline(timeout) (consumes); a call while another is in flight raises InvalidArgument; the waiting ones are coroutines in weida.asynciopresent; test_swarm.py::test_a_blob_seeded_by_one_runtime_is_fetched_by_two_others_which_verify_it, ::test_a_declined_session_leaves_the_fetch_not_connected, ::test_a_piece_a_seeder_says_is_gone_is_unavailable_until_another_seeder_serves_it, test_asyncio.py::test_swarm_on_the_loop (swarm)
weida_drainednot exposed: copied out at once into a frozen Drained(delivered, outstanding) of intspresent; test_drain.py::test_a_drain_counts_a_reply_finished_before_it_as_delivered, test_asyncio.py::test_a_drain_on_the_loop_counts_a_reply_finished_before_it (drain)
the ops (*_op)not exposed: a waiting method starts its op, waits, and drops it in finally, which cancels it only when it did not finish; the asyncio canceled holds its op from the call to the end of its awaitable, and the collector drops one never awaitedrefused: an op is the C caller's way to wait, not a value a Python caller needs
weida_pollnot exposedrefused: select, selectors and the event loop take the fileno() descriptors directly
weida_version, weida_strerror, weida_new_traceweida.version(), weida.strerror(code), weida.new_trace()present; smoke.py, test_errors.py::test_strerror_of_an_unknown_code_is_unknown_error, test_config.py::test_new_trace_is_a_sampled_traceparent
the enumeration constants WEIDA_CONGESTION_*, WEIDA_DISCOVERY_*, WEIDA_OUTBOX_FULL_*, WEIDA_ERROR_CODE_*, WEIDA_PEER_EVENT_*, WEIDA_LOSS_*, WEIDA_GIVE_UP_*, WEIDA_ALPN_*, WEIDA_IDENTITY_EVENT_*, WEIDA_RECEIVED_*, WEIDA_REPORT_MODE_*, WEIDA_INCOMING_*, WEIDA_ASK_* and the six guarantee dimensions, WEIDA_DEFAULT_DATAGRAM_RECEIVE_BYTES, WEIDA_MAX_SEGMENT_LAYERS, WEIDA_CURSOR_LEVEL_APPLICATION_FLOOR, WEIDA_BLOB_ID_LEN, WEIDA_MAX_PIECES, WEIDA_PIECE_SIZE_*_LOG2the IntEnums Congestion, Discovery, OutboxFull, DeliveryLevel, Acknowledgement, Durability, OrderingMode, Deduplication, Backpressure, ProducerNaming, ErrorCode, PeerEventKind (named after the C constants: the Rust PeerEvent is the record), LossCause, GiveUp, Alpn, IdentityEventKind (named after the C constants: the Rust IdentityEvent is the record), ReceivedKind (named after the C constants: the Rust Received is the record), ReportMode (§1), IncomingKind (named after the C constants: the Rust Incoming is the record), Ask (an Order's kind), and weida.DEFAULT_DATAGRAM_RECEIVE_BYTES, weida.MAX_SEGMENT_LAYERS, weida.CURSOR_LEVEL_APPLICATION_FLOOR, weida.BLOB_ID_LEN, weida.MAX_PIECES, weida.PIECE_SIZE_MIN_LOG2, weida.PIECE_SIZE_MAX_LOG2, weida.PIECE_SIZE_DEFAULT_LOG2present; test_config.py::test_a_full_configuration_builds_a_runtime, test_config.py::test_configuration_input_errors_raise_at_once, test_refusals.py::test_a_refusal_code_that_is_not_an_error_code_is_a_type_error_and_leaves_the_request_usable, test_sources.py::test_source_and_alpn_argument_errors_are_type_errors, test_patterns.py::test_a_dish_receives_the_radios_segments_with_their_numbers_and_layers, test_cursors.py::test_final_only_yields_exactly_one_update_per_level, test_flows.py::test_a_flow_carries_datagrams_to_an_acceptor_and_ends_after_them, test_swarm.py::test_a_blob_seeded_by_one_runtime_is_fetched_by_two_others_which_verify_it

The conversions between cryptography's certificates and private keys, paths and bytes and the ABI's PEM and DER follow 0047; cryptography is optional, and without it bytes and paths work alone.

Every handle class releases its handle through ffi.gc, and .drop() and with release it at once. A dropped or consumed object raises Closed without calling C.

3. Errors

WeidaError with .code (the positive WEIDA_E*) and .detail, and one subclass per code: the 24 variants under their Rust names (Runtime is RuntimeFailure, so that it does not shadow the Runtime class), plus Again (also a TimeoutError), Interrupted, InvalidArgument (also a ValueError), Closed and Panic. ConnectionLost.cause, Untrusted.fingerprint, TooLarge.max and Io.os_errno carry the thread-local record, read right after the failing call on the same thread. Present; test_errors.py::test_every_code_raises_its_own_class_carrying_the_code, test_sync.py::test_a_wrong_pin_raises_untrusted.

4. Waiting

BehaviourVerdict
A timeout in seconds, None waiting forever, 0 only trying; a passed timeout raises Againpresent; test_sync.py::test_an_accept_with_nothing_pending_raises_again
Ctrl-C ends a blocked call with KeyboardInterrupt on Unix, with no time slices: the C wait returns EINTR, the binding runs the pending handlers itself (signal.pthread_sigmask, which calls PyErr_CheckSignals; PyPy would otherwise hand a signal another thread noticed to the main thread only after a later GIL switch, and the next wait would block), and the call's in-flight work stays in the handlepresent; test_sync.py::test_ctrl_c_ends_a_blocked_accept, which sends a process-directed SIGINT as a terminal does
Ctrl-C on Windows: each wait is cut into 100 ms slices, because Windows has no EINTRpresent: every waiting call of the tests in python-windows-amd64 runs in slices; Ctrl-C itself is not sent there (test_sync.py::test_ctrl_c_ends_a_blocked_accept is skipped on Windows)
The GIL is released for every C call (cffi does it), so a blocked call holds no other Python threadpresent
asyncio: one loop.add_reader registration per object and a FIFO of waiting coroutines, each retried with a timeout-0 try when the descriptor is readablepresent; test_asyncio.py::test_two_accepts_on_one_replier_serve_two_requests
asyncio cancellation cancels the operation (its op is dropped)present; test_asyncio.py::test_a_cancelled_request_ends_and_the_runtime_still_shuts_down
The Windows Proactor loop, which cannot watch a descriptor: the wait runs in the default executor, and cancellation drops the object, which ends that wait with Closedpresent; test_asyncio.py runs on Windows' default Proactor loop in python-windows-amd64 (the nightly and a release tag)

5. Packaging

RowVerdict
One py3-none-<platform> wheel per platform, with libweida and the generated _ffi.py insidepresent; package.sh refuses any other tag
Platform tags PyPI accepts: manylinux_2_<glibc>_x86_64 and _aarch64, macosx_11_0_arm64, win_amd64present: the python-linux-* jobs retag the c-abi-linux-* wheel with auditwheel repair (the glibc floor of the trixie build image; libweida is the only native file), hatch_build.py tags a macOS wheel with the deployment target libweida is built for (MACOSX_DEPLOYMENT_TARGET, else rustc's 11.0), and each python job checks its wheel's file name and runs twine check before it hands the wheel on
The version is the workspace version in PEP 440 spelling (0.1.0-alpha.11-dev is 0.1.0a11.dev0)present; smoke.py
The wheel runs with no Rust toolchain on PATHpresent; package.sh runs smoke.py with PATH=/usr/bin:/bin, and on the nightly and a release tag every python job runs it from a virtualenv holding only its wheel
CPython 3.9 and uppresent by requires-python; 3.13 (the c-abi-linux-* jobs, editable install; python-darwin-arm64 and python-windows-amd64, the wheel) and 3.14 (every python job, the wheel) are run
PyPypresent: PyPy 3.11 runs the tests against the wheel in every python job (linux-amd64, linux-arm64, darwin-arm64, windows-amd64)
Free-threaded CPython (3.13t, 3.14t)3.14t present: every python job runs the tests against the wheel and checks that importing weida leaves the GIL disabled; 3.13t not run
cryptographyoptional: imported per call, never a dependency; installed for the CPython test runs, absent on 3.14t and PyPy
macOSpresent: python-darwin-arm64 builds libweida and the macosx_11_0_arm64 wheel on atik with uv's CPython (not the Xcode one) and runs the tests against it
Windowspresent: python-windows-amd64 builds libweida, statically linked to the C runtime, and the win_amd64 wheel on wohnzimmer with uv's CPython and runs the tests against it
PyPIpresent: a v* tag publishes the four wheels to pypi.org as weida (publish-pypi, after crates.io), the first being 0.1.0-alpha.16; wheels only, no sdist, because building one needs a Rust toolchain; a wheel whose file PyPI already has is skipped, so a rerun is safe

6. What is not mapped

Nothing: every area the C ABI maps is mapped here, and the C ABI's refusals (weida-c.md) hold here too. The PyO3 weida-py this package replaces reached all six patterns, RADIO/DISH and the cursor surface; each is mapped here through the C ABI. The new package is not compatible with the old module's API (0045 decision 6).

7. Sources

crates/py/weida-py/src/weida/ (__init__.py, _native.py, _errors.py, _wait.py, _enums.py, _values.py, _blob.py, _stats.py, _crypto.py, _sync.py, _resolver.py, asyncio.py, _cdef.h), hatch_build.py, pyproject.toml, README.md, develop.sh, package.sh, smoke.py, tests/, .zeughaus-ci/publish-pypi.sh; weida-c.md; docs/c/; decisions/0045.