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

Uploaded Source

Built Distributions

reddit_decider-1.2.18-cp310-cp310-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

reddit_decider-1.2.18-cp39-cp39-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

reddit_decider-1.2.18-cp38-cp38-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

reddit_decider-1.2.18-cp37-cp37m-manylinux_2_28_x86_64.whl (1.3 MB view details)

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

File details

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

File metadata

  • Download URL: reddit_decider-1.2.18.tar.gz
  • Upload date:
  • Size: 42.4 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.18.tar.gz
Algorithm Hash digest
SHA256 22ff1434726a421a661047e72f1384f2e3ae43342022d53c86574067261d36fa
MD5 bed158b7e26a52d40ac9b9dc8083d965
BLAKE2b-256 5d70665f2207e764ea2a08add01a730ff7022fe989852df6ae1780b1c56ef472

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.2.18-cp310-cp310-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 1.3 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.18-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f22d4908132e9c147b402a4ade2c2ca1480b78c9ac5634bb8138c1c7e2e080e6
MD5 57cd58862747a20f38e51711efaf3ad1
BLAKE2b-256 344839f902e5adbc1ee7cd3c8826197bfdb841389a0925f05f492d767fc0a445

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.2.18-cp39-cp39-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 1.3 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.18-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 391b5d9e681b290e36f640a94d0ad313ba8637e4f111c60a79893945bf4f23ef
MD5 31c406761d5161df5636c59ec1a96d1e
BLAKE2b-256 1aaea09493d7651491788bfb21dbfa6316d9a03427aa124dccc68e09d1cce460

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.2.18-cp38-cp38-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 1.3 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.18-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2d343456e761ce89c9cb923c769767a478c277423757ad860de155267cfa4649
MD5 2f4fb0586a77f88a6bd8fb0e78dc195e
BLAKE2b-256 714c55976d970438380b2fb3668e52760d8f6ef3c65cef4d6aab6d9d1da175fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.2.18-cp37-cp37m-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 1.3 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.18-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6b4fde3fbb6f9e34686b9a50dab1209135dfc8baabef5b6837c086d3600f052c
MD5 b307a8fd4d644854227402ddb933e9f1
BLAKE2b-256 a36f81ba986bb4a2c07b9f77f35acb0d256b0394d1b782c4893a7a7ea8116340

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