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.19.tar.gz
(23.8 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.19-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff8967339b7b915be6098a44af54944a8aabe50f0a550cf70a79997dc040a514 |
|
MD5 | c3e192dec8285bb25d1c4cec010dbe10 |
|
BLAKE2b-256 | 606bb8e3d6de5a615426eabac32f38d1240400c5d47019bde9106189506d2a44 |
Close
Hashes for reddit_decider-1.1.19-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89c6cff8b685a988bfaf718ad190459b1db63aec2a8c7a0feeb519332133fc25 |
|
MD5 | 51dc2f288440f08404ef5e3619e02528 |
|
BLAKE2b-256 | 55bf2314562277250a445fbd5e371d1f0127dc4a24073321a7e284376176df1d |
Close
Hashes for reddit_decider-1.1.19-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e81ca94be44d2ce87af8003737c586b58bcc1fd48a11974e4caa36afe290440 |
|
MD5 | c0694729d547c1e2e2c2f93692f36fc9 |
|
BLAKE2b-256 | 27b6658bd0834ecfa1b344cedc33784841be0fcb906d5972ba34b7d8f0bb9061 |
Close
Hashes for reddit_decider-1.1.19-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dc76d1b080741cdc223c803ac99065c96ea41e99fef9c5e7ed2e1ffc5d08598 |
|
MD5 | 8a10c2e5941149a9990922395af22216 |
|
BLAKE2b-256 | 6f9783dd6327acc3c53ff2d6eac4e1ddfafd804c65ab7f9a88619d1a56a787ea |