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.19.tar.gz (21.0 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.19-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.19-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.19-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.19-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.19.tar.gz.

File metadata

  • Download URL: reddit_decider-1.0.19.tar.gz
  • Upload date:
  • Size: 21.0 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.19.tar.gz
Algorithm Hash digest
SHA256 7f18e2794f5d6f4b53d2d219aa649bec17007cccb5cb139469b704fd23883da5
MD5 0e05f2c0eb38d0a55d2eff552c87c6d4
BLAKE2b-256 625ca8875f3d0118074f9f3f82cba4eec9254bea727a5c0aaa74ef267a4789fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.0.19-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.19-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9311ad14c263c5e3744891df5f97c687c9b38baa7a0c62198bc74983ed365b20
MD5 e9d32fbb0d4f8ed3c273fc6f25a2eb86
BLAKE2b-256 1fde65cba0c3e3791855f67f097a4e4eaff255125d3072a0924428439d9c3c09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.0.19-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.19-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f77beb70abc89154837ea7322e25e01c373ead75097c2ce3beb6dc956a2518b4
MD5 522842b0ce97094dbaf22f5a0468e469
BLAKE2b-256 050f400aa12ceb1423036d28f1b2ee2c2debb6a9615541b8a4c29242f4ec1e38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.0.19-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.19-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 102a4845475aacea1cf7c145b63f49f79aebbafe9c50d67608ed8f049cc505c7
MD5 f61875deadd2104ea7b0cf55043728b8
BLAKE2b-256 04bffc5076bc504547309e9cdce6a3570c6aeee12e2ff2e6c8b0afd903d04cf7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reddit_decider-1.0.19-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.19-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0b5853ad49136f52c2d88f2f8f33136c3b9d7c7c2cd6acd3067fed2970d9f3c3
MD5 dfa4f7a2f3905f5d18a5f7f8de286692
BLAKE2b-256 f1600d750a9590ab94f227871223cc6839de3563a4f64373e2092da4a474a542

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