the1conf 1.2.3__py3-none-any.whl → 1.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: the1conf
3
- Version: 1.2.3
3
+ Version: 1.3.0
4
4
  Summary: All in one configuration management tool for your python applications.
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
7
7
  Keywords: configuration,settings,cli,click,pydantic
8
8
  Author: Eric CHASTAN
9
9
  Author-email: eric@chastan.consulting
10
- Requires-Python: >=3.12,<3.13
10
+ Requires-Python: >=3.12
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Intended Audience :: Developers
13
13
  Classifier: Operating System :: OS Independent
@@ -268,7 +268,11 @@ All these path are unified into OS independent variables:
268
268
  - `user_home`: The path to the current user's home directory.
269
269
 
270
270
  3. **Execution Stage Variable**: The `exec_stage` variable is particularly useful for differentiating configurations based on the execution stage (ie. environment) like development, production, test, etc.
271
- This variable is predefined but users needs to set its value either through the command line of in an environment variable named.
271
+ This variable is predefined but users needs to set its value either through the command line or in an environment variable. You have different options to pass it value:
272
+ - **Command Line Argument**: Using the Click integration, you can pass `--stage`,`--env` or `--exec-stage` argument to set the execution stage.
273
+ - **Environment Variable**: You can set the `EXEC_STAGE`, `STAGE` or `ENV` environment variable to define the execution stage.
274
+ - **Pass a value to resolve_vars()** : You can also directly pass the execution stage value in the `values` dictionary when calling `resolve_vars()`.
275
+ - **Redefine the variable**: You can redefine the `exec_stage` variable in your configuration class if you want to set a different default , different keys or change its behavior.
272
276
 
273
277
  ## Key Lookup with Fallback
274
278
 
@@ -10,7 +10,7 @@ the1conf/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  the1conf/solver.py,sha256=9SoYCUwAZ67nhMNULWA0G-5mlR2roh3F5cjai4SOnHU,14686
11
11
  the1conf/utils.py,sha256=fdnsYVM2dzqX5wKh_8vJSUxT293Yametsm64yNduC3I,3385
12
12
  the1conf/var_substitution.py,sha256=mBo7ooZw6aq6g0E0OtxOCKUhNIFM5vQCC4HzecOzFck,1960
13
- the1conf-1.2.3.dist-info/METADATA,sha256=VtDXFMxuYOhMC7znUdCJmp8D6Mls5iRjmzdKBm8dIyw,34999
14
- the1conf-1.2.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
15
- the1conf-1.2.3.dist-info/licenses/LICENSE,sha256=uQf4G5VB4kzrWVzT_gA_vqn9bUQzaRlL4RkeFI17BeI,1069
16
- the1conf-1.2.3.dist-info/RECORD,,
13
+ the1conf-1.3.0.dist-info/METADATA,sha256=F6EwJU5IpMvO7vbLShsjEPaamUb1cVTmQ3NlUPztGQA,35633
14
+ the1conf-1.3.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
15
+ the1conf-1.3.0.dist-info/licenses/LICENSE,sha256=uQf4G5VB4kzrWVzT_gA_vqn9bUQzaRlL4RkeFI17BeI,1069
16
+ the1conf-1.3.0.dist-info/RECORD,,