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.11.tar.gz
(40.0 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.11-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8241c12fe45e343c01dd6a0c6a22be37b557d4b96d2d84670e66c8918a25481 |
|
MD5 | 7ebb0e7204523116c0180037fb2ab5c6 |
|
BLAKE2b-256 | 0796ce1203e4f520a1b8d861a09e51adab13675ccc8e5f46f8ddd88885eae640 |
Close
Hashes for reddit_decider-1.2.11-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 303be638dc4a81c3ffd3cc695300fb1244e69500098cf0d1cd7de354db515ff6 |
|
MD5 | 578706364507741db9abadfade953f73 |
|
BLAKE2b-256 | 3dcecd5ed35a8fa40920dd860cbd68c3847c4d571a884272b69e1fa6f9efba6f |
Close
Hashes for reddit_decider-1.2.11-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0bebbf37154f15cb4752215ccef6e2026fbdf38b542031734a774731e353129 |
|
MD5 | 3de32273cef5630e3168be0574c645f5 |
|
BLAKE2b-256 | 017e56176d38b21c14c3c9d11f24532d7e449f39096d71fd4b6b78e6fe6136df |
Close
Hashes for reddit_decider-1.2.11-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b51b895da51e29b536534046efca9a1b6840503dbc33b0b9d61451384959500e |
|
MD5 | 1de26aaea9af5fa43dc127d1ff80cc24 |
|
BLAKE2b-256 | 74e15f75562302061bdfadb2967f524864dbdda10e12f0bed810667f747d92cc |