Skip to main content

typing_environs

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

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typing_environs-0.3.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for typing_environs-0.3.0.tar.gz
Algorithm Hash digest
SHA256 bae780c6372ee1855d56a74698e2deca217295e570dc40fbee52edeadab236ff
MD5 f047013fc2f4c0574945f9f62eee2c29
BLAKE2b-256 5ddea027aea3a65f701c4cfb5d81048805374e474fb147b92e90949a946b23ef

See more details on using hashes here.

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

Hashes for typing_environs-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e4201e5ad7619ce045c1451b61d5dbbdc7d2f91aa29e0c22e27ecbfb0d79b36
MD5 1ce0c1a925038e36ea2f6c98b3420d9d
BLAKE2b-256 9bd69d36ddb370acc3dba67ff416b695f78ad9eebf3a9695deebafb8cbcd5156

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page