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.12.tar.gz (41.5 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.12-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.12-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.12-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.12-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.12.tar.gz.

File metadata

  • Download URL: reddit_decider-1.2.12.tar.gz
  • Upload date:
  • Size: 41.5 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.12.tar.gz
Algorithm Hash digest
SHA256 f557695eb53e3b9f43f58a865d07761b85c0c56203f0dd57d6b746380218b005
MD5 11377deb4d130ef8a7e9472e24e8162f
BLAKE2b-256 066c56b4268dc138f299363351f628ca52071b90077e458e204b41d55c6f116b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.2.12-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.12-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 504bc285aedaf74e5271ce9a51fd84925f3d63e4b95f8c7d07e0dbdba109b7d1
MD5 e5406123990b70f6522612f240394078
BLAKE2b-256 e92e716c8eae48a680430aac1eebd6ac52dc60a007ed47596b1a0f4cf54044f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.2.12-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.12-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 285c2a57b73d6ebf14e9c58afa076fe49b4a135649fa0952bb58227480c55a25
MD5 fded7313371c66407f0d3edb791bf748
BLAKE2b-256 aac2e2e149d0aa2e3579f5c2febf95cde1ad7cac4333c9d2da294e3ddcff1299

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.2.12-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.12-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 668cdd8fa6a64e03f265e6c9b61314f691ef94a7369dc5d24d771e021c9558f8
MD5 3116b674e1db50e3dc968a6b5be5a09f
BLAKE2b-256 7367faefb7ee59c92185c0fc9c0b3b9700a8e699a81a59a68e10566d9d4f475d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.2.12-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.12-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fddf8da3f06fbf71acb1fe648e0e6f1e1f4c0b66420a24293571066abab6ed67
MD5 57ba9a1883ae3958d4af870defed874a
BLAKE2b-256 774d675dfaf0075d1b869ba4197e16b85dd27879edcb344604774d5f95fcf1f3

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