MCPcopy Create free account

hub / github.com/anomalyco/opencode-sdk-python / functions

Functions901 in github.com/anomalyco/opencode-sdk-python

↓ 3 callersMethodnext_page_info
(self)
src/opencode_ai/_base_client.py:186
↓ 3 callersFunctionparse_datetime
(value: Union[datetime, StrBytesIntFloat])
src/opencode_ai/_compat.py:28
↓ 3 callersFunctionquote
Add single quotation marks around the given string. Does *not* do any escaping.
src/opencode_ai/_utils/_utils.py:210
↓ 3 callersMethodread
Read and return the binary response content.
src/opencode_ai/_response.py:424
↓ 3 callersFunctionstrip_annotated_type
(typ: type)
src/opencode_ai/_utils/_typing.py:71
↓ 2 callersMethod__aenter__
(self)
src/opencode_ai/_streaming.py:128
↓ 2 callersMethod__class__
(self)
src/opencode_ai/_utils/_proxy.py:48
↓ 2 callersMethod__enter__
(self)
src/opencode_ai/_streaming.py:64
↓ 2 callersMethod__init__
( self, *, raw: httpx.Response, cast_to: type[R], client: BaseClient[A
src/opencode_ai/_response.py:61
↓ 2 callersFunction_async_transform_file
(file: FileTypes)
src/opencode_ai/_files.py:105
↓ 2 callersFunction_async_transform_recursive
Transform the given data against the expected type. Args: annotation: The direct type annotation given to the particular piece of data.
src/opencode_ai/_utils/_transform.py:314
↓ 2 callersFunction_basic_config
()
src/opencode_ai/_utils/_logs.py:8
↓ 2 callersFunction_collect_error
(match: Match[str])
scripts/utils/ruffen-docs.py:39
↓ 2 callersMethod_enforce_trailing_slash
(self, url: URL)
src/opencode_ai/_base_client.py:395
↓ 2 callersMethod_idempotency_key
(self)
src/opencode_ai/_base_client.py:783
↓ 2 callersMethod_info_to_options
(self, info: PageInfo)
src/opencode_ai/_base_client.py:195
↓ 2 callersMethod_make_sse_decoder
(self)
src/opencode_ai/_base_client.py:470
↓ 2 callersMethod_make_status_error_from_response
( self, response: httpx.Response, )
src/opencode_ai/_base_client.py:400
↓ 2 callersMethod_maybe_override_cast_to
(self, cast_to: type[ResponseT], options: FinalRequestOptions)
src/opencode_ai/_base_client.py:588
↓ 2 callersFunction_maybe_transform_key
Transform the given `data` based on the annotations provided in `type_`. Note: this function only looks at `Annotated` types that contain `Proper
src/opencode_ai/_utils/_transform.py:129
↓ 2 callersFunction_no_transform_needed
(annotation: type)
src/opencode_ai/_utils/_transform.py:148
↓ 2 callersMethod_parse
(self, *, to: type[_T] | None = None)
src/opencode_ai/_response.py:128
↓ 2 callersMethod_primitive_value_to_str
(self, value: PrimitiveData)
src/opencode_ai/_qs.py:121
↓ 2 callersMethod_process_response_data
( self, *, data: object, cast_to: type[ResponseT], response: httpx.Res
src/opencode_ai/_base_client.py:608
↓ 2 callersMethod_set_private_attributes
( self, client: SyncAPIClient, model: Type[_T], options: FinalRequestOptions,
src/opencode_ai/_base_client.py:229
↓ 2 callersMethod_should_retry
(self, response: httpx.Response)
src/opencode_ai/_base_client.py:748
↓ 2 callersMethod_should_stream_response_body
(self, request: httpx.Request)
src/opencode_ai/_base_client.py:605
↓ 2 callersFunction_transform_file
(file: FileTypes)
src/opencode_ai/_files.py:63
↓ 2 callersFunctionassert_is_file_content
(obj: object, *, key: str | None = None)
src/opencode_ai/_files.py:33
↓ 2 callersMethodclose
Close the response and release the connection. Automatically called if the response body is read to completion.
src/opencode_ai/_response.py:344
↓ 2 callersFunctioncoerce_boolean
(val: str)
src/opencode_ai/_utils/_utils.py:325
↓ 2 callersFunctionextract_stream_chunk_type
Given a type like `Stream[T]`, returns the generic type variable `T`. This also handles the case where a concrete subclass is given, e.g. ```
src/opencode_ai/_streaming.py:311
↓ 2 callersFunctionfield_get_default
(field: FieldInfo)
src/opencode_ai/_compat.py:92
↓ 2 callersFunctionfinish_fragment
()
scripts/utils/ruffen-docs.py:56
↓ 2 callersFunctionflatten
(t: Iterable[Iterable[_T]])
src/opencode_ai/_utils/_utils.py:34
↓ 2 callersFunctionformat_code_block
(code: str)
scripts/utils/ruffen-docs.py:107
↓ 2 callersFunctionget_model_fields
(model: type[pydantic.BaseModel])
src/opencode_ai/_compat.py:115
↓ 2 callersMethodget_next_page
(self: SyncPageT)
src/opencode_ai/_base_client.py:264
↓ 2 callersFunctionget_type_hints
( obj: Any, globalns: dict[str, Any] | None = None, localns: Mapping[str, Any] | None = None,
src/opencode_ai/_utils/_transform.py:441
↓ 2 callersMethodhas_next_page
(self)
src/opencode_ai/_base_client.py:180
↓ 2 callersFunctionis_base64_file_input
(obj: object)
src/opencode_ai/_files.py:23
↓ 2 callersFunctionis_basemodel_type
(type_: type)
src/opencode_ai/_models.py:406
↓ 2 callersFunctionis_iterable_type
If the given type is `typing.Iterable[T]`
src/opencode_ai/_utils/_typing.py:29
↓ 2 callersFunctionis_literal_type
(type_: type[Any])
src/opencode_ai/_compat.py:40
↓ 2 callersFunctionis_required_type
(typ: type)
src/opencode_ai/_utils/_typing.py:39
↓ 2 callersFunctionis_sequence_t
(obj: _SequenceT | object)
src/opencode_ai/_utils/_utils.py:156
↓ 2 callersFunctionis_tuple_t
(obj: _TupleT | object)
src/opencode_ai/_utils/_utils.py:148
↓ 2 callersFunctionis_typeddict
(type_: type[Any])
src/opencode_ai/_compat.py:43
↓ 2 callersFunctionis_union
(tp: type[Any] | None)
src/opencode_ai/_compat.py:34
↓ 2 callersMethoditer_bytes
Given an iterator that yields raw binary data, iterate over it & yield every event encountered
src/opencode_ai/_streaming.py:201
↓ 2 callersMethodjson
(self)
src/opencode_ai/_streaming.py:181
↓ 2 callersFunctionmodel_json
(model: pydantic.BaseModel, *, indent: int | None = None)
src/opencode_ai/_compat.py:127
↓ 2 callersMethodread
Read a file Args: extra_headers: Send extra headers extra_query: Add additional query parameters to the request
src/opencode_ai/resources/file.py:45
↓ 2 callersMethodstringify_items
( self, params: Params, *, array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN,
src/opencode_ai/_qs.py:55
↓ 2 callersFunctionupdate_env
(**new_env: str | Omit)
tests/utils.py:146
↓ 2 callersFunctionvalidate_type
Strict validation that the given value matches the expected type
src/opencode_ai/_models.py:691
↓ 1 callersMethod__anext__
(self)
src/opencode_ai/_streaming.py:104
↓ 1 callersMethod__as_proxied__
Helper method that returns the current proxy, typed as the loaded object
src/opencode_ai/_utils/_proxy.py:60
↓ 1 callersMethod__init__
Construct a new synchronous Opencode client instance.
src/opencode_ai/_client.py:58
↓ 1 callersMethod__load__
(self)
src/opencode_ai/_utils/_proxy.py:65
↓ 1 callersMethod__stream__
(self)
src/opencode_ai/_streaming.py:51
↓ 1 callersMethod__stream__
(self)
src/opencode_ai/_streaming.py:115
↓ 1 callersMethod_aiter_chunks
Given an iterator that yields raw binary data, iterate over it and yield individual SSE chunks
src/opencode_ai/_streaming.py:233
↓ 1 callersFunction_assert_list_type
(type_: type[object], value: object)
tests/utils.py:137
↓ 1 callersFunction_async_format_data
(data: object, format_: PropertyFormat, format_template: str | None)
src/opencode_ai/_utils/_transform.py:392
↓ 1 callersFunction_async_transform_typeddict
( data: Mapping[str, object], expected_type: type, )
src/opencode_ai/_utils/_transform.py:419
↓ 1 callersFunction_asyncio_to_thread
Asynchronously run function *func* in a separate thread. Any *args and **kwargs supplied for this function are directly passed to *fu
src/opencode_ai/_utils/_sync.py:23
↓ 1 callersFunction_build_discriminated_union_meta
(*, union: type, meta_annotations: tuple[Any, ...])
src/opencode_ai/_models.py:611
↓ 1 callersMethod_build_headers
(self, options: FinalRequestOptions, *, retries_taken: int = 0)
src/opencode_ai/_base_client.py:431
↓ 1 callersFunction_construct_field
(value: object, field: FieldInfo, key: str)
src/opencode_ai/_models.py:362
↓ 1 callersFunction_create_pydantic_model
(type_: _T)
src/opencode_ai/_models.py:749
↓ 1 callersFunction_extract_field_schema_pv2
(model: type[BaseModel], field_name: str)
src/opencode_ai/_models.py:670
↓ 1 callersFunction_extract_items
( obj: object, path: Sequence[str], *, index: int, flattened_key: str | None, )
src/opencode_ai/_utils/_utils.py:57
↓ 1 callersFunction_format_data
(data: object, format_: PropertyFormat, format_template: str | None)
src/opencode_ai/_utils/_transform.py:230
↓ 1 callersFunction_get_extra_fields_type
(cls: type[pydantic.BaseModel])
src/opencode_ai/_models.py:377
↓ 1 callersMethod_get_page
(self)
src/opencode_ai/_base_client.py:291
↓ 1 callersMethod_iter_chunks
Given an iterator that yields raw binary data, iterate over it and yield individual SSE chunks
src/opencode_ai/_streaming.py:211
↓ 1 callersMethod_iter_events
(self)
src/opencode_ai/_streaming.py:111
↓ 1 callersMethod_make_status_error
( self, err_msg: str, *, body: object, response: httpx.Response, )
src/opencode_ai/_base_client.py:422
↓ 1 callersMethod_params_from_url
(self, url: URL)
src/opencode_ai/_base_client.py:191
↓ 1 callersMethod_parse_retry_after_header
Returns a float of the number of seconds (not milliseconds) to wait after retrying, or None if unspecified. About the Retry-After header: htt
src/opencode_ai/_base_client.py:690
↓ 1 callersMethod_prepare_options
Hook for mutating the given options
src/opencode_ai/_base_client.py:892
↓ 1 callersMethod_prepare_options
Hook for mutating the given options
src/opencode_ai/_base_client.py:1419
↓ 1 callersMethod_prepare_request
This method is used as a callback for mutating the `Request` object after it has been constructed. This is useful for cases where you
src/opencode_ai/_base_client.py:899
↓ 1 callersMethod_prepare_request
This method is used as a callback for mutating the `Request` object after it has been constructed. This is useful for cases where you
src/opencode_ai/_base_client.py:1426
↓ 1 callersMethod_prepare_url
Merge a URL argument together with any 'base_url' on the client, to create the URL used for the outgoing request.
src/opencode_ai/_base_client.py:457
↓ 1 callersMethod_process_response
( self, *, cast_to: Type[ResponseT], options: FinalRequestOptions, res
src/opencode_ai/_base_client.py:1072
↓ 1 callersMethod_process_response
( self, *, cast_to: Type[ResponseT], options: FinalRequestOptions, res
src/opencode_ai/_base_client.py:1604
↓ 1 callersFunction_pycon_match
(match: Match[str])
scripts/utils/ruffen-docs.py:52
↓ 1 callersMethod_request_api_list
( self, model: Type[_T], page: Type[AsyncPageT], options: FinalRequestOptions,
src/opencode_ai/_base_client.py:1658
↓ 1 callersMethod_serialize_multipartform
(self, data: Mapping[object, object])
src/opencode_ai/_base_client.py:558
↓ 1 callersMethod_stringify_item
( self, key: str, value: Data, opts: Options, )
src/opencode_ai/_qs.py:69
↓ 1 callersMethod_strip_raw_response_header
(self)
src/opencode_ai/_models.py:797
↓ 1 callersFunction_transform_typeddict
( data: Mapping[str, object], expected_type: type, )
src/opencode_ai/_utils/_transform.py:257
↓ 1 callersMethod_validate_headers
Validate the given default headers and custom headers. Does nothing by default.
src/opencode_ai/_base_client.py:661
↓ 1 callersFunction_validate_non_model_type
(*, type_: type[_T], value: object)
src/opencode_ai/_models.py:727
↓ 1 callersFunctionassert_matches_model
(model: type[BaseModelT], value: BaseModelT, *, path: list[str])
tests/utils.py:27
↓ 1 callersFunctionasync_read_file_content
(file: FileContent)
src/opencode_ai/_files.py:119
↓ 1 callersFunctionasync_transform
Transform dictionaries based off of type information from the given type, for example: ```py class Params(TypedDict, total=False): ca
src/opencode_ai/_utils/_transform.py:291
↓ 1 callersFunctionasyncify
Take a blocking function and create an async one that receives the same positional and keyword arguments. For python version 3.9 and above, i
src/opencode_ai/_utils/_sync.py:53
← previousnext →101–200 of 901, ranked by callers