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.18.tar.gz
(18.9 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.0.18-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9a4e5090ddc38d4ad2544d5dbd82709177a4ba1845e00c55688d1d62cde35b0 |
|
MD5 | 1ae6b7e1cbf487ed77c879cb96338454 |
|
BLAKE2b-256 | 6587e2459c76907e22736c88eaaad5e0cc8939f0ec7cfcafd7b6c80c72aba5a5 |
Close
Hashes for reddit_decider-1.0.18-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9517aa2e157e2b32bb6523d08cc1004224486976287594947c61a3fec8c5e6bd |
|
MD5 | 840f37c10b33a03eb2de16c7ab38b249 |
|
BLAKE2b-256 | 18918a48e1bb8ab2100b63d9394525a76b4a67922545575ac26031a1d8e85597 |
Close
Hashes for reddit_decider-1.0.18-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44a2175fd3d3387a8515c628d9aca0eca4993e8c90052be1ba6e5dff9f90bb8d |
|
MD5 | 38ce97def3cb9313c90ffc684dc15084 |
|
BLAKE2b-256 | e8c1b8dd0e3c0490c37d3a3be1c84aa3c089308310bcb70e1b3ffc5eab18a09c |
Close
Hashes for reddit_decider-1.0.18-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 042e538d66a5fb8d902d4c77df3bc425f7c4521e1c969e50b96d88424c4fb88c |
|
MD5 | 3c28159b97ba05d1e8bc3aa6c2da7c96 |
|
BLAKE2b-256 | 957962cc6730517b5c632109905a7588f700c9971d2e1d005a1d6f2c02fbfdf6 |