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.3.tar.gz
(21.7 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dcc475205ef3e621afd60392f0a6b521711f4ed5f6c10c1f8a4c43c53de38e2 |
|
MD5 | a09401ebfaa1ead87b31488593391201 |
|
BLAKE2b-256 | 4de0f43fe3fc2ac98916c374b45f94c75bf2be15dc90480ad55700a9769cedeb |
Close
Hashes for reddit_decider-1.1.3-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98a923f6b020d2d715ab283f0664d6df163ceeb64a92186984a6f076d092700c |
|
MD5 | 0a6132026a9f803f5eac6bb734dd07d7 |
|
BLAKE2b-256 | a3abbbc82a2c0df9453d85790d67aa026b1bbb2f4738e0ee6d5d2af6ac6e8bcb |
Close
Hashes for reddit_decider-1.1.3-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bea28aa96918374bf1b936dbcb642ead7aadc76912a0c715bcc13bb3cdae3ea2 |
|
MD5 | 6cbc0fb6a2ea7232265b769ed1288d4b |
|
BLAKE2b-256 | 7830770d493cbc99388235d4e199f790f336b5b6e3498e95adbae8b863805400 |
Close
Hashes for reddit_decider-1.1.3-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6243419516debe8e1e53e89c12bf2de79491ef4dd9af1fb2d2aed51b7595cc5c |
|
MD5 | 16377b522f0caac0a79b443b8ac39ba8 |
|
BLAKE2b-256 | f85c383eff81d4059b57294347162fdc79a05a20e2dca682a7d5187e3bac44e3 |