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.9.tar.gz
(22.5 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.9-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd9e6af399a400a399fc3dd8cc08744139de82d077177a8595247078e90bf363 |
|
MD5 | ca97badb729263d0bf49147a0e5caf99 |
|
BLAKE2b-256 | 5170732577deafc76f63a50151a51ca15dfb6c4c424942851c2ef7c0f8795bc5 |
Close
Hashes for reddit_decider-1.1.9-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7600d1a44871130b7127f87b42d63b7e67c50b90c9a8fda6d0496ce0a9dc9244 |
|
MD5 | b377dbae909c022163efd31c1683d533 |
|
BLAKE2b-256 | 4a48a4f77fefa749622089b43c96e3f9cc339a5ad47aff51100940be74a4bf56 |
Close
Hashes for reddit_decider-1.1.9-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0047139b4b64ed51467080273434c6c56028dc76c88d0caba9c7ff360d886a98 |
|
MD5 | 84554b3bcba99c01efcab843d6ede1c7 |
|
BLAKE2b-256 | f42e6e2472e0003e34114db0992dbd16261d67942f7a329d82aac7097906eeb4 |
Close
Hashes for reddit_decider-1.1.9-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 683c9cfd15780afaddf30a6c5e86b89072faa5f0e07c07e0522c9ae03ed6d3c0 |
|
MD5 | 91658643b906079adbf7cb397d8c4494 |
|
BLAKE2b-256 | c494ef715e79e288c660525c735480116c229dd1e16251770ccc92a2bdf18859 |