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.4.tar.gz
(21.9 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.4-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad075d75f691ece76fb7006c2369bd8c13761247c07486bb800e4753e7ce9992 |
|
MD5 | 283a937fa18c738e90c81ec2f0033eff |
|
BLAKE2b-256 | a4a899dfcb5aa3fd3c4d3dabe400ededc6d55a3df55c57e051376a35ccd48c5b |
Close
Hashes for reddit_decider-1.1.4-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddf914a0e2ba5443a2e3083446a2f629e717635790212c508a30e8f2b2ecae97 |
|
MD5 | 7ded1ab5e831b0e417de98ef2c36236d |
|
BLAKE2b-256 | a6c2f7053627f696f60e81ea8aae4c31fff0641608d23d9fecc8d1671d4d9f6d |
Close
Hashes for reddit_decider-1.1.4-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e622b60763f1f45bd5efd7e2e956188243a3d7d92b67cb443162ed4a4df66a41 |
|
MD5 | cd641333edc428b2fa5de0af8ded36c6 |
|
BLAKE2b-256 | 0c94a7ed43aadaa63ef2cf01f217edd4dd6f7778c0165e2c360c3f85308a1d55 |
Close
Hashes for reddit_decider-1.1.4-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74338489211ba0e2d45fe9f8ac5d9f91fad9ca1962ca848879b458fd369722a8 |
|
MD5 | a887db06e979882fbf551ff5035e2c05 |
|
BLAKE2b-256 | 87f82c60f44402b3a13c397c49a83de4da0bbad02222a657ff3717351dd617a4 |