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.29.tar.gz
(27.2 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.29-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa3ae5bfc324e546796cb7273dc5917e681e942e4550ea50de9afc65db1dc1cd |
|
MD5 | fc8ce93d3ce94dd7cd1e33faece4e3df |
|
BLAKE2b-256 | a7d34033c8fb23694ea8b4da0364edb95e27694460394af4ac68aa7bc58b11be |
Close
Hashes for reddit_decider-1.1.29-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 408793418a2a1fdf2f9d3a8d5548e68add434d2a30767da5a2364dd6cfb9bcfa |
|
MD5 | ce90e3a7b4ac82a70cfbe15f0bcc7be6 |
|
BLAKE2b-256 | ede0c3d0413c874a4886180b2ed444ce69aafaec1b415c1a634913cc82705060 |
Close
Hashes for reddit_decider-1.1.29-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6c539f945ba4f30eb5f1c7d25d5ce0dfa9bf2168a21dd862627be41dc66c267 |
|
MD5 | 3a8d59d2f7222a78195fbc8ff58bd477 |
|
BLAKE2b-256 | 0938abf5436495c6f021fa6aae7481fa42c064dddaa1bcbe79d15b902c7b99aa |
Close
Hashes for reddit_decider-1.1.29-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9702544f58f0effbd95590e1ad1a3a4acc1e41f9744e872f03745cbe2290afd |
|
MD5 | a3744a03664102e9b62abf69a7620789 |
|
BLAKE2b-256 | 7b1fba50275065a21eab437fa9d943e770e68e45fe2b7c86b7dbeb3bbcf61033 |