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.10.tar.gz
(22.5 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.10-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a582e1c4cc7914501f6ca2624b84821cb63b592c5f68e184cc9b3f8448f51b3c |
|
MD5 | c06cdbf5aa7c631445c1d9a704bc75ca |
|
BLAKE2b-256 | 3394f5b1e6101991a90d2affc63c8a64f035017feeed92c467e2deb5adef2b80 |
Close
Hashes for reddit_decider-1.1.10-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1107b0c93d04aca8111dab1c616bf1f0f6337eb8feb7a612b16a444e27fa0c20 |
|
MD5 | b0d7613e981e23ee9733831ca3756bc7 |
|
BLAKE2b-256 | f4f41d01bd60f3bd3ab1af73d8b8103c5fef00a215404a0bdbb8a0c904e740e5 |
Close
Hashes for reddit_decider-1.1.10-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb638f6d3d75f445d9b24cf451ebac9e5e85e5d0ac78cf8e8c407ccff6ed3294 |
|
MD5 | cf9b294a4a742706a398ada53d1067a1 |
|
BLAKE2b-256 | d2be4601692acefc71a94774248798ca7ff1181e1f55326686839949306cc88c |
Close
Hashes for reddit_decider-1.1.10-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2323b2c0c6f491cbcd50c5c7649826b7c2abfc43fd667db4ce4f44fc4bed72c0 |
|
MD5 | a107a41551b92d70d4b7ac89a6b8d69b |
|
BLAKE2b-256 | 916458a53b5133d1b50a74532e3b39e629a204a4816945ec60f7d7b84a857fa2 |