Skip to main content

HireFire integration library for Python applications

Project description

HireFire Integration Library for Python Applications

This library integrates Python applications with HireFire's Dyno Managers (Heroku Dyno Autoscalers). Instructions specific to supported web frameworks and worker libraries are provided during the setup process.

Supported web frameworks:

  • Django
  • Flask
  • Quart
  • FastAPI
  • Starlette

Supported worker libraries:

  • Celery
  • RQ

Since 2011, over 1,000 companies have trusted HireFire to autoscale more than 5,000 applications hosted on Heroku, managing over 10,000 web and worker dynos.

HireFire is distinguished by its support for both web and worker dynos, extending autoscaling capabilities to Standard-tier dynos. It provides fine-grained control over scaling behavior and improves scaling accuracy by monitoring more reliable metrics at the application level. These metrics include request queue time (web), job queue latency (worker), and job queue size (worker), which contribute to making more effective scaling decisions.

For more information, visit our home page.


Development

# Initial setup (installs pyenv, Python 3.9-3.12, poetry, redis, rabbitmq)
bin/setup

# Add to your shell profile (~/.zshrc, ~/.bashrc, etc.), then restart shell
export PATH="$HOME/.pyenv/shims:$PATH"

# Run tests
poetry run tox -e py312-core   # Quick test on Python 3.12
poetry run tox                 # Full test suite

# Code formatting and linting
poetry run paver format        # Format code (autoflake, isort, black)
poetry run paver check         # Check formatting without applying
poetry run paver test          # Run tests with coverage
poetry run paver doc           # Build documentation
poetry run paver               # Default: format + test

Release

  1. Update the version property in pyproject.toml.
  2. Ensure that CHANGELOG.md is up-to-date.
  3. Commit changes with git commit.
  4. Create a git tag matching the new version (e.g., v1.0.0).
  5. Push the new git tag. Continuous Integration will handle the distribution process.

License

This library is licensed under the terms of the MIT license.

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

hirefire_resource-1.0.4.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

hirefire_resource-1.0.4-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file hirefire_resource-1.0.4.tar.gz.

File metadata

  • Download URL: hirefire_resource-1.0.4.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hirefire_resource-1.0.4.tar.gz
Algorithm Hash digest
SHA256 58a1b263aab84d52fa608546244fa9fa6b3c76631232de3c674f76b30a99a4e1
MD5 4e38e96824b67359c17f4609c42182f8
BLAKE2b-256 859f35a3b19bec420bd2545036b5702f89fa9de2a8db627a68d7989f562343fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for hirefire_resource-1.0.4.tar.gz:

Publisher: main.yml on hirefire/hirefire-resource-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hirefire_resource-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for hirefire_resource-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 79b5a8952654bbc11f484e7c381b5b3eb1feae44122af27b0f527e0c97e56a1f
MD5 1038c361ae8bc7265ef0d44b851c6ac3
BLAKE2b-256 d1337ac098e1b8c55abd8b6338174affc0e7a853ff01c16b6e3e506b0fd94922

See more details on using hashes here.

Provenance

The following attestation bundles were made for hirefire_resource-1.0.4-py3-none-any.whl:

Publisher: main.yml on hirefire/hirefire-resource-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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