跳转到正文

recipe_book API ​

完整接口目录 · 合成与挖掘用法 · 工具包下载

模块说明 ​

text
Local recipe interpretation of bounded, connection-pinned typed evidence.

A book is an observation, not a live reservation or a crafting permission.
No lookup or material calculation in this module calls a Go business operation.

RecipeBook ​

python
class RecipeBook

SDK 说明:

text
A detached book bound to the evidence sampled by ``Recipes.load_book``.

``from_packets`` accepts controlled typed fixtures with explicit revisions;
it does not attest to a current Host connection. Local results retain that
same scope even if the server subsequently changes.

RecipeBook.connection_id ​

python
@property
def connection_id(self)

RecipeBook.revision ​

python
@property
def revision(self)

RecipeBook.registry_hash ​

python
@property
def registry_hash(self)

RecipeBook.from_packets ​

python
@classmethod
def from_packets(cls, packets, *, connection_id, revision, registry_hash, registry)

RecipeBook.catalog ​

python
def catalog(self, *, offset=0, limit=20)

SDK 说明:

text
Return a detached local page; this performs no network IO.

RecipeBook.by_output ​

python
def by_output(self, output, *, offset=0, limit=20)

SDK 说明:

text
Find an output locally; lookup_complete=False cannot prove absence.

RecipeBook.material_gaps ​

python
def material_gaps(self, reference, inventory, *, crafts=1)

SDK 说明:

text
Allocate one native window-0 observation, exact metadata before wildcard.

load_recipe_book ​

python
async def load_recipe_book(peer, session, *, page_limit=32, max_bytes=196608)

SDK 说明:

text
Read raw pages once; stale, incomplete or oversized evidence is rejected.

Neomega · 使用、开发与参考文档