tgcn
This is a package for parsing NASA GCN Circulars into structured output.
For example, tgcn turns this circular:
TITLE: GCN CIRCULAR
NUMBER: 44104
SUBJECT: GRB 260310A: LBT optical observations
DATE: 26/03/24 14:51:33 GMT
FROM: N. Passaleva at Sapienza University of Rome <niccolo.passaleva@uniroma1.it>
Niccolo’ Passaleva, Yu-Han Yang, Narges Shahamt, Eleonora Troja (U Rome) report
on behalf of the ERC BHianca team:
Following the detection of GRB 260310A by Fermi/GBM and AstroSat CZTI (Fermi
GBM team, GCN 43951,43975; AstroSat CZTI collaboration, GCN 43958), we observed
the likely counterpart AT2026fgk (discovered by GOTO; O’Neill et al. 2026, TNS
Discovery Report 294132) in r and z filters with the Large Binocular Camera
(LBC) mounted on the Large Binocular Telescope (LBT). Observations started at
2026-03-18T09:25:06 (~ 8.2 d after the GBM trigger) with an average airmass of
1.3.
We detect the source with a preliminary magnitude of r~18.7 AB mag, calibrated
using nearby stars from the Legacy Survey DR10 (Dey et al. 2019) catalogue,
uncorrected for Galactic extinction.
Our measurement in consistent with those at the same observing time reported by
Perley et al. (GCN 44096), Volnova et al. (GCN 44060).
We acknowledge excellent support from the LBTO and LBT-INAF staff.
Into this:
Output(
claims=(
Claim[Quantity](
subject=Subject(
id='s.grb',
aliases=('GRB 260310A',),
citations=(43951, 43975, 43958)
),
propositions=(
Proposition(
statement=Classification(kind='class', name=SciClass.GRB),
qualifier=Qualifier.ASSERTED
),
),
quantities=()
),
Claim[Quantity](
subject=Subject(
id='s.optical_counterpart',
aliases=('AT2026fgk',),
citations=(44096, 44060)
),
propositions=(
Proposition(
statement=Relation(
kind=RelationKind.COUNTERPART,
to='s.grb'
),
qualifier=Qualifier.UNCERTAIN
),
),
quantities=(
Magnitude(
value=Decimal('18.7'),
unit=UnitDimensionless.MAGNITUDE,
band='r',
system='ab',
time=TimePoint(
year=2026,
month=3,
day=18,
hour=9,
minute=25,
second=Decimal('6')
),
time_role='start',
instruments=(Instrument.TELESCOPE_LBT,),
references=((482, 589), (592, 783))
),
)
)
)
)
Setup
Clone the repository and run one of these commands from its root.
# Include development dependencies to run the tests.
uv sync
# Install the package and its five CLI tools.
uv sync --no-dev
# Include development dependencies and the benchmark notebooks' dependencies.
uv sync --extra benchmark
# Equivalent pip install
# python -m pip install -e ".[benchmark]" --group dev
Or get it from PyPI with:
pip install tgcn
Quick start
The following command should be enough to check everything is working:
LLM_API_KEY=your-openrouter-api-key-here \
uv run python -c "from tgcn import *; print(Parser().parse(Circular.from_web(44430)).to_json())" | \
jq '.' -
For real use, avoid typing the key directly into a command saved in shell history.
Documentation
For everything else, refer to our documentation.
Metadata
Release files for tgcn 0.0.2
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 |
|---|---|---|---|---|
| tgcn-0.0.2.tar.gz | 511.5 kB | Without provenance | Details for tgcn-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tgcn-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for tgcn-0.0.2-py3-none-any.whl |
Total release size: 592.4 kB
Release files / tgcn-0.0.2.tar.gz
| Download URL | tgcn-0.0.2.tar.gz |
|---|---|
| Size | 511.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5075e381726c8da457a893cc44f5ccc20637523a96517d32115ff8b19aacb0c3
|
|
BLAKE2b-256 checksum How to use checksums |
6a58b9d6859d40e8f70c1bc39e722855497aebd9baad20d4a995c5c28718be5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / tgcn-0.0.2-py3-none-any.whl
| Download URL | tgcn-0.0.2-py3-none-any.whl |
|---|---|
| Size | 81.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a7410825e4c177ae1fdb231572b82c05037acfe98c9fb1d24bcb3dd0c90bc7d
|
|
BLAKE2b-256 checksum How to use checksums |
7c8637878b884a723227cf9720cb2e966bef503404a1bd5cfb04d21981eedc37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for tgcn 0.0.2
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.