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.16.tar.gz
(18.5 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.0.16-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 052f8b26c0084e52c69965e673b46ce18a25ef6a0420beb8d9ec1548f8ad76cb |
|
MD5 | 65636c86b93df78c899e1bbc059918e0 |
|
BLAKE2b-256 | 657aa4e12b76471d6bc9ccbf3f7cb8b7b7f23eb3ecf0efe7d3b1bed00d39e9b1 |
Close
Hashes for reddit_decider-1.0.16-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7125b14458eb4d734d1b3d6e45ca29b748ddf901d2977861b30de812671f882 |
|
MD5 | 66ae16a719f32c673efec8b27f9462a1 |
|
BLAKE2b-256 | 7a51bb211453a97ef19e6ccc6a7ff2ca2ceb9d243f049f0a3725b317c3062347 |
Close
Hashes for reddit_decider-1.0.16-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6c23f6785082fb3d6c9455af7453060a22e570ad7628faf8590dd35beb837e9 |
|
MD5 | 841d532c9f4694e69b44fa7766ef6458 |
|
BLAKE2b-256 | 8a613676766e0d7d8fd9dd8c5add7cdef99cfea9ffc2afa28049fd0af81336f2 |
Close
Hashes for reddit_decider-1.0.16-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb6d51248ed8a07496bb4a50807dde9fe883694d82b6b082885b9c6beca60979 |
|
MD5 | 5fb417235da9b4c7fc9fc3fe5d0d8518 |
|
BLAKE2b-256 | cf5735f3467ef429fa86aff17a7d63396b845715c237e46eef2c41e2a5519ff7 |