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.2.tar.gz
(29.7 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1d9fe2581a2b10e180d52711224cf4bb7e90a7f26a40c36b861a3687b744e5a |
|
MD5 | 5430b3e8e31d4eb39cc2ba1abe540377 |
|
BLAKE2b-256 | 297cd7c98159cf27a07672f1d23b06d88ad5e1b5e6d4cb0065a6d9104f54145e |
Close
Hashes for reddit_decider-1.2.2-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3b7c1dafaced46c8e54e2b950e8d24e2d09bd92fed519f73768b6aee4ba1de6 |
|
MD5 | ca34f877eae277c97a39fccadd33067b |
|
BLAKE2b-256 | b7888a2f61ff331d64d68776e26613b3d3d1ad2555ed9eff5c8eb82bb5ce09ba |
Close
Hashes for reddit_decider-1.2.2-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e23379b47c6821dc86cd24ca1560cc24bd1e33f1de8561e2614bda5ba050695 |
|
MD5 | bfed5f97491ec3a3cfb730de382965ca |
|
BLAKE2b-256 | 461c749c9f909d2dd84afc38b2acceea93df72186f54af3338e30544bd0e961b |
Close
Hashes for reddit_decider-1.2.2-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa753e0925d1edfd7e559fcbb089a5ea870288c48b9d5a135ffbedb9ebdee611 |
|
MD5 | f580716355195ea2987bb07658165dc0 |
|
BLAKE2b-256 | 45c41b6f2df0cd036563867d1f68f278e3ceb0b7edd8230037af42c035091098 |