Skip to main content

make it easy to use env

Project description

envx

介绍

环境信息的管理模块

  • 使用目录

    • Windows 系统
    使用目录:C:\env\
    
    • macOS 系统
    使用目录:/Users/env/
    
    • macOS Linux
    使用目录:/env/
    
  • 文件内容格式

HOST=192.168.0.1
PORT=6379
  • 读取结果格式
{
  "HOST": "192.168.0.1", 
  "PORT": "6379"
}

安装教程

  1. pip安装
pip install envx
  1. pip安装(使用淘宝镜像加速)
pip install envx -i https://mirrors.aliyun.com/pypi/simple

使用说明

  1. demo
import envx
redis_env = envx.read('redis.env')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

envx-0.0.2.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

envx-0.0.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page