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.10.tar.gz
(40.0 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.10-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | faeb48f211318a5c426f30a035f8b3c8bdd99fb1a0dd7e8b5f337eae6b71f78d |
|
MD5 | 9c7dfd86a9a5a4fb6b3fbc14c6f55ae4 |
|
BLAKE2b-256 | af8a5aac877efe5405f2839605ae3db9b67e03a66ff72fe285ead2d2e60bb341 |
Close
Hashes for reddit_decider-1.2.10-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d365d615afae7c9ed231150f8eac87f8f3675826b7b4f1258bd46970574e7df3 |
|
MD5 | 8b402d37700a5d05b8dda0f8017df217 |
|
BLAKE2b-256 | d73c1b974e25a699b985d8feb06a7c2291520b4f912d1cb9f78e2fde5c180548 |
Close
Hashes for reddit_decider-1.2.10-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 370a01903ce298f93cbbdb3ebf8ee48c14257332daf1a2eae5e22d22a4225f42 |
|
MD5 | e9c6505abadc67ea256be9ff4fd31f96 |
|
BLAKE2b-256 | e4fabf7675b45b742d75752480411d4d92af75d952a364ca8eee737eae9c5553 |
Close
Hashes for reddit_decider-1.2.10-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ce5db0a73c12850283d8d95a48d109035039dfe4c5ca15f3a94ff25c5099bf6 |
|
MD5 | 46eec40214bebbc55c351f1e90fe4d09 |
|
BLAKE2b-256 | 78ee6904aab81636b248238da2fb44a17a9045f0d0666370e9a4a5a376dd50a1 |