MCPcopy Create free account
hub / github.com/Bytez-com/docs / __init__

Method __init__

sdk/python/bytez/main.py:11–20  ·  view source on GitHub ↗

Initialize the Bytez API client with an API key. Args: api_key (str): Your Bytez API key. dev (bool): Whether to use the development environment.

(self, api_key: str, dev: bool = False)

Source from the content-addressed store, hash-verified

9 """
10
11 def __init__(self, api_key: str, dev: bool = False):
12 """
13 Initialize the Bytez API client with an API key.
14
15 Args:
16 api_key (str): Your Bytez API key.
17 dev (bool): Whether to use the development environment.
18 """
19 self._client = Client(api_key, dev)
20 self.list = self._List(self) # Initialize the list object
21
22 class _List:
23 """A helper class to expose list functions under `bytez.list`."""

Callers

nothing calls this directly

Calls 1

ClientClass · 0.70

Tested by

no test coverage detected