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.5.tar.gz
(22.1 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.5-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55ed4c9ef5f45e5defe77269dbc198a8b8be2a6970f16be87cdc6bb81b874b6b |
|
MD5 | b38447bf8735fa9b2f15cad492c104a5 |
|
BLAKE2b-256 | 2f50bbfcbb4b933ab50a75600a4ddd179a8d8ab7c790893f8e3a9cc7d7157451 |
Close
Hashes for reddit_decider-1.1.5-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d360a247fad857927628b610577a33eea9ba3d366b7306f44ee9b27f881a433 |
|
MD5 | b4fe75e41cc39ab8560bef27eba68217 |
|
BLAKE2b-256 | dce5580145a1f30d30f3d2bb50af2e026f5b171f87a64c293595fe574149f376 |
Close
Hashes for reddit_decider-1.1.5-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d6dabc283c553bfc1096d39241da3c657fcdd08dd7b612136a053c8ce96f4c0 |
|
MD5 | 2d24414fbc2c43c93fb1865160d679ef |
|
BLAKE2b-256 | 768980911d666d292b4f670fa065d8211a24bd53dce7863bf0c3f2e2e8f01871 |
Close
Hashes for reddit_decider-1.1.5-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c311a6db59abca98bbaef266e8906a404c0961ce1f9cf5e9d35c3c8cde013321 |
|
MD5 | 55f3120d7748b6a1311eb95ebda9cd82 |
|
BLAKE2b-256 | a06bc4ece494d35be6a4c7be7941eab9db834d7eb4e7060963547837a47ae041 |