Skip to main content

Gum background jobs SDK

Project description

Gum Python SDK

pip install usegum
import gum

openai_limit = gum.rate_limit("60/m")

@gum.job(retries=5, timeout="5m", memory="1gb", rate_limit=openai_limit, concurrency=5, key="customer_id")
def sync_customer(customer_id: str):
    ...

sync_customer.enqueue(customer_id="cus_123")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

usegum-0.1.0.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

usegum-0.1.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file usegum-0.1.0.tar.gz.

File metadata

  • Download URL: usegum-0.1.0.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for usegum-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e8f3ed1759a780f1c42cb969cdadaf7407f6eef6251efa9f15dfe022448a4540
MD5 1f7fcdd138a752311bafa06a6bc2c9be
BLAKE2b-256 f8fa49c51a834a335dc0eabaea73c97e4f16038d3f89392fa7a3583bc54d6da0

See more details on using hashes here.

File details

Details for the file usegum-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: usegum-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for usegum-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62cc13ed71054eb8343be21f9cd107dc00413f00be9d7d2f10545b45d1277dc4
MD5 87e1ee73c23fba443c7bded18f862441
BLAKE2b-256 dae4987099f37595f67bca8bfc486f7aa1a49ef75d30c77a0f97de21b1454cee

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