Installation
There are two ways to install iinuclear: using pip or from source.
Using pip
To install the latest release version:
pip install iinuclear
From source
To install the latest development version directly from GitHub:
git clone https://github.com/gmzsebastian/iinuclear.git
cd iinuclear
pip install -e .
TNS API Setup
Some features require access to the Transient Name Server (TNS). You’ll need API credentials to query TNS data when using IAU names.
Getting TNS API Credentials
Register for a TNS account at https://www.wis-tns.org/
Once logged in, go to “User Area” → “API tokens”
Create a new API key by registering a “BOT” account
Note down these three items: * Your API key * Your TNS ID (Bot ID) * Your TNS username (Bot name)
Setting Up Credentials
There are two ways to configure your TNS credentials:
Environment Variables (Recommended)
Add these lines to your
~/.bashrc,~/.zshrc, or equivalent:export TNS_API_KEY="your_api_key_here" export TNS_ID="your_tns_id_here" export TNS_USERNAME="your_bot_name_here"
Then source your shell configuration file:
source ~/.bashrc # or ~/.zshrc
Configuration File
Create a file named
tns_key.txtin your home directory:touch ~/tns_key.txt
Add your credentials to this file in the following format:
your_api_key_here your_tns_id_here your_bot_name_here
Set appropriate file permissions:
chmod 600 ~/tns_key.txt