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 is automatically published on merge to master to https://pypi.org/project/reddit-decider/ via drone pipeline.
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
Built Distributions
File details
Details for the file reddit_decider-1.2.15.tar.gz
.
File metadata
- Download URL: reddit_decider-1.2.15.tar.gz
- Upload date:
- Size: 42.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d42de7d1a5c1cc0807e991d21a3976beb3ef9d17278fcce3deb6e2ee16ddf2e2 |
|
MD5 | b3d55061ceb2869f7b97d3fe0384905e |
|
BLAKE2b-256 | 0b5a6555df42120f063d41fdcd075f34ab469a8c029b532442c03e60910d8f62 |
File details
Details for the file reddit_decider-1.2.15-cp310-cp310-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: reddit_decider-1.2.15-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b17554066043ade7ad5f1ef567738d858b368cc83d29ba61073e9069383e23a6 |
|
MD5 | 62267fa269bd51c70d7dbb65f36be436 |
|
BLAKE2b-256 | 9b8723feb1de17f3b8b4110c81d356853929c951a94dacbe77ef5ffe99b156ab |
File details
Details for the file reddit_decider-1.2.15-cp39-cp39-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: reddit_decider-1.2.15-cp39-cp39-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd6cc80a62e0698fef7edcd162bfc97a5fcb75527cae6e21c2a2245da058b9cd |
|
MD5 | 8e9b5e72798a87440fbd2eb5bc3d4393 |
|
BLAKE2b-256 | cda575d4ed9ba1fe22e20608e37403b71815df6efbe5437f28e8c37c4665a2ff |
File details
Details for the file reddit_decider-1.2.15-cp38-cp38-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: reddit_decider-1.2.15-cp38-cp38-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.8, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 169a6a377199611dd152d9dab2e60f6a16866914733dfb322b67db71be96dd07 |
|
MD5 | f525d467d3920a1656b165605c4b7153 |
|
BLAKE2b-256 | b487803304c0c18bf420cdc351b231caaae82960207ca59a7d3ab38e1fede7d5 |
File details
Details for the file reddit_decider-1.2.15-cp37-cp37m-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: reddit_decider-1.2.15-cp37-cp37m-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.7m, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 688536590a47d3f045097e810686b527e6eab57d3735b9bde1d301f0ccec4e20 |
|
MD5 | 5f8cf4234bae35fde72dabf79beba343 |
|
BLAKE2b-256 | 4a9781fbd25fdead9a24cdb11958b8c5108f0737a370d637651e00ca5c4baa1e |