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.13.tar.gz
(22.9 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.13-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e442b0a3a18b9c8db98aeb860d260b637f308c76efab42497b919100a37a26f |
|
MD5 | 77ccc3ae2d1429a061dd9b67251bc929 |
|
BLAKE2b-256 | 1519001450c7e3b1af8204f61f3ca44a7b77adddb0318b73b8f572f24d9e96b0 |
Close
Hashes for reddit_decider-1.1.13-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 145da20e950b846519ba8c0f978689b43d96784843400f4d8e2018a769479c54 |
|
MD5 | 6a0d2d89e76546778dbcdf105702ae7e |
|
BLAKE2b-256 | a90f09c94f9406f440ed419aa19b5c892b97f7f4ba76ab793d2c94cb3ec2af41 |
Close
Hashes for reddit_decider-1.1.13-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87a0eb9597eb1523d753d788b7ce278d0de5cf52833c6aaa497a6b65879929bd |
|
MD5 | e05e755f0d3407049019570979ab843c |
|
BLAKE2b-256 | 164f602a164659ff5326c740714f340e482e2328cf3bf3fc689b569d37eb909d |
Close
Hashes for reddit_decider-1.1.13-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d04bf95e153250aa490f1d164c6687ccf622f23be4e0f972db0619f2d380cc0 |
|
MD5 | 646d5b3397fcf204466265d1e2b84c48 |
|
BLAKE2b-256 | 7b86d07148d7b1b49821accb4e3a7b6082a1a542a4edd160904d87453107c238 |