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.16.tar.gz (18.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.0.16-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.16-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.16-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.16-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.16.tar.gz.

File metadata

  • Download URL: reddit_decider-1.0.16.tar.gz
  • Upload date:
  • Size: 18.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.0.16.tar.gz
Algorithm Hash digest
SHA256 0f8e6815c9f7b7a50f22755e8709f6f32e880064c1c41251617dd680e3fd6a3d
MD5 e9927d49cc684a7e45b9c0bfe5ac0fdd
BLAKE2b-256 e5d26beabc7ae767c5ed6f36044253fae259f1818784c0e6e57d95074bc6e6bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.0.16-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.16-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 052f8b26c0084e52c69965e673b46ce18a25ef6a0420beb8d9ec1548f8ad76cb
MD5 65636c86b93df78c899e1bbc059918e0
BLAKE2b-256 657aa4e12b76471d6bc9ccbf3f7cb8b7b7f23eb3ecf0efe7d3b1bed00d39e9b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.0.16-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.16-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a7125b14458eb4d734d1b3d6e45ca29b748ddf901d2977861b30de812671f882
MD5 66ae16a719f32c673efec8b27f9462a1
BLAKE2b-256 7a51bb211453a97ef19e6ccc6a7ff2ca2ceb9d243f049f0a3725b317c3062347

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.0.16-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.16-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f6c23f6785082fb3d6c9455af7453060a22e570ad7628faf8590dd35beb837e9
MD5 841d532c9f4694e69b44fa7766ef6458
BLAKE2b-256 8a613676766e0d7d8fd9dd8c5add7cdef99cfea9ffc2afa28049fd0af81336f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.0.16-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.16-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eb6d51248ed8a07496bb4a50807dde9fe883694d82b6b082885b9c6beca60979
MD5 5fb417235da9b4c7fc9fc3fe5d0d8518
BLAKE2b-256 cf5735f3467ef429fa86aff17a7d63396b845715c237e46eef2c41e2a5519ff7

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