Skip to main content

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

reddit_decider-1.2.3.tar.gz (29.8 kB view details)

Uploaded Source

Built Distributions

reddit_decider-1.2.3-cp310-cp310-manylinux_2_28_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

reddit_decider-1.2.3-cp39-cp39-manylinux_2_28_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

reddit_decider-1.2.3-cp38-cp38-manylinux_2_28_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

reddit_decider-1.2.3-cp37-cp37m-manylinux_2_28_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.28+ x86-64

File details

Details for the file reddit_decider-1.2.3.tar.gz.

File metadata

  • Download URL: reddit_decider-1.2.3.tar.gz
  • Upload date:
  • Size: 29.8 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

Hashes for reddit_decider-1.2.3.tar.gz
Algorithm Hash digest
SHA256 b16d9fa6235c153f77d1e4b1ad466485c185d08ba7f3042b716edb19b87d6e90
MD5 9e3ffc962fde1dc5bcb0c66cbfc8e138
BLAKE2b-256 7574584ba8bc3a65aa3c4ef3b1149d292e1583ddf675fa7e88a20028e7783323

See more details on using hashes here.

File details

Details for the file reddit_decider-1.2.3-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: reddit_decider-1.2.3-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

Hashes for reddit_decider-1.2.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a72db4c3818874678cbe92ad54019ac1aa5a9321bb528a26902caf43cb273bb3
MD5 4424b7839b095e9b01949d589310e118
BLAKE2b-256 77509da5864df271c4319bf8752bb6fe6b043b6af0a78259f7988c7734b17d5f

See more details on using hashes here.

File details

Details for the file reddit_decider-1.2.3-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: reddit_decider-1.2.3-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

Hashes for reddit_decider-1.2.3-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 500225f4c6d9aa9576b6aa275dd1f9b41f64a08d271c4c02a99e7b18eef30337
MD5 3e9db8cae7f49d4a090b38e85693d8bd
BLAKE2b-256 30c6e86adbdf682de3475a18c40159fe150dd7f94222926593667cbbf1070256

See more details on using hashes here.

File details

Details for the file reddit_decider-1.2.3-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: reddit_decider-1.2.3-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

Hashes for reddit_decider-1.2.3-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 440f6b21c2457929108fe6ec85907b40315de7bae847be6d09e36148f582e547
MD5 cd9fe47fcdb5439a60c6fa1f249395ce
BLAKE2b-256 8ce8076ea43e3af5ee09e34748916a015e6e487b3231699a540da0811f9de451

See more details on using hashes here.

File details

Details for the file reddit_decider-1.2.3-cp37-cp37m-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: reddit_decider-1.2.3-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

Hashes for reddit_decider-1.2.3-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 622dec9dbc2d456362d5083f02d713e2e0104d3b2754969d39ab11bd5a1dfc9d
MD5 9ca99a5abff01c7cf41c36e76c1fa2f3
BLAKE2b-256 8a582a577e4db25181729aad857e90a6ff2819827d57e8d2c3f087735828f8de

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page