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 is automatically published on merge to master to https://pypi.org/project/reddit-decider/ via drone pipeline.
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.18.tar.gz
(23.9 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.18-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6c041d51fa03ff6d2475fd2f548aee2eaeee1c1b3f8f1a1e5a4ed4842b5b841 |
|
MD5 | 319e2aed97af78ea3dbaead4c51971cc |
|
BLAKE2b-256 | fdc0b0b08eea680e49331f416162222b4507b98b4c2c6203900644d07980360f |
Close
Hashes for reddit_decider-1.1.18-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d21839e93376ca1ff58fedda67faa43ec97aa1a2fcc4af74925ffc6d432b431 |
|
MD5 | 22f8a4e5a8d1e686fea1a37b219667dc |
|
BLAKE2b-256 | a0edf063480631b69d1a16e0869ff5c17019ef2fc07f8b1d40eed673f6194aaa |
Close
Hashes for reddit_decider-1.1.18-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2296c87c9d5b07c9fb98257fb5dcb0c1f0bcfb18188ef6383519aa024beabd4 |
|
MD5 | 2bbe8cdf4da1adef7ec9b436cc453da7 |
|
BLAKE2b-256 | dcafa35489e93faf7f9aa270450486d34b701f14c1f046e254d27c04489dae41 |
Close
Hashes for reddit_decider-1.1.18-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23e601785b3d18ffd8938db88091b0152734386fa1664338b4a697ef4d152272 |
|
MD5 | c59dc738cbdb5bf6b9b6c4a62c8b2222 |
|
BLAKE2b-256 | ffe22223573d1b91f7575e9d7a677b8942b0d57f9911363b7ef8d6829dc017b4 |