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.21.tar.gz
(23.8 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.21-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4abd42f20c6febe9025e8c55138e335a10a1fc209835f39dcbc5fdf50accd2e |
|
MD5 | 847d74d6e2c247e85bb32dedce66ceea |
|
BLAKE2b-256 | a82320e373edabe5abfc49d488a7180cb501ad245246a92bea409b96d26fbf56 |
Close
Hashes for reddit_decider-1.1.21-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d8e7c592b65ab6fc84b9f11c70426c33a24867c256b96de1db1f009b978b220 |
|
MD5 | 87a26c7664417ed508a1ffe29bc73885 |
|
BLAKE2b-256 | 1a33390ec3a0f33432a4afe9d75b349ca2c1fbdb18ce0cbc9d681fe820361307 |
Close
Hashes for reddit_decider-1.1.21-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89511f0cb5b4873cfd3be3988c7fed3f91d9358c00d46e6ab3b9f8d863957b22 |
|
MD5 | a2293db4afb342df3aed435bd765abcc |
|
BLAKE2b-256 | 009d65b93161855fc3657c53a94df2bc32afe198c31b96cbd3e49c788c716f75 |
Close
Hashes for reddit_decider-1.1.21-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3675bb9c2300dfba9e71ccce214beb5fed265841f7d31dffda2d717adf7b6d11 |
|
MD5 | 125a7ebe42fd5caf49f55414c2cfe884 |
|
BLAKE2b-256 | 3aae33e942ee4e06dee2a8dfdcd9e4f395ea8d58d00b90a5c935065cf2060b32 |