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.22.tar.gz
(23.8 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.22-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f322a66f8c2c22313d4b94fdcf5a15949616f04fcecfc629cdf14c4f26a15c0 |
|
MD5 | 61a06cdbf4d2525a90b3211927240de2 |
|
BLAKE2b-256 | aa913f10a11dd1395aa1519b909562a082a6d07ee31551626c1a036cfbff8721 |
Close
Hashes for reddit_decider-1.1.22-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aedde2a367d2928bcb4f0b0ed8e007893b5aa8a2ea9b828731999b0ae0649d3f |
|
MD5 | 37d8b98d4539c350a972f18a129c7740 |
|
BLAKE2b-256 | fb341d53ea2fdf00c81dc1fcf14979c89ec4a57d2e7381bdb7b49062ae76d081 |
Close
Hashes for reddit_decider-1.1.22-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b47d72d2a20b3b095cdec75e66cd3c7c5f7d72c782be819a5c5ad9c87149c406 |
|
MD5 | f3746c2a41c90b48cab7b8d599610231 |
|
BLAKE2b-256 | 5c1763406d91cc9bc564a9b5be13047f78022ba6e72a71ba0781ce41c3dbbb19 |
Close
Hashes for reddit_decider-1.1.22-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54fe90e0d345a69e7d813d943e27822bdb0dba22da1657749204cc8579142018 |
|
MD5 | 6365bc848919009651591551fdc97c4b |
|
BLAKE2b-256 | 86e0417088c5058aa51703bb04b4a105116ca712cfd671def50d12436894eaac |