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 in test.pypi.org: https://test.pypi.org/project/decider-py

Upload to test.pypi via: maturin publish -r https://test.pypi.org/legacy/ --username mattknox --password “”

Download from test.pypi via: pip3 install --index-url https://test.pypi.org/simple/ decider-py

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.0.18.tar.gz (18.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.0.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.0.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.0.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.0.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.0.18.tar.gz.

File metadata

  • Download URL: reddit_decider-1.0.18.tar.gz
  • Upload date:
  • Size: 18.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.0.18.tar.gz
Algorithm Hash digest
SHA256 0e7f479d35295ab5a06b9582c277cea0a35c6f0b4a67816a2cf541ec25559ae1
MD5 6978a1f42d2b91f527b97c4bf4ff5943
BLAKE2b-256 ab783fc07d7dfd108152cc4e3f83461f053cda602d22693f4ed59d775e3d4386

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.0.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.0.18-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b9a4e5090ddc38d4ad2544d5dbd82709177a4ba1845e00c55688d1d62cde35b0
MD5 1ae6b7e1cbf487ed77c879cb96338454
BLAKE2b-256 6587e2459c76907e22736c88eaaad5e0cc8939f0ec7cfcafd7b6c80c72aba5a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.0.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.0.18-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9517aa2e157e2b32bb6523d08cc1004224486976287594947c61a3fec8c5e6bd
MD5 840f37c10b33a03eb2de16c7ab38b249
BLAKE2b-256 18918a48e1bb8ab2100b63d9394525a76b4a67922545575ac26031a1d8e85597

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.0.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.0.18-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 44a2175fd3d3387a8515c628d9aca0eca4993e8c90052be1ba6e5dff9f90bb8d
MD5 38ce97def3cb9313c90ffc684dc15084
BLAKE2b-256 e8c1b8dd0e3c0490c37d3a3be1c84aa3c089308310bcb70e1b3ffc5eab18a09c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.0.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.0.18-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 042e538d66a5fb8d902d4c77df3bc425f7c4521e1c969e50b96d88424c4fb88c
MD5 3c28159b97ba05d1e8bc3aa6c2da7c96
BLAKE2b-256 957962cc6730517b5c632109905a7588f700c9971d2e1d005a1d6f2c02fbfdf6

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