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.20.tar.gz
(23.8 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.20-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab592cfd6199e8e39f6739ac12e1e15b03ce7e374ece38bd7769d37745d536cc |
|
MD5 | 897ab52eea418135e80d436070a0c80d |
|
BLAKE2b-256 | 55c1795e19991239382bb21d69a7d9ae0ae7b6e9229221bb3bdf31e303175b27 |
Close
Hashes for reddit_decider-1.1.20-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 938edff850387fa6bc3c4465c60450e89c245334a4ac8602541e5e749858a126 |
|
MD5 | b5ef9c004f880aac58eed5a1d8233de1 |
|
BLAKE2b-256 | 1d12749d317dda9dae3e6a7f0a6c10cee722e32565416f4000b2f418bd8b7b68 |
Close
Hashes for reddit_decider-1.1.20-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1230282b082a15f4797b22fc103669a22701de406875de1cd0fc83a7bb778eaf |
|
MD5 | c2b3c7c441ea1d759c6817b08c81c24a |
|
BLAKE2b-256 | 28788ece3974c6f682bd96e46348c9664480a8a72432b310fb9d0c3b54c40948 |
Close
Hashes for reddit_decider-1.1.20-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 847116b121a31b5b2d895fe56dfca35bd6327a33a10dd5001b93672bd78818af |
|
MD5 | babdcc07338e308afbd3efcaf0470c4d |
|
BLAKE2b-256 | 8968d580d5d74c62503f0ff2436b2919e75dc9a23a1c096175a2eed2ca7ee37e |