Module crowdin_api.api_resources.bundles.resource

Classes

class BundlesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)

Resource for Bundles.

Link to documentation: https://support.crowdin.com/developer/api/v2/#tag/Bundles

Link to documentation for enterprise: https://support.crowdin.com/developer/enterprise/api/v2/#tag/Bundles

Ancestors

Methods

def add_bundle(self, name: str, format: Optional[str], sourcePatterns: Iterable[str], exportPattern: Optional[str], projectId: Optional[int] = None, ignorePatterns: Optional[Iterable[str]] = None, isMultilingual: Optional[bool] = None, includeProjectSourceLanguage: Optional[bool] = None, labelIds: Optional[Iterable[int]] = None, excludeLabelIds: Optional[Iterable[int]] = None, sourceLanguageExportPattern: Optional[str] = None, includeInContextPseudoLanguage: Optional[bool] = None, labelMatchRule: Optional[BundleLabelMatchRule] = None, excludeLabelMatchRule: Optional[BundleLabelMatchRule] = None, languageIds: Optional[Iterable[str]] = None)

Add Bundles.

format and exportPattern may be None: if format is not provided, files are exported in their original format (format is required for string-based projects), and exportPattern is required only if format is specified.

Link to documentation: https://support.crowdin.com/developer/api/v2/#operation/api.projects.bundles.post

Link to documentation for enterprise: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.projects.bundles.post

def check_bundle_export_status(self, bundleId: int, exportId: str, projectId: Optional[int] = None)
def delete_bundle(self, bundleId: int, projectId: Optional[int] = None)
def download_bundle(self, bundleId: int, exportId: str, projectId: Optional[int] = None)
def edit_bundle(self, bundleId: int, data: Iterable[BundlePatchRequest], projectId: Optional[int] = None)
def export_bundle(self, bundleId: int, projectId: Optional[int] = None, targetLanguageIds: Optional[Iterable[str]] = None, skipUntranslatedStrings: Optional[bool] = None, skipUntranslatedFiles: Optional[bool] = None, exportApprovedOnly: Optional[bool] = None, exportWithMinApprovalsCount: Optional[int] = None, exportStringsThatPassedWorkflow: Optional[bool] = None)

Export bundle.

skipUntranslatedFiles is for file-based projects only, exportApprovedOnly is for Crowdin only, exportWithMinApprovalsCount and exportStringsThatPassedWorkflow are for Crowdin Enterprise only.

Link to documentation: https://support.crowdin.com/developer/api/v2/#operation/api.projects.bundles.exports.post

Link to documentation for enterprise: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.projects.bundles.exports.post

def get_bundle(self, bundleId: int, projectId: Optional[int] = None)
def get_bundle_list_files(self, bundleId: int, projectId: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
def get_bundles_exports_path(self, projectId: int, bundleId: int, exportId: Optional[str] = None)
def get_bundles_path(self, projectId: int, bundleId: Optional[int] = None)
def list_bundle_branches(self, bundleId: int, projectId: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)
def list_bundles(self, projectId: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)