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.1.21.tar.gz (23.8 kB view details)

Uploaded Source

Built Distributions

reddit_decider-1.1.21-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.1.21-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.1.21-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.1.21-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.1.21.tar.gz.

File metadata

  • Download URL: reddit_decider-1.1.21.tar.gz
  • Upload date:
  • Size: 23.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.1.21.tar.gz
Algorithm Hash digest
SHA256 d64f5cab3ca5597b7a19e527562c7c6cc27db2d72de50693ffa7811adffca4b5
MD5 a021f800d2fde720d07c109fb8cf0be7
BLAKE2b-256 8e3f00c0a6c403b928febb83e6dfa1d95b6076f79d3f1a2b9ba68cf482add91e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.1.21-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.1.21-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e4abd42f20c6febe9025e8c55138e335a10a1fc209835f39dcbc5fdf50accd2e
MD5 847d74d6e2c247e85bb32dedce66ceea
BLAKE2b-256 a82320e373edabe5abfc49d488a7180cb501ad245246a92bea409b96d26fbf56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.1.21-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.1.21-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1d8e7c592b65ab6fc84b9f11c70426c33a24867c256b96de1db1f009b978b220
MD5 87a26c7664417ed508a1ffe29bc73885
BLAKE2b-256 1a33390ec3a0f33432a4afe9d75b349ca2c1fbdb18ce0cbc9d681fe820361307

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.1.21-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.1.21-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 89511f0cb5b4873cfd3be3988c7fed3f91d9358c00d46e6ab3b9f8d863957b22
MD5 a2293db4afb342df3aed435bd765abcc
BLAKE2b-256 009d65b93161855fc3657c53a94df2bc32afe198c31b96cbd3e49c788c716f75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.1.21-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.1.21-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3675bb9c2300dfba9e71ccce214beb5fed265841f7d31dffda2d717adf7b6d11
MD5 125a7ebe42fd5caf49f55414c2cfe884
BLAKE2b-256 3aae33e942ee4e06dee2a8dfdcd9e4f395ea8d58d00b90a5c935065cf2060b32

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