A library to collect information from push tasks
Project description
A Python library for collecting information from push tasks, used by release-engineering publishing tools.
Installation
Install the pushcollector
package from PyPI.
pip install pushcollector
Usage Example
from pushcollector import Collector
# Get an instance of a collector; the concrete backend returned
# may differ per execution environment
collector = Collector.get()
# Save a log file
collector.attach_file('pushlog.json', json.dumps(somedata)).result()
# Append to a log file
collector.append_file('pushlog.txt', sometext).result()
# Save some push item(s)
collector.update_push_items(items).result()
Development
Patches may be contributed via pull requests to https://github.com/release-engineering/pushcollector.
All changes must pass the automated test suite, along with various static checks.
The Black code style is enforced. Enabling autoformatting via a pre-commit hook is recommended:
pip install -r requirements-dev.txt
pre-commit install
License
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
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
Built Distribution
File details
Details for the file pushcollector-1.3.0.tar.gz
.
File metadata
- Download URL: pushcollector-1.3.0.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b0754dd86e9d66ec1b19f13b66be6582e5d1b5087a1f1db3778485948fc0f28 |
|
MD5 | 385099a5e778020035cf6d4570722f06 |
|
BLAKE2b-256 | 675b05f76d739e00e4e35ddf231a44eb15e2c9ebde4934eaa88469aa7c5fc61a |
File details
Details for the file pushcollector-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: pushcollector-1.3.0-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18281fcd4247ca8b668c25348bbc2f9cc032912cecc7037824a74ad8adcbb1c3 |
|
MD5 | 71a58ede99ba901941797672860d62fe |
|
BLAKE2b-256 | 9df124dbfe63b2f13f77574e8a58912237c9d41acb6c8f2e9051bbd2647fe795 |