iam-python-sdk icon indicating copy to clipboard operation
iam-python-sdk copied to clipboard

python sdk for bk-iam

Results 7 iam-python-sdk issues
Sort by recently updated
recently updated
newest added

![企业微信截图_17122385408602](https://github.com/TencentBlueKing/iam-python-sdk/assets/101728232/ad399070-9418-4ba3-803d-37de92b6ba6c) ![企业微信截图_17122393361176](https://github.com/TencentBlueKing/iam-python-sdk/assets/101728232/e9eb9f0e-b0e1-4640-a66e-22641c49c3c8) ![企业微信截图_17122392671275](https://github.com/TencentBlueKing/iam-python-sdk/assets/101728232/5f68565d-8d68-4dde-b125-fdd105239aaa) ![企业微信截图_17122392845122](https://github.com/TencentBlueKing/iam-python-sdk/assets/101728232/a93909f9-f86f-4a82-b129-e81a8fd7e9ec) ![企业微信截图_17122386088626](https://github.com/TencentBlueKing/iam-python-sdk/assets/101728232/f0ed3a72-caf7-428d-9d2e-1a5306330718) 正确的使用应该是 ![企业微信截图_17122398659212](https://github.com/TencentBlueKing/iam-python-sdk/assets/101728232/4e448636-fc98-44fb-91ca-3cbfd1377e58) ```python loader.graph.leaf_nodes(apps .get_app_config(conf.MIGRATION_APP_NAME.split(".")[-1]).label) ```

Making Django load custom app to make advantage of AppConfig.label attribute. Signed-off-by: Chenyang Yan

```python def _any(self, left, right): # https://stackoverflow.com/questions/33517468/always-true-q-object # ~Q(pk__in=[]) => not in? should check the sql/performance # NOTE: We think the pk is not null in mysql schema here #...

https://github.com/TencentBlueKing/iam-python-sdk/blob/master/iam/contrib/iam_migration/utils/do_migrate.py#L47 这行改成 with open(filename, encoding="utf-8") as data_file:

https://github.com/TencentBlueKing/iam-python-sdk/pull/50#issuecomment-931381418

enhancement

- 目前部分接口直接提交一个json - 需要在本地先进行validate

# Reviewed, transaction id: 33118