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.18.tar.gz
(42.4 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.18-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f22d4908132e9c147b402a4ade2c2ca1480b78c9ac5634bb8138c1c7e2e080e6 |
|
MD5 | 57cd58862747a20f38e51711efaf3ad1 |
|
BLAKE2b-256 | 344839f902e5adbc1ee7cd3c8826197bfdb841389a0925f05f492d767fc0a445 |
Close
Hashes for reddit_decider-1.2.18-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 391b5d9e681b290e36f640a94d0ad313ba8637e4f111c60a79893945bf4f23ef |
|
MD5 | 31c406761d5161df5636c59ec1a96d1e |
|
BLAKE2b-256 | 1aaea09493d7651491788bfb21dbfa6316d9a03427aa124dccc68e09d1cce460 |
Close
Hashes for reddit_decider-1.2.18-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d343456e761ce89c9cb923c769767a478c277423757ad860de155267cfa4649 |
|
MD5 | 2f4fb0586a77f88a6bd8fb0e78dc195e |
|
BLAKE2b-256 | 714c55976d970438380b2fb3668e52760d8f6ef3c65cef4d6aab6d9d1da175fa |
Close
Hashes for reddit_decider-1.2.18-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b4fde3fbb6f9e34686b9a50dab1209135dfc8baabef5b6837c086d3600f052c |
|
MD5 | b307a8fd4d644854227402ddb933e9f1 |
|
BLAKE2b-256 | a36f81ba986bb4a2c07b9f77f35acb0d256b0394d1b782c4893a7a7ea8116340 |