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.8.tar.gz
(40.0 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.8-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a0e8619eb54151ecd2d2e8f62dbc139bd4eaf78e325f35ac3ed00fbe6287f75 |
|
MD5 | 49613eb6a4eeadbadc4e8d2c4fe6205c |
|
BLAKE2b-256 | d5de4bd3a4a91f9d7ae0a748b6ca7b39c006ab131f515b0d6e41bb1175ad5293 |
Close
Hashes for reddit_decider-1.2.8-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46f46c2c97ba904fe58f78b9c01f123d1d4bb4f45450a5385d45d5a2fe6542bd |
|
MD5 | 285c3e195a44dd3854a622bb6b61eb7a |
|
BLAKE2b-256 | e8227900eef026fc4973403e89e3171a2ca1df3e522e7c2098f742941db430c0 |
Close
Hashes for reddit_decider-1.2.8-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f9a42f1339ed0398532f6693a4a588360b865d4d823ccec5712e73e1a4c84b5 |
|
MD5 | 9e8a07c5a3edcfc46db9a2713fb1b1d8 |
|
BLAKE2b-256 | df71ebd73c1f7591748aae19371b80c1dc61b70b309d0ae28fc012890565945b |
Close
Hashes for reddit_decider-1.2.8-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a804743122ad0398b71fb28e578b2d215afebcb0b25a24e08a043c9329a230f |
|
MD5 | 9c64a866f4ae8bced7049cb2b23a713f |
|
BLAKE2b-256 | e0e9e17569ab5b8d560b3cf61aa1a3d58b22ad6953262ff778dc5b7554e7ad25 |