Skip to main content

Python Agent (Autoscale.app)

Provides Autoscale.app with the necessary metrics for autoscaling web and worker processes.

Installation

Install the package:

pip install autoscale-agent

Usage

This package may be used as a stand-alone agent, or as middleware that integrates with Django and Flask.

Installation instructions are provided during the autoscaler setup process on Autoscale.app.

Related Packages

The following packages are currently available.

Queues (Worker Metric Functions)

Worker Library Repository
Celery https://github.com/autoscale-app/python-queue-celery
RQ https://github.com/autoscale-app/python-queue-rq

Let us know if your preferred worker library isn't available and we'll see if we can add support.

Development

Prepare environment:

pip install poetry
poetry install

Boot the shell:

poetry shell

See Paver for relevant tasks:

paver --help

Release

  1. Update pyproject.toml
  2. Update autoscale_agent/__init__.py
  3. Update CHANGELOG.md
  4. Create a new git tag (v1.2.3)
  5. Push the new git tag

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/autoscale-app/python-agent

Release files for autoscale-agent 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autoscale-agent 0.2.1
File Size Uploaded
autoscale_agent-0.2.1.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autoscale-agent 0.2.1
File Interpreter ABI Platform
autoscale_agent-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / autoscale_agent-0.2.1.tar.gz

Download URL autoscale_agent-0.2.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
63c74535f014354a95b69e23a8be732f169010180aba63fb1f064cb24f913043
BLAKE2b-256 checksum
How to use checksums
03f02bb0e62a4fcb6a96c1b0236d3868f609f0c7c058893c83d57c12b5cf6c67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / autoscale_agent-0.2.1-py3-none-any.whl

Download URL autoscale_agent-0.2.1-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0596e9eba37589f47af40650b43251c598a2b5cdfbbf9be7b70028da848803e2
BLAKE2b-256 checksum
How to use checksums
d2f2815dfbe45bba6512242bb59454b0dd0541728e00fd309816aa8af764e4e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page