Skip to main content

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tgcn 0.0.1
File Size Uploaded Provenance Actions
tgcn-0.0.1.tar.gz 489.1 kB Without provenance Details for tgcn-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tgcn 0.0.1
File Interpreter ABI Platform Actions
tgcn-0.0.1-py3-none-any.whl Python 3 none any Details for tgcn-0.0.1-py3-none-any.whl

Total release size: 568.6 kB

Release files / tgcn-0.0.1.tar.gz

Download URL tgcn-0.0.1.tar.gz
Size 489.1 kB
Tags Source
SHA-256 checksum
How to use checksums
544d575af42f211c7ccd119ed6c708d7553bf76210c280c528d5f077f341d46c
BLAKE2b-256 checksum
How to use checksums
41f970e0b34f682c4b569cf9ebcf65b539b0e100dcd5174a22b4a7a2eb856b86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.2 {"ci":null,"cpu":"x86_64","distro":{"id":"trixie","libc":{"lib":"glibc","version":"2.41"},"name":"Debian GNU/Linux","version":"13"},"implementation":{"name":"CPython","version":"3.13.5"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.7 9 Jun 2026","python":"3.13.5","system":{"name":"Linux","release":"6.12.113+deb13-amd64"}} HTTPX2/2.16.2

Release files / tgcn-0.0.1-py3-none-any.whl

Download URL tgcn-0.0.1-py3-none-any.whl
Size 79.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41489327b78a0ad62ab7d4de5e3d2737d2534e21b9dae90c0d5cf4b3dc47fb52
BLAKE2b-256 checksum
How to use checksums
2b30bd3332e1b698e3281449dfa736900347f18c5c5941033f3de18ad3756c06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.2 {"ci":null,"cpu":"x86_64","distro":{"id":"trixie","libc":{"lib":"glibc","version":"2.41"},"name":"Debian GNU/Linux","version":"13"},"implementation":{"name":"CPython","version":"3.13.5"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.7 9 Jun 2026","python":"3.13.5","system":{"name":"Linux","release":"6.12.113+deb13-amd64"}} HTTPX2/2.16.2

Security for tgcn 0.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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page