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.13.tar.gz
(42.0 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.13-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 625cf74688a3a285605a89a999c5d81d2d323bdc8285483a255854ac3591759c |
|
MD5 | 341527aade58b7b666b71364a04bb063 |
|
BLAKE2b-256 | 5d108e43e579dd9c39e6dda55d889c397e967ccc0102204c37caeff3d1b75ffe |
Close
Hashes for reddit_decider-1.2.13-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 126a86be8b34dde2665619801d12ee6b4ee3380eb524fe559e9afce39b2927be |
|
MD5 | 555f35dbb52c7d528ea88163fe70932c |
|
BLAKE2b-256 | 40b26f7316a79fc867e5bd19194493b3384980a9e7fab4eab174be345c3ff499 |
Close
Hashes for reddit_decider-1.2.13-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 138431a966e42ac7efbfc76e6a1915be8ecbe047862dcb795d8536d532e1de7f |
|
MD5 | 44ea042a78ba257c0abe2f9508efe599 |
|
BLAKE2b-256 | 3abd8ebff835269a53f2bedf4787a969de8f1dc6a2cca08dbbb81eb341493c53 |
Close
Hashes for reddit_decider-1.2.13-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80961acbe2a031407cd21d6d274d77e4cfcc91fc865ba3482cf61cb7cfcb6df7 |
|
MD5 | 4ad86cd8ebeaf01e7954da57818c8462 |
|
BLAKE2b-256 | 0415a5d8c6f9d4a8dde431d77852e6a55778d7fa15865fe4fe929e96a6e22a05 |