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.30.tar.gz
(27.7 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.30-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 104ea03e60cd6127629e00705435653b4957effcab75d45f5bfc79e9c585fa67 |
|
MD5 | 94404d924cea95f72f9b1a5d063291cc |
|
BLAKE2b-256 | 4280439c417ac0c4d1bda3eb3e2d64611da8c0cc08eb3ab03e1ed4db0e354f4f |
Close
Hashes for reddit_decider-1.1.30-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61c87f973a25f9d39131fcc60b293fd8c3353d4104c34a3a4f610e0ea7f8fb8f |
|
MD5 | 01f2e22fafee656fb9b1a8074ff2caa0 |
|
BLAKE2b-256 | a75916e1e2de1a4c314cbdb0ef9c1fa7dafbb28b40b9cb4701ba7a9758cb3590 |
Close
Hashes for reddit_decider-1.1.30-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec0d5d0d02475cd11f9757dd63fcbba52438ad6e9b7f1c6f222160905840c23a |
|
MD5 | 45c883c6da074d2b04e6da973c4c0e47 |
|
BLAKE2b-256 | 7bc41d33b07bb5da31470611411a41f7859ca1fd6130563ff518057a94e9dff2 |
Close
Hashes for reddit_decider-1.1.30-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 130970352bc98158f65f6181eb5f016af0a7011501bfbbcf0c2159c0ce32c221 |
|
MD5 | 6ff4c6628f86ee2b2d763d152370634d |
|
BLAKE2b-256 | 54701b5d4e4d9d30c5f90af0b41a2a87875018fa6cd87c96ab04202865e95f1b |