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.16.tar.gz
(42.1 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.16-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1582ab75ef3fd17bad39b8ac1ce2779f175ff545db9a01e9dfd9f9463b9ac96 |
|
MD5 | 4fdf8f6c75b31249d3200ca971cc0edd |
|
BLAKE2b-256 | 25fab270ebddbb4dafbfa47c2b6f561ce812c669efd48edc1f356a519e1afb35 |
Close
Hashes for reddit_decider-1.2.16-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acc005aa3ccbd1700d4fc7713c049ddab8da22af63fc950938800d11319aa8e8 |
|
MD5 | 4ecabfb5c1a0c6b1549930c4ae2d4489 |
|
BLAKE2b-256 | 23535960a276d5b4ce7335fbd9c658c95730f6affa1bff4b193e94a32e96245d |
Close
Hashes for reddit_decider-1.2.16-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f96901984f404f0fb7bd885f6e1252ea6140c91e72c25592cde602fa13ec4655 |
|
MD5 | 6596427e1e5d9ded55a9c5ae98f1e35d |
|
BLAKE2b-256 | ecfb0286f7e7bbaad4cb123709d980aa801f38ca72557719a09a39142ff67c88 |
Close
Hashes for reddit_decider-1.2.16-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 585dea13eaba8cd64b130fc36d91c9d68d5d5c681b1cee225334b69f4630a38c |
|
MD5 | 431a84f5034f3e741dae5cf78659015d |
|
BLAKE2b-256 | 961a6bbc853c5313a92a3dc58c704488337522a22ac995138cede6ce403fa25a |