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 in test.pypi.org: https://test.pypi.org/project/decider-py
Upload to test.pypi via:
maturin publish -r https://test.pypi.org/legacy/ --username mattknox --password “”
Download from test.pypi via:
pip3 install --index-url https://test.pypi.org/simple/ decider-py
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.16.tar.gz
(23.5 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.16-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcd7494115ed3ecb6201aef01b5a3c75afc10a8b6e7e0722daf70fce73444b1f |
|
MD5 | 17354806459c88de8d1521dd5faf9fc6 |
|
BLAKE2b-256 | 66bd0e2af07fc94ce963af522d15e3490ace5339b0ac79744efa7a3c2469e8cd |
Close
Hashes for reddit_decider-1.1.16-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de9f1195588525bf00c889c389cfa9874f5a612be36c3159c7ea6ed0f41f050a |
|
MD5 | 177cb61d6840f243b76e0ec1c9755192 |
|
BLAKE2b-256 | 8b18b196dea0e2a48f56b30627a23556d1a48964a5c72a789504c33795382589 |
Close
Hashes for reddit_decider-1.1.16-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fbcf7c39f60ce642776d18a75365b306834c2ced5b76dd7e21920d2b7c3af77 |
|
MD5 | 5f32861497d27ce551ff8641ed9eecb0 |
|
BLAKE2b-256 | d707e3b1a0d32901dc688b96ea9af1eb8342514c85270b5b63e520e178b83b67 |
Close
Hashes for reddit_decider-1.1.16-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9989093513a9d8c6ef4f3871a8fe33e46e9ff0f8c98b725671971358dc3a2ed2 |
|
MD5 | fb8ace9a1f009ac0de80725c7694514a |
|
BLAKE2b-256 | 079ecdfd862b621c40e79455965c12d800f15d7c7cf837070428f1dda41ed803 |