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.26.tar.gz
(26.3 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.26-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62cdddd175fba17956b971d1f5786b84a6019e7faf537e4cae4bc20ef81fe4ba |
|
MD5 | cf82ae235d4354683bd7a054ad202237 |
|
BLAKE2b-256 | 8dcc6fb233bd5cd846766359cf2374b9f51f89336194a5288f31a943f9ec7458 |
Close
Hashes for reddit_decider-1.1.26-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bb2678cb9b20d365d97a5cabe06258adeef6b7fab1dc749595a955eb1e18b83 |
|
MD5 | eb73bf49c579295aa4940656c8212c31 |
|
BLAKE2b-256 | 47ddc1f86a78f8569eee914c48b2c2491ad0e2c5b3af814663b0397d9bf136e3 |
Close
Hashes for reddit_decider-1.1.26-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcd0c8c523c4f877bb1caa4ba412ec9dae10431e93b95896d8cf49b164ecf673 |
|
MD5 | 1d7e369d6058bff74365f105006e8458 |
|
BLAKE2b-256 | bd64570c054f7aba0e32420aeefaa531f19fe031d61ae9dae722a7bca544ef9e |
Close
Hashes for reddit_decider-1.1.26-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cacf4b5a5b653c13825e3ac56da891b7e5039ee45e5332ba0141e99ce5db03d7 |
|
MD5 | 795db28d1546a4fd5351c10b381d46f4 |
|
BLAKE2b-256 | 6f01672020709d876a1f7be1bb20584aafcd9e308bf77fb38c18011a20ffc6ed |