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.17.tar.gz
(42.5 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.17-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51fe5351ef69a95e9b0ade61a4b71d0f2c0a1fa577bd9f8fabbc65f03cc9746e |
|
MD5 | a509f9197e23880c1fa05ca2c627d313 |
|
BLAKE2b-256 | 1b2c88c6fbf1322cf78d0f7c99ff69eb9bac0ae90a70bad6c5b50c76fde319b7 |
Close
Hashes for reddit_decider-1.2.17-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8a0fa92722e3b7a5d29913efee180c52cf3c5ac8b8d6bcf261ede7051600ff0 |
|
MD5 | 0d479fb977387a712cb2d436d3079830 |
|
BLAKE2b-256 | 6883f90df24ff7138b293bc8edb56fe322d2911dacd426006201cd2ca7be9001 |
Close
Hashes for reddit_decider-1.2.17-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2b2a5be8fc823c12cac1ea420c2e658ee18011b0efa55f7ad73c46be4478230 |
|
MD5 | f9f21e90a8940c47b8b06e77d953143b |
|
BLAKE2b-256 | acf469d2c247967e582b58e17461a2aa45138933f5a98478b5870e484a1e9f61 |
Close
Hashes for reddit_decider-1.2.17-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42db9e63101c87b687f7ca49ac3a00f39df478683c7c32315ed963d7bb5d7bfe |
|
MD5 | ec85609a459dde4284ba378f9c165332 |
|
BLAKE2b-256 | 37c351a880fe14cadbdb515d19be1f4af1e09598154ace95ce54d865456cc9c4 |