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.8.tar.gz
(22.4 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.8-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67d1098758eec41f7cd06c3d5e3c0af3b4541934b0879862626e2a1341980d6b |
|
MD5 | 4314d79b7b7cbef6655fdc4ab0c38737 |
|
BLAKE2b-256 | d09407a69ae91697dc83773619c05e58c5c717f5bf8d1ac350e90c5fcb121212 |
Close
Hashes for reddit_decider-1.1.8-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c4a13d418e160cc4b8b3a45e674f363e866baebf546aa09a5a57079895064de |
|
MD5 | 144edf39bca011e14ff9360dcd514860 |
|
BLAKE2b-256 | e7751be62ed3f27a8a41a1dcaad16dbbafa4c3ca3f0957994f45b01cfd592d9d |
Close
Hashes for reddit_decider-1.1.8-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cf4e3abaa4c663b3666b04ac447627a0207505cc56b4b38d6e3d3b20089e3a8 |
|
MD5 | f6268b448589a00ef00b115100f8a907 |
|
BLAKE2b-256 | 51732faf5e6c6786491540442492964bcd199b461388eeb6fb4f3d7dd2577dbb |
Close
Hashes for reddit_decider-1.1.8-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11a668480815f4df9b4ad3d47cc85ba11ada08820739ba3dcebbc5f11db449a7 |
|
MD5 | d0a5554f8eeffaeedaf7c699841e2a5e |
|
BLAKE2b-256 | 723cf4fdcd79d4d3a6ba7f01921d70a2d8db8cfbfc0f8fdf2da930bc709653d5 |