# 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
[Autoscale.app]: https://autoscale.app
[Django]: https://www.djangoproject.com
[Flask]: https://palletsprojects.com/p/flask/
[Celery]: https://docs.celeryq.dev/en/stable/
[RQ]: https://python-rq.org
Raw data
{
"_id": null,
"home_page": "https://autoscale.app",
"name": "autoscale-agent",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<3.12",
"maintainer_email": "",
"keywords": "agent,middleware,autoscale,render,web,worker,queue,job",
"author": "Michael R. van Rooijen",
"author_email": "support@autoscale.app",
"download_url": "https://files.pythonhosted.org/packages/03/f0/2bb0e62a4fcb6a96c1b0236d3868f609f0c7c058893c83d57c12b5cf6c67/autoscale_agent-0.2.1.tar.gz",
"platform": null,
"description": "# Python Agent (Autoscale.app)\n\nProvides [Autoscale.app] with the necessary metrics for autoscaling web and worker processes.\n\n## Installation\n\nInstall the package:\n\n pip install autoscale-agent\n\n## Usage\n\nThis package may be used as a stand-alone agent, or as middleware that integrates with [Django] and [Flask].\n\nInstallation instructions are provided during the autoscaler setup process on [Autoscale.app].\n\n## Related Packages\n\nThe following packages are currently available.\n\n#### Queues (Worker Metric Functions)\n\n| Worker Library | Repository |\n|----------------|------------------------------------------------------|\n| Celery | https://github.com/autoscale-app/python-queue-celery |\n| RQ | https://github.com/autoscale-app/python-queue-rq |\n\nLet us know if your preferred worker library isn't available and we'll see if we can add support.\n\n## Development\n\nPrepare environment:\n\n pip install poetry\n poetry install\n\nBoot the shell:\n\n poetry shell\n\nSee Paver for relevant tasks:\n\n paver --help\n\n## Release\n\n1. Update `pyproject.toml`\n2. Update `autoscale_agent/__init__.py`\n3. Update `CHANGELOG.md`\n4. Create a new git tag (`v1.2.3`)\n5. Push the new git tag\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/autoscale-app/python-agent\n\n[Autoscale.app]: https://autoscale.app\n[Django]: https://www.djangoproject.com\n[Flask]: https://palletsprojects.com/p/flask/\n[Celery]: https://docs.celeryq.dev/en/stable/\n[RQ]: https://python-rq.org\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Provides Autoscale.app with the necessary metrics for autoscaling web and worker processes",
"version": "0.2.1",
"split_keywords": [
"agent",
"middleware",
"autoscale",
"render",
"web",
"worker",
"queue",
"job"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d2f2815dfbe45bba6512242bb59454b0dd0541728e00fd309816aa8af764e4e2",
"md5": "d2d9c75314f2bc6cdb1ba0ee613cd2a7",
"sha256": "0596e9eba37589f47af40650b43251c598a2b5cdfbbf9be7b70028da848803e2"
},
"downloads": -1,
"filename": "autoscale_agent-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d2d9c75314f2bc6cdb1ba0ee613cd2a7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<3.12",
"size": 8976,
"upload_time": "2023-04-28T10:17:13",
"upload_time_iso_8601": "2023-04-28T10:17:13.575709Z",
"url": "https://files.pythonhosted.org/packages/d2/f2/815dfbe45bba6512242bb59454b0dd0541728e00fd309816aa8af764e4e2/autoscale_agent-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "03f02bb0e62a4fcb6a96c1b0236d3868f609f0c7c058893c83d57c12b5cf6c67",
"md5": "16ec925d155df711151beb2b8fdb907f",
"sha256": "63c74535f014354a95b69e23a8be732f169010180aba63fb1f064cb24f913043"
},
"downloads": -1,
"filename": "autoscale_agent-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "16ec925d155df711151beb2b8fdb907f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<3.12",
"size": 6103,
"upload_time": "2023-04-28T10:17:15",
"upload_time_iso_8601": "2023-04-28T10:17:15.296796Z",
"url": "https://files.pythonhosted.org/packages/03/f0/2bb0e62a4fcb6a96c1b0236d3868f609f0c7c058893c83d57c12b5cf6c67/autoscale_agent-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-28 10:17:15",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "autoscale-agent"
}