semvec/pypi-packages huggingface dataset:
py-trie 1.0.0
CLI for communicating with a Trie hosted online
License: MIT

#  Py-Trie

Py-Trie is a command-line interface which enables communication with a global trie hosted on the Google Cloud Platform. Users can execute basic commands such as inserting, deleting, and searching words in the trie. A list of matching words can be generated through an input prefix. Users are also able to display the words present in the trie.

## Requirements


The following are required to be installed on your system before using Py-Trie:

* Python 3.8 or higher
* Pip

## Installation

To install Py-Trie, run the following command:

```
pip install py-trie
```

## Testing Suite

There are several test cases that can be found in the `test.py` file located in the `cli/pytrie` folder. These tests execute the commands listed in the Usage section. Some tests also simulate multiple users sending requests to the server by running processes on different threads.

To run all the test cases with the trie, run:

```
pytrie test
```

## Usage

There are 5 basic commands that can be executed using Py-Trie:
* Insert
* Remove
* Search
* Autocomplete
* Display

To get a list of all possible commands, run:

```
pytrie --help
```

### Insert

To insert a word:

```
pytrie insert [WORD]
```

### Remove

To remove a word:

```
pytrie remove [WORD]
```

### Search

To search a word:

```
pytrie search [WORD]
```

### Autocomplete

To generate a list of matching words based on a prefix:

```
pytrie autocomplete [PREFIX]
```

### Display

To display all existing words in the trie:

```
pytrie display
```
tess-sip 1.1.1
Demo tool for creating a Systematics-insensitive Periodogram (SIP) to detect long period rotation in NASA's TESS mission data.
License: MIT
Requires Python: >=3.6.1,<4.0.0
Keywords: NASA, TESS, Astronomy

# TESS SIP
<a href="https://github.com/christinahedges/TESS-SIP/workflows/tests.yml"><img src="https://github.com/christinahedges/TESS-SIP/workflows/pytest/badge.svg" alt="Test status"/></a>
<a href="https://pypi.python.org/pypi/TESS-SIP"><img src="https://img.shields.io/pypi/v/TESS-SIP" alt="pypi status"></a>
<a href="https://doi.org/10.5281/zenodo.4300754"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.4300754.svg" alt="DOI"></a>

Tool for creating a Systematics-insensitive Periodogram (SIP) to detect long period rotation in NASA's TESS mission data. Read more about TESS-SIP in our published [Research Note of the American Astronomical Society](https://iopscience.iop.org/article/10.3847/2515-5172/abd106/meta).

## What is SIP

SIP is a method of detrending telescope systematics simultaneously with calculating a Lomb-Scargle periodogram. You can read a more in-depth work of how SIP is used in NASA's Kepler/K2 data [here](https://ui.adsabs.harvard.edu/abs/2016ApJ...818..109A/abstract).


## Usage

This repository contains a Python tool to create a SIP. An example of a SIP output is below. You can run a simple notebook in the `docs` folder to show how to use SIP.

```python
from tess_sip import SIP
import lightkurve as lk
# Download target pixel files
tpfs = lk.search_targetpixelfile('TIC 288735205', mission='tess').download_all()
# Run SIP
r = SIP(tpfs)
```

`r` is a dictionary containing all the information required to build a plot like the one below.

![Example SIP output](https://github.com/christinahedges/TESS-SIP/blob/master/docs/demo1.png?raw=true)

### Installation

You can pip install this tool:

```
pip install tess_sip
```


## Requirements

To run this demo you will need to have [lightkurve](https://github.com/keplerGO/lightkurve) installed, with a minimum version number of v2.0.

## Acknowledgements

This tool uses the [lightkurve](https://github.com/keplerGO/lightkurve) tool to build a SIP, and relies on the `RegressionCorrector` and `SparseDesignMatrix` lightkurve tools. The SIP project was developed in part at the `online.tess.science` meeting, which took place globally in 2020 September. This research made use of [Astropy](http://www.astropy.org.) a community-developed core Python package for Astronomy.