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.12.tar.gz
(22.8 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.12-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bdc090b8c20a6b03fe18682c391934dad425c2ff6dfe2d05d3e0a4890e4ac0e |
|
MD5 | fd9fe9b9566afe6d98a57d40cd2693ae |
|
BLAKE2b-256 | e8489997ae2592e8539fe8b5c8246e26e43dd822b35270c05f74998f60dcc405 |
Close
Hashes for reddit_decider-1.1.12-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9c3651a9dd55665f8d0fc5e9b63f8e2307e5ab8d709616fd3c34d598a0820aa |
|
MD5 | de577cbd997393e40ee9224178f233c4 |
|
BLAKE2b-256 | 1bfa2afbcada7ae936629cde11386368c63d145e05d0500e935dd0db47a5eee2 |
Close
Hashes for reddit_decider-1.1.12-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e393825192fce1ed92d9726bde9d9499244875a755480fb951f91ce855e23e20 |
|
MD5 | b8bf1f820c4870adac1cb38c739b28b6 |
|
BLAKE2b-256 | ddd03f8b943c72c65cdf6b6c7530ae60013742036de20d813bb6bf62868c2d7b |
Close
Hashes for reddit_decider-1.1.12-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92dfce562be0af70e4183fe5a7e3b8baa05596113a54b86071ff3bb08957c3b9 |
|
MD5 | 6a37d0c397692e04f59760404d85904a |
|
BLAKE2b-256 | f3db5fd0bc37200fdefbd157d286985375e0b463b5d6a48cbb207fc8b1309b9d |