Skip to main content

Command-line tools for working with and interacting with the Transient Naming Server

Project description

transientNamer

A python package and command-line tools for working with and interacting with the Transient Naming Server.

Command-Line Usage

Documentation for transientNamer can be found here: http://transientNamer.readthedocs.org/en/stable

Usage:
    transientNamer [-c] search <ra> <dec> <arcsecRadius> [<render> | mysql <tableNamePrefix>] [-o directory]
    transientNamer [-c] search <name> [<render> | mysql <tableNamePrefix>] [-o directory]
    transientNamer [-c] new <discInLastDays> [<render> | mysql <tableNamePrefix>] [-o directory]

Commands:
    search                search the TNS and return the results
    new                   list newly discovered TNS objects

Arguments:
    ra
    dec
    arcsecRadius
    name                  the name of the object the search for (TNS or survey name)
    render                output format for results. Options include json, csv, table, markdown, yaml
    tableNamePrefix       the prefix for the tables to write the mysql insert statements for
    dirPath               path to the directory to save the output to

Options:
    -h, --help                           show this help message
    -v, --version                        show version
    -s, --settings                       the settings file
    -c, --withComments                   return TNS comments in result sets
    -o directory --output=directory      output to files in the directory path

Documentation

Documentation for transientNamer is hosted by Read the Docs (last stable version and latest version).

Installation

The easiest way to install transientNamer is to use pip:

pip install transientNamer

Or you can clone the github repo and install from a local version of the code:

git clone git@github.com:thespacedoctor/transientNamer.git
cd transientNamer
python setup.py install

To upgrade to the latest version of transientNamer use the command:

pip install transientNamer --upgrade

Development

If you want to tinker with the code, then install in development mode. This means you can modify the code from your cloned repo:

git clone git@github.com:thespacedoctor/transientNamer.git
cd transientNamer
python setup.py develop

Pull requests are welcomed!

Sublime Snippets

If you use Sublime Text as your code editor, and you’re planning to develop your own python code with transientNamer, you might find my Sublime Snippets useful.

Issues

Please report any issues here.

License

Copyright (c) 2018 David Young

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transientNamer-0.1.8.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

transientNamer-0.1.8-py2-none-any.whl (29.0 kB view details)

Uploaded Python 2

File details

Details for the file transientNamer-0.1.8.tar.gz.

File metadata

  • Download URL: transientNamer-0.1.8.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/36.4.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/2.7.13

File hashes

Hashes for transientNamer-0.1.8.tar.gz
Algorithm Hash digest
SHA256 5a1437cc1cdc02ddbc782a92e1f973ccf1cafe9b3187a230aa88d83e30f1f635
MD5 acc50e00b36c1039dd9c05a6a214bf88
BLAKE2b-256 9a10da800ffa9774cc405366df15d584df9ae479d72a32073e2ddfb2788cb9e8

See more details on using hashes here.

File details

Details for the file transientNamer-0.1.8-py2-none-any.whl.

File metadata

  • Download URL: transientNamer-0.1.8-py2-none-any.whl
  • Upload date:
  • Size: 29.0 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/36.4.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/2.7.13

File hashes

Hashes for transientNamer-0.1.8-py2-none-any.whl
Algorithm Hash digest
SHA256 61422e955ad187e1233b712af16551ca0a05b0a2fc5ff5fdd18b701d7d9652af
MD5 1f0b02ddeb2ca58ee098ab957756f70a
BLAKE2b-256 be813abea313e5a45728022443b4bb160c9773aefd2dd0f1f8e7bacbeaa71cea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page