Docker Secrets Aware替代os.getenv和os.environ

get-secret-or-env-var的Python项目详细描述


#获取秘密或环境变量

[![圆圈](https://img.shields.io/circleci/build/gh/greenape/get_secret_or_env_var.svg?logo=CircleCI&style=flat-square)](https://circleci.com/gh/greenape/get_secret_or_env_var)[![codecov](https://img.shields.io/codecov/c/github/greenape/get_secret_or_env_var.svg?logo=Codecov&style=flat-square)](https://codecov.io/gh/greenape/get_secret_or_env_var)[![许可证:mit](https://img.shields.io/github/license/greenape/get_secret_or_env_var.svg?style=flat-square)](https://opensource.org/licenses/MIT)[![代码样式:黑色](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/python/black

用于python的os.getenv和os.environ的Docker机密感知包装器。

用品:

  • getenv
  • getenvb
  • 环境
  • 环境

它们的行为与stdlib的等价物完全相同,但会在/run/secrets中查找文件并返回优先于任何环境变量的内容。

设置environenvironb上的值将设置其操作系统中的值。等效值。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何设置用户的特定输入,即仅8位数字?   java嗅探访问的站点并保存到文件   java系统。出来同时使用字符串和int时的println行为   java在一个变量的右边可以做多少算术运算   java我可以将RequestToken发送到web浏览器,还是应该将其存储在数据库中?   java Android错误:应用程序意外停止,请重试   Java中的字符串如何提取   java向XmlObject的所有标记添加前缀   web服务无法从同一网络访问web服务   静态变量和实例变量之间的java性能差异   java无法从Thymeleaf获取transactionsynchronized会话   java为什么实现runnable总是交织结果?   宽度优先搜索Java最短距离   java Hibernate额外懒惰不工作   java为什么程序稍后会输出代码中的其他内容?   java如何在正则表达式中使用插入符号和美元?   java即时搜索/在JTable单元格中自动完成   这个java forloop是如何工作的?   java NullPointerException MainFragment facebook登录