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.2.tar.gz
(21.7 kB
view hashes)
Built Distributions
Close
Hashes for reddit_decider-1.1.2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9cae782b433801d9943bfcb261678b799fea2906c2b3a0d0cb0c65d9974e3b8 |
|
MD5 | 65787ad13eaf42177ad43d6e906a2d5b |
|
BLAKE2b-256 | e78f62e331039adff8269c1027f6b47de05187106bde189ff4530cf8df76cfff |
Close
Hashes for reddit_decider-1.1.2-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e88e272d63105e7f71c8a063186d6400072dd90ff08b491c04fbaecb98fd1e4 |
|
MD5 | 72cacc27185b7207f43c93cb5b684923 |
|
BLAKE2b-256 | bc34e698e87b3f372c88be27a997f545e4f1704566f1a635003b66943f3b2cf9 |
Close
Hashes for reddit_decider-1.1.2-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eaaf9fc9282c46d0801fe0aeecac98e81ad80bccdf8996cf17ef13f0e50aa0e |
|
MD5 | 06dd3b67288ea344e138e85e69768d65 |
|
BLAKE2b-256 | 7b7912365ef836d6c7f984d271705575cf25421e25d58fa1b1c77d1ab7adacd4 |
Close
Hashes for reddit_decider-1.1.2-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b2035a5fc21c35713476981f01f16799fe916198be8c7103762df13cd8f7ddc |
|
MD5 | 173f2dc3b03aa641b26e209f80e0456f |
|
BLAKE2b-256 | 07af1f88727fcaedede57cc307bd037e1e17c98fdd2fc4ad7f99d59ac1b93ce0 |