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.1.24.tar.gz
.
File metadata
- Download URL: reddit_decider-1.1.24.tar.gz
- Upload date:
- Size: 24.9 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 | eefcfe1450baa073b920eee3a016e1e45e00faf34adee5c7697c5ebab22085ca |
|
MD5 | 121392720723b84d088341e3bb15a72c |
|
BLAKE2b-256 | 8d14490407478f1f5a73582adfdf7cab8c24b78320fc4ddc3022ecca6ba25331 |
File details
Details for the file reddit_decider-1.1.24-cp310-cp310-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: reddit_decider-1.1.24-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 | cfc0f966831dc428247b99c921509a975ec3ed1e987e2941a4ecc9c104e7e1fb |
|
MD5 | 6d10e200f255dc60625ec3b7f5d95a5d |
|
BLAKE2b-256 | a998d9ec93f467f6ad3b62106645c51d304f7321dc927885343d7394e6ae0d59 |
File details
Details for the file reddit_decider-1.1.24-cp39-cp39-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: reddit_decider-1.1.24-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 | 6408fa8a11effd9de0629717407ba9d53a7eb7b74195fcb14469baa81a537cec |
|
MD5 | a0a54646c99c2c49f693ea173fbeea4c |
|
BLAKE2b-256 | 1105ba352dbfaf05b298b6cd8e31df08b3a47887334ea0b3304c986b16c3520b |
File details
Details for the file reddit_decider-1.1.24-cp38-cp38-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: reddit_decider-1.1.24-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 | e6d0cc04db43a739b504570aa18a58a18d358595e0b4ab70e2bafe01c57d3bb9 |
|
MD5 | 48e4b0aa3c57fb47a7a48fb700a0ac38 |
|
BLAKE2b-256 | 7e325c731c36a696c5d6c82756fd4fbd0c6600e2836c15efc9b74b58169c83da |
File details
Details for the file reddit_decider-1.1.24-cp37-cp37m-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: reddit_decider-1.1.24-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 | 2dc7f0108cf6fea50f321d0378f7a8acaad48193db2ec59e12ea454a5ee41734 |
|
MD5 | 0b998dc97664f7bfb8abcffb7aa4b37d |
|
BLAKE2b-256 | 1b93f84e9ed8760af25f61d650fa6b6cf90986c487e1c22261f2c745d187b798 |