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.0.tar.gz
(27.7 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04538bf041ac6f6541f7940094f012f3fc5c0d5be9c23e008c70742ac0e2361c |
|
MD5 | e2ce5beb78cc1b6cb9d865cb1b057c01 |
|
BLAKE2b-256 | 59cedcb438078463445d35175be9abd60e90d314ce1eaaa7e02f89d9dba981c5 |
Close
Hashes for reddit_decider-1.2.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6377a240ee7d9a1481f9bb3a4f13e699602affd0681aef067b736dd5a442e48 |
|
MD5 | bf47765cc0949e8aa387131a777cf4c7 |
|
BLAKE2b-256 | d63ac2796c6835eaabb1db8a9c04c386ae5225a8a22a79a9595a0e784f41b227 |
Close
Hashes for reddit_decider-1.2.0-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c08b258b8c36d207749347b666c691e96cb28d5915517b505f43b2a166b81677 |
|
MD5 | e7cca7289945322cf9de5cfde23f8d2f |
|
BLAKE2b-256 | 27f17d8f0178fc65eabe736c032083d76a6bd99d34c54acaa1a0cebcf8a0f61f |
Close
Hashes for reddit_decider-1.2.0-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87c194f4c9fce4f9316421614b6a6053fb6c799ecfc5ec4a3a42076244797fae |
|
MD5 | fbaf38bfc0d10ad8ab5c9f19a02f8800 |
|
BLAKE2b-256 | d21a10f959842a1ee13db4dd0d4bd661fd8a1789b398d2af3927f589e249aa23 |