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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.7mmanylinux: glibc 2.28+ x86-64

File details

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

File metadata

  • Download URL: reddit_decider-1.2.5.tar.gz
  • Upload date:
  • Size: 39.2 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.5.tar.gz
Algorithm Hash digest
SHA256 0b66e59d3ebd19d13aa490827b8b328140acccdb68d3c409020a57207289a9be
MD5 8f33d71e11553da71352f98eaaf72a20
BLAKE2b-256 3cfa284491c1aa2baf76540d900a2252f6f4442306da57c5d5821be6542f6ec1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.2.5-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.5-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5189501dd66f066aa1c44526ac182c2701c8ab8fb5279c391e3fd50f9c4f3ce3
MD5 aece92f89a514a554316707abe863543
BLAKE2b-256 22bab6bf50ad318b8256ee39ceb377cf8a575718ac0e3d71dbf858f61bc0a696

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.2.5-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.5-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 363d74e1491453776a7783f4778c00ce65744b05f1422b852aa4295fed9c9a42
MD5 298bb1161d929b7ea69ef3f3a9889b82
BLAKE2b-256 1bfa29f9e8f218e063481bd6558b0726e9a891b4b3b4a446bd49760861bb7b38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.2.5-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.5-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 91b114ef9aa448b520dd2819f24b83aa245d549a85cc23a39ac93f88e078fea0
MD5 649e0c12d02534fa54c5e18f05812a8e
BLAKE2b-256 1b384515b40d9e477e54c5cf2ae3a9823bc9194a36aae770b47fa1e385113fab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.2.5-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.5-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8ade061ed0b46dd8762c7e7a4e9057c40806e229974b6d684fc7e065e8c4f011
MD5 b75c239e40889dc94ade26429258e096
BLAKE2b-256 1c0e53cf6c711ce6d9a5da741b4b41dd4455c5de1967e269c018254ee88d2955

See more details on using hashes here.

Supported by

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