typing_environs add type hints support for environs
Project description
typing_environs
- name = "typing_environs"
- description = "typing_environs add type hints support for environs"
- authors = ["Euraxluo euraxluo@qq.com"]
- license = "The MIT LICENSE"
- repository = "https://github.com/Euraxluo/typing_environs" _ version = "0.3.*"
install
pip install typing-environs
UseAge
from typing_environs import EnvModule, Types
class FLS(EnvModule):
open: Types.bool
level: Types.upper
dir: Types.dir
rotation: Types.str
retention: Types.str
compression: Types.str
encoding: Types.str
enqueue: Types.bool
backtrace: Types.bool
diagnose: Types.bool
class Log(EnvModule):
format: Types.str
dir: Types.dir
level: Types.upper
fls: FLS
class Config(EnvModule): # 默认配置
env: Types.str
application: Types.str
version: Types.str
data_separator: Types.str
log: Log
def __init__(self, *args, paths=["default.env"], **kwargs):
super(Config, self).__init__(*args, paths=paths, **kwargs)
todo list
- strict mode
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
typing_environs-0.3.0.tar.gz
(5.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file typing_environs-0.3.0.tar.gz.
File metadata
- Download URL: typing_environs-0.3.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0b1 CPython/3.9.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bae780c6372ee1855d56a74698e2deca217295e570dc40fbee52edeadab236ff
|
|
| MD5 |
f047013fc2f4c0574945f9f62eee2c29
|
|
| BLAKE2b-256 |
5ddea027aea3a65f701c4cfb5d81048805374e474fb147b92e90949a946b23ef
|
File details
Details for the file typing_environs-0.3.0-py3-none-any.whl.
File metadata
- Download URL: typing_environs-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0b1 CPython/3.9.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e4201e5ad7619ce045c1451b61d5dbbdc7d2f91aa29e0c22e27ecbfb0d79b36
|
|
| MD5 |
1ce0c1a925038e36ea2f6c98b3420d9d
|
|
| BLAKE2b-256 |
9bd69d36ddb370acc3dba67ff416b695f78ad9eebf3a9695deebafb8cbcd5156
|