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.4.tar.gz
(29.9 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.4-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d26d4a651203034afa35b5040d9b2b859298d4e4d64b29ea774d5ee873e77c1 |
|
MD5 | 8d2cb19407e665f9765d0b16a89346de |
|
BLAKE2b-256 | 0bc6b1abe142013631bf3b40f0c69521dc7618fcd699b11793d779cb22583929 |
Close
Hashes for reddit_decider-1.2.4-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5a92036e76dd1ba5fbb4734908852797b723b6ba03f0226158a7df807c1e528 |
|
MD5 | c27343e0b1b6b9e801c26d87cde3d91a |
|
BLAKE2b-256 | 7174e99de9100e8ac68603cb48b3d71a2948f54e61f65b2c4ceb714c9230fc29 |
Close
Hashes for reddit_decider-1.2.4-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 012a58e729ad11cf00b8cce48c4be64f753499dd51215f1633673afd646a8d22 |
|
MD5 | 64567f26ea7474a393a998d8413a465d |
|
BLAKE2b-256 | 77adf8570a4f5b0b670213d826ca3e724db802fc629aaa8260d350ace939567e |
Close
Hashes for reddit_decider-1.2.4-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 856393aee13e7688b7a2666f60227e1a79907716b40270ace033824a503941a6 |
|
MD5 | b84e990a0ef0218c5d95d3c88320c135 |
|
BLAKE2b-256 | c563cf2cb8f11c7ca292daea6b698e3ff9ffd820770883ca4d77a4c99d884330 |