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.9.tar.gz
(40.0 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.9-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 042bc8999dede1c6913f687df6e4b7c37edb4ca5b71f74e666b9b0f64656a1a7 |
|
MD5 | 7e11834da6fea4792672649723121ffb |
|
BLAKE2b-256 | a685ffec040d2c3f349080de426ca72e282c1ae0f734c15884dae38b120ba375 |
Close
Hashes for reddit_decider-1.2.9-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf0231b01a835bbebf6be0973fbbcd6aa3c25550256be996cf4b31e9b58cb3ac |
|
MD5 | f0e8e17d3892ed9afbc4df2280b7b21c |
|
BLAKE2b-256 | 9176a1e516bbc7290e028c6eb8622435ad2a2078cd487c0b7073dd854d269c37 |
Close
Hashes for reddit_decider-1.2.9-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09c9b2f36aaee75aacf2d29eafcf82acf19841dbc2788fb55ae98d00016726e2 |
|
MD5 | c634f97b96fdaf4606850bdf272a364b |
|
BLAKE2b-256 | 3a86b4e7f56deeffa336844c8c493c3f82e7ccf21f13ec6b026f791e5af8752c |
Close
Hashes for reddit_decider-1.2.9-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d50a84d637d3b29ab1aa426aafbf849f8dc09d3b35071ce59bf0eb5005458dbb |
|
MD5 | 37ad45bdb7d8ef293e302b1d8baf8386 |
|
BLAKE2b-256 | 0e16ae281900ab13fb8bc315bcf12c38c73bc061933a4938b86d40b264167b73 |