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.14.tar.gz
(23.3 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.14-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40573b3f675148edf30c361e18baa8b22b86fad74b9846a6a7d1cd644b7241a6 |
|
MD5 | aee7942d73f37d5b7bfc9526d61e47e5 |
|
BLAKE2b-256 | ecdddbc25d8ae19e94181aa11302cd2972b758f0a45706248b55d09606f2f111 |
Close
Hashes for reddit_decider-1.1.14-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0449719ae3ba38818abb050caaa3d35bbb27ccd7b405eb1b04e1002621bf6df4 |
|
MD5 | 57b7a6745ff3270a975e18e15fae5e0e |
|
BLAKE2b-256 | 3be4df157128c5e3ddcb357a4027752e9fd451940e5d266a6ca0a2b3a35fd618 |
Close
Hashes for reddit_decider-1.1.14-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8acfd377b2c00937923cded3c1b5180f07d6aecab59ad36fe6b4126d236decf3 |
|
MD5 | c9225d4b503e960111055ea5c6eb55dd |
|
BLAKE2b-256 | b0a250e9cae0ad97ce894d241805529de7ee26d79874ef723c538e254c30f475 |
Close
Hashes for reddit_decider-1.1.14-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5f9ca397e022d60f4e183336db4ebc8bcac6a56b75402b47787c00fea171504 |
|
MD5 | 83563b417604e6509d536a77eae9fd59 |
|
BLAKE2b-256 | 048ab531e8a69fedf203a4fd25983f9496134aad5c712018f6e9a1b717247298 |