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.17.tar.gz
(24.0 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.17-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af72e35612751e0752c521e48fa69fb8ad5a6f8e167962680cabe849b0e32022 |
|
MD5 | 9c356f4fa194137321f3ce205f5fdd60 |
|
BLAKE2b-256 | ec8eeb051185658d4db6bd066ac4d2061086d18c4932ad087ecd9ab6f8aabe90 |
Close
Hashes for reddit_decider-1.1.17-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a56bdee0bd4144cf97d9849183db96c7e84e314817b249b229d3fd3437ed2b40 |
|
MD5 | 92cabb2a934e4d66027b54d188f6f123 |
|
BLAKE2b-256 | 98b297ebabdd0c77a4fd3da0850033452ee4a5ff5dd9b3835d0f14515d33acd6 |
Close
Hashes for reddit_decider-1.1.17-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a55a24a52ef74d061da6d6a85c0a9cd04d26c58c5c6462fbc2bf4074a72241d |
|
MD5 | 562ee219e05e7686d4cae5f62a812d8b |
|
BLAKE2b-256 | ceded58a2d11e8de1486e66d280f6119b3e967e42a79cbfa50f3374ebff8e2f6 |
Close
Hashes for reddit_decider-1.1.17-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2b380e8430345f584eeedde9e2ceb77773294d9bde2d152ae1f0b2c4a866542 |
|
MD5 | f6aed0c8703b3fc4d5aea4768a100c53 |
|
BLAKE2b-256 | c2c34af9fba2fa87899389a84ce951d645a417ec44fc74c852385c93f505282a |