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.12.tar.gz
(41.5 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.12-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 504bc285aedaf74e5271ce9a51fd84925f3d63e4b95f8c7d07e0dbdba109b7d1 |
|
MD5 | e5406123990b70f6522612f240394078 |
|
BLAKE2b-256 | e92e716c8eae48a680430aac1eebd6ac52dc60a007ed47596b1a0f4cf54044f6 |
Close
Hashes for reddit_decider-1.2.12-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 285c2a57b73d6ebf14e9c58afa076fe49b4a135649fa0952bb58227480c55a25 |
|
MD5 | fded7313371c66407f0d3edb791bf748 |
|
BLAKE2b-256 | aac2e2e149d0aa2e3579f5c2febf95cde1ad7cac4333c9d2da294e3ddcff1299 |
Close
Hashes for reddit_decider-1.2.12-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 668cdd8fa6a64e03f265e6c9b61314f691ef94a7369dc5d24d771e021c9558f8 |
|
MD5 | 3116b674e1db50e3dc968a6b5be5a09f |
|
BLAKE2b-256 | 7367faefb7ee59c92185c0fc9c0b3b9700a8e699a81a59a68e10566d9d4f475d |
Close
Hashes for reddit_decider-1.2.12-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fddf8da3f06fbf71acb1fe648e0e6f1e1f4c0b66420a24293571066abab6ed67 |
|
MD5 | 57ba9a1883ae3958d4af870defed874a |
|
BLAKE2b-256 | 774d675dfaf0075d1b869ba4197e16b85dd27879edcb344604774d5f95fcf1f3 |