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.23.tar.gz
(24.6 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.23-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6f74e9b0f5c692fa0591f9a7ceaf50c23bc7d8120dbe5703e75b17cdf50b6c9 |
|
MD5 | ffe8076900a49e566b1ddb0882592d31 |
|
BLAKE2b-256 | 9efe9cd43e9ac35278f390cf61a8b6b834b8c6c8ce871f21db4d0c1761a36b90 |
Close
Hashes for reddit_decider-1.1.23-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65a74acdcf73089a4244c2bc40b09c3a51bdc8ebcc42a82864067d9a33d0efec |
|
MD5 | 3e3c52e7b7b5272cf9beacb87c7e99a9 |
|
BLAKE2b-256 | 0c1a828e0722955ff686459fb909206071043d745da9117d30900ba4151ace83 |
Close
Hashes for reddit_decider-1.1.23-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9baa84233d47279ec4f22a48fe56545e1380066d1245556611cebd4c7e0dd48f |
|
MD5 | 1ff19205ee5f4e86370fa8edcde0b15a |
|
BLAKE2b-256 | a9ff27614c52b5bbbe34a7d682b669d05fb1880691fbd9ca719231509720eccb |
Close
Hashes for reddit_decider-1.1.23-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 181945aff8c9df8358812209158853373bd108bf8882fc6b8dcb97aef5d44a93 |
|
MD5 | 09852a7cc88cd0d1ea6aa6f15e973903 |
|
BLAKE2b-256 | 7f9caf413bf25a9e5ae9d9288506f55a340228961992f15c3116f961d99c00f2 |