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.15.tar.gz
(23.3 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.15-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f4f78bfb12f1467a1c1b49c3dea7a8f27c671fecef58b459d3b7b4b7d5e05ed |
|
MD5 | 0f5fcf7d2dd27d313881b035e5067a0d |
|
BLAKE2b-256 | b460542456cb7a3af1cc82f52482fcf9e8bcf0b4ffdad0abde3aab2dec54ebf5 |
Close
Hashes for reddit_decider-1.1.15-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59e28fb7a65e434f0574bf8630fd57356a516d594c8d6274c416df4830e66949 |
|
MD5 | 4849117b41e9f750c51e4342ff1a980c |
|
BLAKE2b-256 | 3f8303a4eafc35de7514df9becedda2c0855944654aa5ed095a8b6efe27f6594 |
Close
Hashes for reddit_decider-1.1.15-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e5c1b894f63842aa91aca19b2bb9db8f08f694d18d09d92f2d5338260d72c45 |
|
MD5 | 5f59d38aacb86a8d8ed442e0114f03ca |
|
BLAKE2b-256 | d3b528e3f7f3931b1eb7f3fdb40a52958a08add7fb9af7f188d128683330156e |
Close
Hashes for reddit_decider-1.1.15-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7744ce99d4ea2804a2b9568f15bd70d3133234bdd2e5167841ac68e10d82941 |
|
MD5 | ee3d5e202d31d095fef86d8c7fc42e8a |
|
BLAKE2b-256 | 04febdc8fdf326139d5b6ab070f9dca7ad730c3b0a0e6bba8f0594e2d945b33f |