iam-python-sdk
iam-python-sdk copied to clipboard
python sdk for bk-iam
     正确的使用应该是  ```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
- 目前部分接口直接提交一个json - 需要在本地先进行validate
# Reviewed, transaction id: 33118