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.0.15.tar.gz
(18.6 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.0.15-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a521003dd272618f49fea8a30232d69a36ac7f48abc9b190c1da25a688b9f60 |
|
MD5 | 3f96e19510e6a76c240428c22beb8ac3 |
|
BLAKE2b-256 | 13768f72c2a6d2893f96f983d19ca22c3dbf6dd06fbeb4afe6e563afeddf4911 |
Close
Hashes for reddit_decider-1.0.15-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50656834aa4eb8f85b209b4ff1849c94e68aa0ed9b15752425ac90aec99d4da7 |
|
MD5 | 009952c3e4e2eb45ebeedd951a58b676 |
|
BLAKE2b-256 | d265dfabfa9a6fc9d6c79c7b67f57cb9bb4a8318cba0d692a3e7572a88dcc164 |
Close
Hashes for reddit_decider-1.0.15-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14562e5a630158ecf02b0e666861480e5ee506dcac24c4499b5581a300685ba7 |
|
MD5 | fa8460d668880d30541ece8b2735312c |
|
BLAKE2b-256 | 1a248fc9e8a85bafd81154339bb19a8c049c2c53e1060977e8ae3fdc43722471 |
Close
Hashes for reddit_decider-1.0.15-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96ca6055a585a324ce1ad978b593074b201f2fdf307a75f227deaa3d3b9010d7 |
|
MD5 | d834e0c4f84d65e66ed2330bc2c89810 |
|
BLAKE2b-256 | a30e2505ff94a7dffd23496047f741ae5e5f971575378767048e88d0475a1919 |