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.11.tar.gz
(22.5 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.11-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d5accb6938da603b50d080348270fc9c16acfcab2be2b9f488cda8360f83f55 |
|
MD5 | cde2909c07344135dc87e919700716d1 |
|
BLAKE2b-256 | fa9f91222a3a64adfbe9f879ce8e1e06339400333a0387a87259fe85186b9dbb |
Close
Hashes for reddit_decider-1.1.11-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bcc4c0558455c76c234a0120bacd9f7c59c279b704f5bb7b33d314d617157fd |
|
MD5 | 7eecef340750d09f9c5694460430c2ee |
|
BLAKE2b-256 | fe96e99033549a1e2e612f2d7a53145355c8d889548a659efe57314f42f3175a |
Close
Hashes for reddit_decider-1.1.11-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c6dfc2ddf3e972f47999fb05d585b4f17bc0f38db75fafddf0d684a51fdd450 |
|
MD5 | 56a803e2a4ffcacfcff48d5489bd5726 |
|
BLAKE2b-256 | 5b4aaac72036fef26db213047696445627c62f748ef2709fc4261375b608fc75 |
Close
Hashes for reddit_decider-1.1.11-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 780b7b354840d4f85ee50b5a1fe7e974f2d53f71715499e0027173ccb6d8dbae |
|
MD5 | 431bd39b4fcb3ec728af40cba3470696 |
|
BLAKE2b-256 | 071d15ea5d70be69edf978f16da20332d9f0b3b2e33135ed4102ca6c9c3e0f97 |