Code Monkey home page Code Monkey logo

iam-python-sdk's Introduction

license Release Version PRs Welcome BK Pipelines Status

(English Documents Available)

Overview

iam-python-sdk 是蓝鲸权限中心(BK-IAM)提供的用于快速接入权限体系的python SDK

Features

  • [Basic] 兼容Python2/Python3
  • [Basic] 完备的单元测试
  • [Basic] 支持debug调试完整流程
  • [IAM] 支持条件表达式求值: 策略查询/鉴权
  • [IAM] 支持条件表达式解析: 转换成Django QuerySet及SQL语句
  • [IAM] 获取无权限申请跳转URL
  • [IAM] 支持批量资源鉴权 / 支持批量资源批量action是否有权限判断
  • [Contrib] Django IAM Migration, 整合iam模型migration到Django Migration
  • [Contrib] Resource API Framework, 协助构建需要提供给IAM调用的Resource API
  • [Contrib] 支持tastypie

Getting started

Installation

$ pip install bk-iam

Usage

Roadmap

IAM Repos

Support

BlueKing Community

  • BK-CI:蓝鲸持续集成平台是一个开源的持续集成和持续交付系统,可以轻松将你的研发流程呈现到你面前。
  • BK-BCS:蓝鲸容器管理平台是以容器技术为基础,为微服务业务提供编排管理的基础服务平台。
  • BK-PaaS:蓝鲸PaaS平台是一个开放式的开发平台,让开发者可以方便快捷地创建、开发、部署和管理SaaS应用。
  • BK-SOPS:标准运维(SOPS)是通过可视化的图形界面进行任务流程编排和执行的系统,是蓝鲸体系中一款轻量级的调度编排类SaaS产品。
  • BK-CMDB:蓝鲸配置平台是一个面向资产及应用的企业级配置管理平台。

Contributing

如果你有好的意见或建议,欢迎给我们提 Issues 或 Pull Requests,为蓝鲸开源社区贡献力量。

License

基于 MIT 协议, 详细请参考LICENSE

iam-python-sdk's People

Contributors

1142163389 avatar alex-smile avatar benero avatar breezelxp avatar dependabot[bot] avatar homholueng avatar ifooth avatar isecloud avatar normal-wls avatar orenzhang avatar wklken avatar zhu327 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

iam-python-sdk's Issues

django converter any

    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
        # => will genreate `pk not null`` in sql, will cause performance issue
        # return ~Q(pk=None)

        # => will generate where condition in sql
        return ~Q(pk__in=[])

replace

直接下载源码iam migration的问题

用户sdk 我直接在github上下的

下载后 第一次执行了migrations 后,改了一下initial.json,再执行migrations就报这种错用户sdk
5VAA25TC`%Y 50CXEYZ97CU

$}}( 2I0RN13R8F@ 7VLPLY

JH{J VNUHD7UNWOTBZ~8X1N

然后把iam_migration/constants.py的APP_NAME改了

AMS%~LR40W0Y1_PF`N0XB0U

已确认, 下载源码到目录下会出现这个问题

使用pip install 是 OK 的

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.