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.18.tar.gz (23.9 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.1.18-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.1.18-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.1.18-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.1.18-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.1.18.tar.gz.

File metadata

  • Download URL: reddit_decider-1.1.18.tar.gz
  • Upload date:
  • Size: 23.9 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.18.tar.gz
Algorithm Hash digest
SHA256 c133cac2afeaf7d52ca8eef8ca09ddaa1bb583c8386fbd63af70453a201e3be3
MD5 49674e41bfc79ef45eacc1facb155341
BLAKE2b-256 d3fe278722a9fe4fe2c59510029bd627a09fdda2cae63928a47ed28fe13e6304

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.1.18-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.18-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a6c041d51fa03ff6d2475fd2f548aee2eaeee1c1b3f8f1a1e5a4ed4842b5b841
MD5 319e2aed97af78ea3dbaead4c51971cc
BLAKE2b-256 fdc0b0b08eea680e49331f416162222b4507b98b4c2c6203900644d07980360f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.1.18-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.18-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4d21839e93376ca1ff58fedda67faa43ec97aa1a2fcc4af74925ffc6d432b431
MD5 22f8a4e5a8d1e686fea1a37b219667dc
BLAKE2b-256 a0edf063480631b69d1a16e0869ff5c17019ef2fc07f8b1d40eed673f6194aaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.1.18-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.18-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c2296c87c9d5b07c9fb98257fb5dcb0c1f0bcfb18188ef6383519aa024beabd4
MD5 2bbe8cdf4da1adef7ec9b436cc453da7
BLAKE2b-256 dcafa35489e93faf7f9aa270450486d34b701f14c1f046e254d27c04489dae41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.1.18-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.18-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 23e601785b3d18ffd8938db88091b0152734386fa1664338b4a697ef4d152272
MD5 c59dc738cbdb5bf6b9b6c4a62c8b2222
BLAKE2b-256 ffe22223573d1b91f7575e9d7a677b8942b0d57f9911363b7ef8d6829dc017b4

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