Light-weight client to manipulate alerts from Fink
Project description
Fink client
fink-client
is a light package to manipulate catalogs and alerts issued from the fink broker programmatically. Learn how to connect and use it by checking the documentation.
Installation
fink_client
requires a version of Python 3.7+. To install it, just run
pip install fink-client
Registration
In order to connect and poll alerts from Fink, you need to get your credentials:
- Subscribe to one or more Fink streams by filling this form.
- After filling the form, we will send your credentials. Register them on your laptop by simply running:
fink_client_register -username <USERNAME> -group_id <GROUP_ID> ...
Usage
Once you have your credentials, you are ready to poll streams!
fink_consumer -h
usage: fink_consumer [-h] [--display] [-limit LIMIT] [--available_topics]
[--save] [-outdir OUTDIR] [-schema SCHEMA]
Kafka consumer to listen and archive Fink streams
optional arguments:
-h, --help show this help message and exit
--display If specified, print on screen information about incoming
alert.
-limit LIMIT If specified, download only `limit` alerts. Default is
None.
--available_topics If specified, print on screen information about
available topics.
--save If specified, save alert data on disk (Avro). See also
-outdir.
-outdir OUTDIR Folder to store incoming alerts if --save is set. It
must exist.
-schema SCHEMA Avro schema to decode the incoming alerts. Default is
None (latest version downloaded from server)
You can also look at an alert on the disk:
fink_alert_viewer -h
usage: fink_alert_viewer [-h] [-filename FILENAME]
Display cutouts and lightcurve from a ZTF alert
optional arguments:
-h, --help show this help message and exit
-filename FILENAME Path to an alert data file (avro format)
Learn how to use fink-client by following the dedicated tutorial. It should not take long to learn it!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fink-client-2.6.tar.gz
(18.1 kB
view hashes)
Built Distribution
fink_client-2.6-py3-none-any.whl
(26.2 kB
view hashes)
Close
Hashes for fink_client-2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1c342d39d9e9dfaac64ffd22a697e837b30bf7e7f25f1756056cd1725b95d8e |
|
MD5 | 67aca960297d433be31e2ba9a4cb26f9 |
|
BLAKE2b-256 | 4b5bad558b60d9886379320b3f11c74f4649161a2159f6c5c32cb7c767c0c385 |