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.0.19.tar.gz
(21.0 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.0.19-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9311ad14c263c5e3744891df5f97c687c9b38baa7a0c62198bc74983ed365b20 |
|
MD5 | e9d32fbb0d4f8ed3c273fc6f25a2eb86 |
|
BLAKE2b-256 | 1fde65cba0c3e3791855f67f097a4e4eaff255125d3072a0924428439d9c3c09 |
Close
Hashes for reddit_decider-1.0.19-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f77beb70abc89154837ea7322e25e01c373ead75097c2ce3beb6dc956a2518b4 |
|
MD5 | 522842b0ce97094dbaf22f5a0468e469 |
|
BLAKE2b-256 | 050f400aa12ceb1423036d28f1b2ee2c2debb6a9615541b8a4c29242f4ec1e38 |
Close
Hashes for reddit_decider-1.0.19-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 102a4845475aacea1cf7c145b63f49f79aebbafe9c50d67608ed8f049cc505c7 |
|
MD5 | f61875deadd2104ea7b0cf55043728b8 |
|
BLAKE2b-256 | 04bffc5076bc504547309e9cdce6a3570c6aeee12e2ff2e6c8b0afd903d04cf7 |
Close
Hashes for reddit_decider-1.0.19-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b5853ad49136f52c2d88f2f8f33136c3b9d7c7c2cd6acd3067fed2970d9f3c3 |
|
MD5 | dfa4f7a2f3905f5d18a5f7f8de286692 |
|
BLAKE2b-256 | f1600d750a9590ab94f227871223cc6839de3563a4f64373e2092da4a474a542 |