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.7.tar.gz
(39.4 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.7-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae688ad5d1571931f44ae0e038c5d8dd3f05f8d209017390866eede21e07acce |
|
MD5 | 7f541e2e5696b5d880c91016a21545fd |
|
BLAKE2b-256 | 98d2a9a964f21d5b140223bcf98bd44491565dd95767900e4b869e7744f122ac |
Close
Hashes for reddit_decider-1.2.7-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9bc298f2d95829a090d9f3adfa19d25472b57b0de3e9b620cb8eec1ffc6835c |
|
MD5 | 9dcf5c63db3539fa06f1119353edf7fb |
|
BLAKE2b-256 | 099a8083457b7f95220377ba2d2043c6d0270111b6b75f2548ad487a6402846e |
Close
Hashes for reddit_decider-1.2.7-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9696d3457276402ef1b83103285e929480fa68e7edd18a14b62c57f9d946cea6 |
|
MD5 | 9cf7d0226d59d4aef4110010c1ac4259 |
|
BLAKE2b-256 | 7aeca00d5624a8b2c723be42a8022b6cd40a5a78de6a5643ee0acd16f66834d7 |
Close
Hashes for reddit_decider-1.2.7-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ac7164242673fc32e9e7fb1c704b65e0bda383cacc6543e5ef7d546a3b972f7 |
|
MD5 | b97056b9679f9bfb11f886c2c22e1ab5 |
|
BLAKE2b-256 | 0338434d0b4aa1715626e678276c9b43623b51ffc8ad5a25a786b1058338e4f2 |