brightsites_sdk =============== .. py:module:: brightsites_sdk .. autoapi-nested-parse:: Interface to Brightsites API. Submodules ---------- .. toctree:: :maxdepth: 1 /autoapi/brightsites_sdk/client/index /autoapi/brightsites_sdk/models/index Classes ------- .. autoapisummary:: brightsites_sdk.BrightsitesServices brightsites_sdk.OrdersList brightsites_sdk.OrderSummary brightsites_sdk.PaginatedResponse brightsites_sdk.PaginationMeta brightsites_sdk.Product brightsites_sdk.ProductCategory brightsites_sdk.ProductOption brightsites_sdk.ProductOptionsList brightsites_sdk.ProductsList brightsites_sdk.ProductSubOption brightsites_sdk.ProductSubOptionsList brightsites_sdk.ProductSummary brightsites_sdk.ProductVendor Package Contents ---------------- .. py:class:: BrightsitesServices(base_url: str, token: str, timeout: float = 10.0) A class wrapping Brightsites interaction. .. py:attribute:: client .. py:method:: _make_request(method: str, path: str, params: dict[str, Any] | None = None, json: dict[str, Any] | None = None) -> httpx.Response Make a request to Brightsites. .. py:method:: list_orders() -> brightsites_sdk.models.OrdersList List orders. .. py:method:: list_products(page: int = 1) -> brightsites_sdk.models.ProductsList List products. .. py:method:: get_product(product_id: int) -> brightsites_sdk.models.Product Get a product by ID. .. py:method:: list_product_options(product_id: int) -> brightsites_sdk.models.ProductOptionsList Get product options. .. py:method:: list_product_sub_options(product_id: int, option_id: int) -> brightsites_sdk.models.ProductSubOptionsList Get product sub-options. .. py:class:: OrdersList(/, **data: Any) Bases: :py:obj:`PaginatedResponse` A list of orders. .. py:attribute:: orders :type: list[OrderSummary] .. py:class:: OrderSummary(/, **data: Any) Bases: :py:obj:`_BaseModel` Short view of an order. .. py:attribute:: created_at :type: datetime.datetime :value: None .. py:attribute:: updated_at :type: datetime.datetime :value: None .. py:attribute:: order_id :type: int .. py:attribute:: shipping_method :type: str .. py:attribute:: tracking :type: str .. py:attribute:: status :type: str .. py:attribute:: customer :type: pydantic.EmailStr .. py:class:: PaginatedResponse(/, **data: Any) Bases: :py:obj:`_BaseModel` A paginated response. .. py:attribute:: meta :type: PaginationMeta .. py:class:: PaginationMeta(/, **data: Any) Bases: :py:obj:`_BaseModel` Pagination metadata. .. py:attribute:: total :type: int .. py:attribute:: offset :type: int .. py:attribute:: limit :type: int .. py:class:: Product(/, **data: Any) Bases: :py:obj:`_BaseModel` A product. .. py:attribute:: id :type: int .. py:attribute:: name :type: str .. py:attribute:: sku :type: str .. py:attribute:: sku_separator :type: str .. py:attribute:: internal_id :type: str | None .. py:attribute:: origin_address_id :type: int | None .. py:attribute:: new_product :type: bool .. py:attribute:: new_expires_at :type: datetime.datetime | None :value: None .. py:attribute:: base_price :type: str .. py:attribute:: retail_price :type: str | None .. py:attribute:: cost :type: str | None .. py:attribute:: setup_charge :type: str | None .. py:attribute:: minimum_order_quantity :type: int | None .. py:attribute:: maximum_order_quantity :type: int | None .. py:attribute:: weight :type: str | None .. py:attribute:: width :type: str | None .. py:attribute:: height :type: str | None .. py:attribute:: length :type: str | None .. py:attribute:: shipping_modifier :type: str | None .. py:attribute:: meta_title :type: str | None .. py:attribute:: meta_description :type: str | None .. py:attribute:: meta_keywords :type: str | None .. py:attribute:: custom_url :type: str | None .. py:attribute:: description :type: str | None .. py:attribute:: active :type: bool .. py:attribute:: featured :type: bool .. py:attribute:: tax_exempt :type: bool .. py:attribute:: shipping_exempt :type: bool .. py:attribute:: categories :type: list[ProductCategory] .. py:attribute:: vendors :type: list[ProductVendor] .. py:attribute:: options :type: list[ProductOption] .. py:attribute:: sub_options :type: list[ProductSubOption] .. py:attribute:: inventories :type: list[ProductInventory] .. py:attribute:: enable_quantity_discount :type: bool .. py:attribute:: related_products_type :type: str .. py:attribute:: enable_related_products :type: bool .. py:attribute:: enable_product_personalization :type: bool .. py:attribute:: enable_inventory :type: bool .. py:attribute:: enable_logo_locations :type: bool .. py:attribute:: enable_product_options :type: bool .. py:attribute:: primary_category_id :type: int | None .. py:attribute:: vendor_inventory_enabled :type: bool .. py:attribute:: inventory_vendor_id :type: int | None .. py:attribute:: tax_code :type: str | None .. py:attribute:: note :type: str | None .. py:attribute:: created_at :type: datetime.datetime | None :value: None .. py:attribute:: updated_at :type: datetime.datetime | None :value: None .. py:class:: ProductCategory(/, **data: Any) Bases: :py:obj:`_BaseModel` Product category. .. py:attribute:: id :type: int .. py:attribute:: name :type: str .. py:class:: ProductOption(/, **data: Any) Bases: :py:obj:`_BaseModel` A option for a product. .. py:attribute:: id :type: int .. py:attribute:: name :type: str .. py:attribute:: friendly_name :type: str .. py:attribute:: option_type :type: str .. py:attribute:: price_modifier_type :type: str .. py:attribute:: show_in_inventory :type: bool .. py:attribute:: show_as_thumbs :type: bool .. py:attribute:: include_in_images :type: bool .. py:attribute:: required :type: bool .. py:attribute:: multiple_quantity :type: bool .. py:attribute:: position :type: int .. py:class:: ProductOptionsList(/, **data: Any) Bases: :py:obj:`_BaseModel` A list of options for a product. .. py:attribute:: enabled :type: bool .. py:attribute:: options :type: list[ProductOption] .. py:class:: ProductsList(/, **data: Any) Bases: :py:obj:`PaginatedResponse` A list of products. .. py:attribute:: products :type: list[ProductSummary] .. py:class:: ProductSubOption(/, **data: Any) Bases: :py:obj:`_BaseModel` Sub options for a product. .. py:attribute:: id :type: int .. py:attribute:: name :type: str .. py:attribute:: sub_sku :type: str | None .. py:attribute:: image_src :type: str | None .. py:attribute:: price_modifier :type: str .. py:attribute:: position :type: int .. py:attribute:: product_option_id :type: int .. py:class:: ProductSubOptionsList(/, **data: Any) Bases: :py:obj:`_BaseModel` A list of sub options. .. py:attribute:: sub_options :type: list[ProductSubOption] .. py:class:: ProductSummary(/, **data: Any) Bases: :py:obj:`_BaseModel` Short view of a product. .. py:attribute:: created_at :type: datetime.datetime :value: None .. py:attribute:: updated_at :type: datetime.datetime :value: None .. py:attribute:: id :type: int .. py:attribute:: name :type: str .. py:attribute:: sku :type: str .. py:attribute:: internal_id :type: str | None .. py:attribute:: origin_address_id :type: int | None .. py:attribute:: new_product :type: bool .. py:attribute:: new_expires_at :type: datetime.datetime | None :value: None .. py:attribute:: categories :type: list[ProductCategory] .. py:attribute:: vendors :type: list[ProductVendor] .. py:attribute:: active :type: bool .. py:class:: ProductVendor(/, **data: Any) Bases: :py:obj:`_BaseModel` Product vendor. .. py:attribute:: id :type: int .. py:attribute:: name :type: str