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.5.tar.gz
(39.2 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.5-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5189501dd66f066aa1c44526ac182c2701c8ab8fb5279c391e3fd50f9c4f3ce3 |
|
MD5 | aece92f89a514a554316707abe863543 |
|
BLAKE2b-256 | 22bab6bf50ad318b8256ee39ceb377cf8a575718ac0e3d71dbf858f61bc0a696 |
Close
Hashes for reddit_decider-1.2.5-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 363d74e1491453776a7783f4778c00ce65744b05f1422b852aa4295fed9c9a42 |
|
MD5 | 298bb1161d929b7ea69ef3f3a9889b82 |
|
BLAKE2b-256 | 1bfa29f9e8f218e063481bd6558b0726e9a891b4b3b4a446bd49760861bb7b38 |
Close
Hashes for reddit_decider-1.2.5-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91b114ef9aa448b520dd2819f24b83aa245d549a85cc23a39ac93f88e078fea0 |
|
MD5 | 649e0c12d02534fa54c5e18f05812a8e |
|
BLAKE2b-256 | 1b384515b40d9e477e54c5cf2ae3a9823bc9194a36aae770b47fa1e385113fab |
Close
Hashes for reddit_decider-1.2.5-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ade061ed0b46dd8762c7e7a4e9057c40806e229974b6d684fc7e065e8c4f011 |
|
MD5 | b75c239e40889dc94ade26429258e096 |
|
BLAKE2b-256 | 1c0e53cf6c711ce6d9a5da741b4b41dd4455c5de1967e269c018254ee88d2955 |