Reference#

sendlive#

Main sendlive package.

class sendlive.SendLive(*, credentials, provider_options=None)#

SendLive is a library for creating live streams with different cloud vendors, using one interface.

Parameters:
  • credentials (BaseCredential) –

  • provider_options (ProviderOptions | None) –

property adapter: BaseAdapter#

Return the adapter for the configured service provider.

create_stream(name)#

Create a stream using the configured service provider.

Parameters:

name (str) –

Return type:

BaseStream

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {'adapter': ComputedFieldInfo(wrapped_property=<property object>, return_type=<class 'sendlive.adapter.BaseAdapter'>, alias=None, alias_priority=None, title=None, field_title_generator=None, description='Return the adapter for the configured service provider.', deprecated=None, examples=None, json_schema_extra=None, repr=True)}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'credentials': FieldInfo(annotation=BaseCredential, required=True), 'provider_options': FieldInfo(annotation=Union[ProviderOptions, NoneType], required=False, default=None)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

property service_provider: ServiceProvider#

Return the service provider, based on the provided credentials.

AWS Provider#

GCP Provider#