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.25.tar.gz
(25.9 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.25-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21deb5cfda9c236a36e8f53339dd09e9756d92d35d8b5a8d5198e1311f2f0f64 |
|
MD5 | 5e0a62c6bc9e1d7363abbe25a8811d4c |
|
BLAKE2b-256 | 044b6f1e4b600e0217122a2f36bc59a2adb060016d11c9fe8c9c098833fcd9be |
Close
Hashes for reddit_decider-1.1.25-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e84fce4becfa0e68843737442d454b8b29f55c831c35e916d4fa8cf799478d79 |
|
MD5 | 7deda25ad712f60685a3b036b61c36cf |
|
BLAKE2b-256 | 2e5442c748bb949e4ca99be5b2b1aa376e800db9e303f1e0a02e0996af5a8742 |
Close
Hashes for reddit_decider-1.1.25-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c1c659697d9f97f94033825873220a69fd7f25bcb71520d22f2e11884da052c |
|
MD5 | d6692afe51790b41c95570517fcf0e31 |
|
BLAKE2b-256 | e917b6de9146df442728bdb9d75db3afc25414ba4e2c6051f82219c9fbfb9494 |
Close
Hashes for reddit_decider-1.1.25-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1725d4e68eb81aedb83e8e1cfff1671f43f63ab7ebba8b44e17506d0dafca7e0 |
|
MD5 | 12c81b3ce08727e5daf8e6f8ad67693e |
|
BLAKE2b-256 | 2e2f3d3c621c5545dc585066700707fda56690f01319ab28bf9d79d39ca2637c |