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.1.tar.gz
(29.2 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a54447071c9d6c4cb290a26469a2257c073eb24e70dc6b60e32af39df159a13c |
|
MD5 | 0aa6139c083aab6adca84c11f498306d |
|
BLAKE2b-256 | 33913b79c9fdf3df9d128e8bedd3dbccebe668ff52a4d008c1a3c26ca4e69fd9 |
Close
Hashes for reddit_decider-1.2.1-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a92357be90e0256da61c70d993f4450eb419033f1d0dfdc93e97006edcde1f6f |
|
MD5 | c65cd61a8ce1e12a8c8f661f87746e02 |
|
BLAKE2b-256 | f9eddd3f683726cd9a14d4a9c77f7554a4179f181309639f17d88e4d323a9ebc |
Close
Hashes for reddit_decider-1.2.1-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77c2dbd7bf9ac7d7b3083a23612798fcbf66c0a8f61b6cfd57824c8d0ebd070e |
|
MD5 | 74b97d07e1f2449624146ca14f94abb8 |
|
BLAKE2b-256 | fce3304060675572858b89823b651c19ea9fb609941bd5413080edbf10fc6c5a |
Close
Hashes for reddit_decider-1.2.1-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d05cd337bbcb73e8b1fc4dd6fb2c7feb2c5a6aab96f2eb6c558ed309feede12 |
|
MD5 | 164c727ad99a3312eff0bb8de7437dae |
|
BLAKE2b-256 | d3f6a2148e389b07dad6916edf75b24e512e5ffd264abf5e37304b9e33d38ba8 |