No project description provided
Project description
rust_decider
Rust implementation of bucketing, targeting, overrides, and dynamic config logic.
Usage
source .env/bin/activate
maturin develop
python
import rust_decider
d = rust_decider.init("darkmode fractional_availability value", "../cfg.json")
d.printer() # prints yooo
ctx = rust_decider.make_ctx({"user_id": "8"})
x = d.choose("exp_1", ctx)
x.decision() # prints the variant!!!!
y = d.get_map("dc_map", ctx) # fetch a map DC
y.err() # check that error is empty
y.val() # get the actual map itself
Development
cd decider-py/
and run maturin develop
to build reddit-decider
python wheel.
Publishing
Package is automatically published on merge to master to https://pypi.org/project/reddit-decider/ via drone pipeline.
Formatting / Linting
cargo fmt --manifest-path decider-py/test/Cargo.toml cargo clippy --manifest-path decider-py/test/Cargo.toml
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
reddit_decider-1.2.14.tar.gz
(42.0 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.14-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df12ada84a0738c2d071a5a33602d38366911283da8044c63ffa3ce8a99f7ba3 |
|
MD5 | a1ebdb51c64b50eb8a7dbc1b8a2642b4 |
|
BLAKE2b-256 | 76d094d5940a67477bcca164aa1063191585fd9ac0ed55b5635889c7a99a1c54 |
Close
Hashes for reddit_decider-1.2.14-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79c1bbd410b03290c0ea30a20e65e5c78c69f7ef0415df3b23623339e77c60b9 |
|
MD5 | 92d783b99eda40dd53088848c3c26169 |
|
BLAKE2b-256 | 3a94a9d40d0e1e798e8b7ceaf669c43721683f7c8e638166de2fe5514b8a43b1 |
Close
Hashes for reddit_decider-1.2.14-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f3a961a9dfcfddd31b5087f4105df38673ce842a260f2fa554e78f3d4b44b2 |
|
MD5 | 4c460df30ef191a71f3d9eb8e6bc0682 |
|
BLAKE2b-256 | 488bc8aa57a22b0d280c4d38d85af53a52842c647fd6a463af7068aa22c21b83 |
Close
Hashes for reddit_decider-1.2.14-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a0c3fbe10c09ed2618baec0271132f5710de8f7d90d20c4d39963dd5ce21ae0 |
|
MD5 | 83fd4a1039edafc6071c37278223ede9 |
|
BLAKE2b-256 | 0a37403a1714adf45e4451a01b7163bfc81b6f3c3e72696a2cea968e53772e57 |