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.1.27.tar.gz
(26.4 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.27-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 288dd35564fb9203fa9f3f925514b53df06fd424c5e74a7ca68c7af5e3b773b2 |
|
MD5 | 2c373f34783ef93ac0f28ee664ec46b4 |
|
BLAKE2b-256 | 2e2179214b45d993df2fed7970ff9411f80c1b67a49d8a7869cf17cd3d9b66a3 |
Close
Hashes for reddit_decider-1.1.27-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5c04f31cb7d4a735cb87ccc81ea6d453da1280c1634db4175480f601c5f9be5 |
|
MD5 | 93aa9059b2a5c1bce4fd14fad6c1580b |
|
BLAKE2b-256 | 3b5ccdbf35cf4835f8ca5f892e0d0efe84ed75236ca77e2103929c7036189906 |
Close
Hashes for reddit_decider-1.1.27-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd01ab342ae974a426a19968065cb2e5d91a309fa67348fbbccee5c86fa6df39 |
|
MD5 | 3da215861e20d01c0899c881fa3f8bf7 |
|
BLAKE2b-256 | 85dd8d678ec5a35572a907c4c80254d42518f3d6c643074cddb0ea0aa67b2f34 |
Close
Hashes for reddit_decider-1.1.27-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fc9547c1c420f8d1b043d64d30928aef80777dc31f9b068a6e2e815c5461c14 |
|
MD5 | e6a9d34106bf0f89f64ce32064115d72 |
|
BLAKE2b-256 | b4f6499b913468eb28603e38f56f2adfe416ec86476b04d7cba776e7250effc9 |