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.3.tar.gz
(29.8 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a72db4c3818874678cbe92ad54019ac1aa5a9321bb528a26902caf43cb273bb3 |
|
MD5 | 4424b7839b095e9b01949d589310e118 |
|
BLAKE2b-256 | 77509da5864df271c4319bf8752bb6fe6b043b6af0a78259f7988c7734b17d5f |
Close
Hashes for reddit_decider-1.2.3-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 500225f4c6d9aa9576b6aa275dd1f9b41f64a08d271c4c02a99e7b18eef30337 |
|
MD5 | 3e9db8cae7f49d4a090b38e85693d8bd |
|
BLAKE2b-256 | 30c6e86adbdf682de3475a18c40159fe150dd7f94222926593667cbbf1070256 |
Close
Hashes for reddit_decider-1.2.3-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 440f6b21c2457929108fe6ec85907b40315de7bae847be6d09e36148f582e547 |
|
MD5 | cd9fe47fcdb5439a60c6fa1f249395ce |
|
BLAKE2b-256 | 8ce8076ea43e3af5ee09e34748916a015e6e487b3231699a540da0811f9de451 |
Close
Hashes for reddit_decider-1.2.3-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 622dec9dbc2d456362d5083f02d713e2e0104d3b2754969d39ab11bd5a1dfc9d |
|
MD5 | 9ca99a5abff01c7cf41c36e76c1fa2f3 |
|
BLAKE2b-256 | 8a582a577e4db25181729aad857e90a6ff2819827d57e8d2c3f087735828f8de |