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.1.tar.gz
(21.2 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f43d06164c5fbc240d8aeeaff44e25e96ad8d15f804136a4278284d467bdde4 |
|
MD5 | 076f74a8e2041f17f0d6c7e4ee4778a7 |
|
BLAKE2b-256 | d8a444f66aa3a78f43b909e2928873be9418a0cea8da9d06d6814676717494b4 |
Close
Hashes for reddit_decider-1.1.1-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 457c969779ee2176bdc3e90c82320c9fafde61be25205ae5b207c5211bbd6035 |
|
MD5 | d2989511a09fe93c1acd8e3e013e37b6 |
|
BLAKE2b-256 | 9a78feb6cec8efb918c2fc5fb0d79f228c23538d2f9216251280205ad1cc718e |
Close
Hashes for reddit_decider-1.1.1-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1b5b2ba7cb2edbffc15bb9940006bdbfef64228895f95a15f39901bd9fd0dd5 |
|
MD5 | c352311c5436cbce3f7a6ac3d8dad183 |
|
BLAKE2b-256 | 317bd08d37419cb6a102a4a5595185199ae3d71f91a55d2823dd989f583abb53 |
Close
Hashes for reddit_decider-1.1.1-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd1ec8ef683f845980179b2683de7f4b237d91fde6b81bd045a1e62e452c69ad |
|
MD5 | 461cb4393bf53c44b819eba313e7ddcd |
|
BLAKE2b-256 | 5069c9a60b2d1f4e567b96db7f10e12633e4a46209edd82805fbf712fec7cb17 |