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.6.tar.gz
(39.4 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.2.6-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aa64338a327d3a86474c8de1ff68a7c4c559e3d92edd3c5b8c88d3b8b788c4b |
|
MD5 | fd3c86b6fa6a02658d0853a8c3f2727f |
|
BLAKE2b-256 | 5b092da0710251257ed23116a8d580ed3d42ad5cefc11e979dc46ad3083b916f |
Close
Hashes for reddit_decider-1.2.6-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cad561cb05d80db37f10bf44f2fa209fc8cbc624bc42a5fe0f40d5ca5995a3e |
|
MD5 | 8a561ac5bbb6fcde85150e2deb118683 |
|
BLAKE2b-256 | b06b6954a432fbedd0bdbefa8f66ebda428fdd5f922a85b0e71357cdabfec7b2 |
Close
Hashes for reddit_decider-1.2.6-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07bb3695d12c48b548fe5eca004222d56c83ea2eb99cb7a4cecc711973e0a4ef |
|
MD5 | 2a5927268b0e741a58e7189315cd3a5b |
|
BLAKE2b-256 | 9cfc8b274a0b83ee2e7a7e027f5082a58593f0c8d347727f86a578c983061f57 |
Close
Hashes for reddit_decider-1.2.6-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49554e0a165652904ce39f7259aa9a4d70c6a788c61fd100a583020eefb8623a |
|
MD5 | 76dc871397db8680f3f978947df0e5a4 |
|
BLAKE2b-256 | 2bd9b0e57ab80a0efb816b4fc471eb24a222aaeb83fdb339f0cb33cccde55c77 |