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.28.tar.gz
(26.4 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.28-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be7d7f9012972bd8005a0be885b75a6a5a19ab802260d736c7fb26e87088685f |
|
MD5 | 1a6226f744bf74ae60d854ab025171c8 |
|
BLAKE2b-256 | 73b4afd61cb6bb59589320a6ba4d985c50d8662332485e9c9cdf82ba8f3af22c |
Close
Hashes for reddit_decider-1.1.28-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b83f7d1d6feba18fc031851eee33a79ea80aa1a043137288fcb41f64f3cbca5 |
|
MD5 | 879d0dbeade369c1238b62a65f82345f |
|
BLAKE2b-256 | 42698755c64d5d68d4fefe88fc2bf6477bedd942be7a92299420bb63cfd7c17b |
Close
Hashes for reddit_decider-1.1.28-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bf3e130ad9f05e8ae705202737889c42e04435ac88161c178dfb8c43705d0e6 |
|
MD5 | 886a167dfea83ea207cedb827600255a |
|
BLAKE2b-256 | c1ef11f28f290080120d0a0b941e42920ac28614698f84429751c0e51d6c83cc |
Close
Hashes for reddit_decider-1.1.28-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bf2650a0d08c2445b0903541c88f40d53263eb2518ad26f12146b7ac6bd36a3 |
|
MD5 | 912bdd9d44b587041d7489098ec4432d |
|
BLAKE2b-256 | b9b3a1a70ba27f2ded950eaae2003252ba9595d6b11916db71d72bb89cd7a7a1 |