optify 0.6.0__tar.gz → 0.7.0__tar.gz
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.
- {optify-0.6.0 → optify-0.7.0}/PKG-INFO +13 -4
- {optify-0.6.0/python/optify → optify-0.7.0}/README.md +12 -3
- {optify-0.6.0 → optify-0.7.0}/pyproject.toml +2 -2
- optify-0.7.0/python/optify/Cargo.lock +2250 -0
- {optify-0.6.0 → optify-0.7.0}/python/optify/Cargo.toml +2 -2
- {optify-0.6.0 → optify-0.7.0/python/optify}/README.md +12 -3
- optify-0.7.0/python/optify/src/lib.rs +30 -0
- optify-0.7.0/python/optify/src/preferences.rs +18 -0
- optify-0.6.0/python/optify/src/lib.rs → optify-0.7.0/python/optify/src/provider.rs +4 -30
- optify-0.7.0/python/optify/src/watcher.rs +97 -0
- optify-0.7.0/python/optify/tests/test_provider.py +52 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/Cargo.toml +7 -4
- {optify-0.6.0 → optify-0.7.0}/rust/optify/build.rs +22 -1
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/builder/builder_impl.rs +91 -2
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/builder/builder_trait.rs +6 -1
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/builder/watcher_builder.rs +11 -3
- optify-0.7.0/rust/optify/src/json/mod.rs +1 -0
- optify-0.7.0/rust/optify/src/json/reader.rs +10 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/lib.rs +1 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/provider/provider_impl.rs +22 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/provider/provider_trait.rs +14 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/provider/watcher.rs +45 -9
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/schema/metadata.rs +5 -0
- optify-0.6.0/python/optify/Cargo.lock +0 -1071
- optify-0.6.0/python/optify/tests/test_provider.py +0 -44
- {optify-0.6.0 → optify-0.7.0}/LICENSE.txt +0 -0
- {optify-0.6.0 → optify-0.7.0}/python/optify/.gitignore +0 -0
- {optify-0.6.0 → optify-0.7.0}/python/optify/.vscode/settings.json +0 -0
- {optify-0.6.0 → optify-0.7.0}/python/optify/LICENSE.txt +0 -0
- {optify-0.6.0 → optify-0.7.0}/python/optify/tests/test_builder.py +0 -0
- {optify-0.6.0 → optify-0.7.0}/python/optify/tests/test_optify.py +0 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/.claude/settings.json +0 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/README.md +0 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/benches/loading_benchmark.rs +0 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/builder/mod.rs +0 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/provider/constraints.rs +0 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/provider/mod.rs +0 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/schema/conditions.rs +0 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/schema/feature.rs +0 -0
- {optify-0.6.0 → optify-0.7.0}/rust/optify/src/schema/mod.rs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: optify
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -22,10 +22,10 @@ Project-URL: Issues, https://github.com/juharris/optify/issues
|
|
|
22
22
|
](https://pypi.org/project/optify)
|
|
23
23
|
|
|
24
24
|
⚠️ Development in progress ⚠️\
|
|
25
|
-
APIs are not final and may change, for example, interfaces may be used
|
|
25
|
+
APIs are not final and may change, for example, interfaces may be used in the future or method names may change.
|
|
26
26
|
This is just meant to be minimal to get started and help build a Python library.
|
|
27
27
|
|
|
28
|
-
See the [homepage] for details.
|
|
28
|
+
See the [homepage] for details about how feature files are combined to build the options to process at runtime.
|
|
29
29
|
|
|
30
30
|
## Usage
|
|
31
31
|
```Python
|
|
@@ -55,9 +55,18 @@ Outputs:
|
|
|
55
55
|
}
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
|
|
59
58
|
See the [tests directory](./tests/) for more examples.
|
|
60
59
|
|
|
60
|
+
### Watching for Changes
|
|
61
|
+
|
|
62
|
+
Use `OptionsWatcher` instead of `OptionsProvider` during development to have it automatically reload the options it stores when the files change:
|
|
63
|
+
|
|
64
|
+
```Python
|
|
65
|
+
from optify import OptionsWatcher
|
|
66
|
+
|
|
67
|
+
watcher = OptionsWatcher.build('path/to/configs')
|
|
68
|
+
```
|
|
69
|
+
|
|
61
70
|
## Development
|
|
62
71
|
|
|
63
72
|
### Setup
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
](https://pypi.org/project/optify)
|
|
5
5
|
|
|
6
6
|
⚠️ Development in progress ⚠️\
|
|
7
|
-
APIs are not final and may change, for example, interfaces may be used
|
|
7
|
+
APIs are not final and may change, for example, interfaces may be used in the future or method names may change.
|
|
8
8
|
This is just meant to be minimal to get started and help build a Python library.
|
|
9
9
|
|
|
10
|
-
See the [homepage] for details.
|
|
10
|
+
See the [homepage] for details about how feature files are combined to build the options to process at runtime.
|
|
11
11
|
|
|
12
12
|
## Usage
|
|
13
13
|
```Python
|
|
@@ -37,9 +37,18 @@ Outputs:
|
|
|
37
37
|
}
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
|
|
41
40
|
See the [tests directory](./tests/) for more examples.
|
|
42
41
|
|
|
42
|
+
### Watching for Changes
|
|
43
|
+
|
|
44
|
+
Use `OptionsWatcher` instead of `OptionsProvider` during development to have it automatically reload the options it stores when the files change:
|
|
45
|
+
|
|
46
|
+
```Python
|
|
47
|
+
from optify import OptionsWatcher
|
|
48
|
+
|
|
49
|
+
watcher = OptionsWatcher.build('path/to/configs')
|
|
50
|
+
```
|
|
51
|
+
|
|
43
52
|
## Development
|
|
44
53
|
|
|
45
54
|
### Setup
|
|
@@ -26,11 +26,11 @@ build-backend = "maturin"
|
|
|
26
26
|
|
|
27
27
|
[package]
|
|
28
28
|
name = "optify"
|
|
29
|
-
version = "0.
|
|
29
|
+
version = "0.7.0"
|
|
30
30
|
|
|
31
31
|
[tool.poetry]
|
|
32
32
|
name = "optify"
|
|
33
|
-
version = "0.
|
|
33
|
+
version = "0.7.0"
|
|
34
34
|
description = "Simplifies getting the right configuration options for a process using pre-loaded configurations from files to manage options for experiments or flights."
|
|
35
35
|
authors = ["Justin D. Harris"]
|
|
36
36
|
maintainers = ["Justin D. Harris"]
|