# Flower service client
This package is service client for Flower API used to monitor Celery.
## Client usage
```python
# Configure settings.
import service_flower.conf
d = dict(
BASE_URL='https://inspire-qa-worker3-task1.cern.ch/api',
REQUEST_TIMEOUT=30,
HTTP_AUTH_USERNAME='user',
HTTP_AUTH_PASSWORD='pass',
)
service_flower.conf.settings.configure(**d)
# Use the client.
from service_flower.client import FlowerClient
client = FlowerClient()
response = client.get_workers(workername='celery@inspire-qa-worker3-task5.cern.ch')
response.raise_for_result()
queues = response.get_active_queues_names('celery@inspire-qa-worker3-task5.cern.ch')
```
## Development
```bash
# Create a venv and install the requirements:
$ make venv
# Run isort and lint:
$ make isort
$ make lint
# Run all the tests:
$ make test # tox against Python27 and Python36.
$ tox -e py27 # tox against a specific Python version.
$ pytest # pytest against the active venv.
# Run a specific test:
$ make test/tests/test_client.py # tox against Python27 and Python36.
$ tox -e py27 -- tests/test_client.py # tox against a specific Python version.
$ pytest tests/test_client.py # pytest against the active venv.
```
To publish on PyPi, first set the PyPi credentials:
```bash
# Edit .pypirc:
$ cat $HOME/.pypirc
[pypi]
username: myuser
password: mypass
```
```bash
# Edit the version in `setup_gen.py`.
# ... version=pep440_version('1.1.1'),
# Then generate setup.py with:
$ make setup.py
# Commit, tag, push:
$ git commit -m '1.1.1 release'
$ git tag 1.1.1
$ git push origin master --tags
# Finally publish:
$ make publish
```
Metadata
Release files for service-flower 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| service-flower-1.0.1.tar.gz | 5.9 kB | Without provenance | Details for service-flower-1.0.1.tar.gz |
Release files / service-flower-1.0.1.tar.gz
| Download URL | service-flower-1.0.1.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31c65d33a325d1e03b6a06de787580e786239aa982cc22974f13a290a6053166
|
|
BLAKE2b-256 checksum How to use checksums |
2aa38c40bfb17a6df781dcfd2d08e5ad91ad526f1cec52b55d05d29f8c6ce099
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/2.7.10
|
Security for service-flower 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.