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.6.tar.gz
(22.1 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.6-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3ad6d0fdb70d9a215c8df0dc335279086dd435c4aee5daf9cd614decb29b011 |
|
MD5 | 171a0f8e2c401b2bfeae1480eefb9a93 |
|
BLAKE2b-256 | 0cb847def6d635ef0033a92fd732a0d4b966ed618fc6b425fcbd55d8dfb9d8c4 |
Close
Hashes for reddit_decider-1.1.6-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d17415a4e94ffbe12f3c78c4480c5aaee78d4218a4b4a67af3d4fc3990927bd9 |
|
MD5 | 0f40493f2c365d78dc44f33a924466f3 |
|
BLAKE2b-256 | 789188a6d93fac371d64705eac8690f97658c63c306c3fe66ec68987d52301fc |
Close
Hashes for reddit_decider-1.1.6-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e918e72bd88f5243db0023ff8633f885e45a594b591a897289f70572487ac9ae |
|
MD5 | 795da009ba1b2d06d864583767534755 |
|
BLAKE2b-256 | c46704315f563a582bbf4f2ce3981bfbce30db0dc176596467ff44510fe66a2c |
Close
Hashes for reddit_decider-1.1.6-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f722b1fdd4df12cae8e3994017c96ac2d1c31b699b342112d21fa30a3859c6a2 |
|
MD5 | 122539dff77f70f28ec0cb4f15682cb0 |
|
BLAKE2b-256 | 28bc4961b0ad1251fd1a294a607f98616e8773adbf34ed4e549dad6430cfa88b |