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.
formatandexportPatternmay beNone: ifformatis not provided, files are exported in their original format (formatis required for string-based projects), andexportPatternis required only ifformatis 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)-
Check Bundle Export Status.
Link to documentation: https://support.crowdin.com/developer/api/v2/#operation/api.projects.bundles.exports.get
Link to documentation for enterprise: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.projects.bundles.exports.get
def delete_bundle(self, bundleId: int, projectId: Optional[int] = None)-
Delete Bundle.
Link to documentation: https://support.crowdin.com/developer/api/v2/#operation/api.projects.bundles.delete
Link to documentation for enterprise: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.projects.bundles.delete
def download_bundle(self, bundleId: int, exportId: str, projectId: Optional[int] = None)-
Download bundle.
Link to documentation: https://support.crowdin.com/developer/api/v2/#operation/api.projects.bundles.exports.download.get
Link to documentation for enterprise: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.projects.bundles.exports.download.get
def edit_bundle(self, bundleId: int, data: Iterable[BundlePatchRequest], projectId: Optional[int] = None)-
Edit Bundle.
Link to documentation: https://support.crowdin.com/developer/api/v2/#operation/api.projects.bundles.patch
Link to documentation for enterprise: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.projects.bundles.patch
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.
skipUntranslatedFilesis for file-based projects only,exportApprovedOnlyis for Crowdin only,exportWithMinApprovalsCountandexportStringsThatPassedWorkfloware 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)-
Get Bundle.
Link to documentation: https://support.crowdin.com/developer/api/v2/#operation/api.projects.bundles.get
Link to documentation for enterprise: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.projects.bundles.get
def get_bundle_list_files(self, bundleId: int, projectId: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)-
Get Bundle List Files.
Link to documentation: https://support.crowdin.com/developer/api/v2/#operation/api.projects.bundles.files.getMany
Link to documentation for enterprise: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.projects.bundles.files.getMany
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)-
Get Bundle List Branches.
String-based projects only.
Link to documentation: https://support.crowdin.com/developer/api/v2/string-based/#operation/api.projects.bundles.branches.getMany
Link to documentation for enterprise: https://support.crowdin.com/developer/enterprise/api/v2/string-based/#operation/api.projects.bundles.branches.getMany
def list_bundles(self, projectId: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)-
List Bundles.
Link to documentation: https://support.crowdin.com/developer/api/v2/#operation/api.projects.bundles.getMany
Link to documentation for enterprise: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.projects.bundles.getMany