semvec/pypi-packages huggingface dataset:
histutils 1.0.1
Utilities for reading HiST data, etc.
Requires Python: >= 3.6
Keywords: aurora

[![DOI](https://zenodo.org/badge/30336524.svg)](https://zenodo.org/badge/latestdoi/30336524)

[![Build Status](https://travis-ci.com/space-physics/histutils.svg?branch=master)](https://travis-ci.com/space-physics/histutils)
[![Coverage Status](https://coveralls.io/repos/github/space-physics/histutils/badge.svg?branch=master)](https://coveralls.io/github/space-physics/histutils?branch=master)
[![pypi versions](https://img.shields.io/pypi/pyversions/histutils.svg)](https://pypi.python.org/pypi/histutils)
[![PyPi Download stats](http://pepy.tech/badge/histutils)](http://pepy.tech/project/histutils)


# HiST Utils

HiST project raw video data reading utilities.

## Install

    python -m pip install -e .

## User Programs/Scripts

These functions are primarily made to be used from the Terminal by a
human, they implement a complete program using the module functions.

### RunSimulPlay

Simultaneous video playback of two or more cameras.

* -i input file list (.h5)
* -t Time range start/stop
* -o Output directory for plots (optional, slow)

#### Example

```bash
$ python RunSimulFrame.py -i ~/data/cmos2013-01-14T1-15.h5 ~/data/ccd2013-01-14T1-15.h5
```

using the [data from January 13, 2013
experiment](http://heaviside.bu.edu/~mhirsch/dmc/2013-01-13/) during
active plasma time.

### ConvertDMC2h5.py

Typically used by our staff internally to convert our binary .DMCdata
files to human- and fast processing- friendly HDF5 files.

#### Example

    python ConvertDMC2h5.py -p 512 512 -b 1 1 -k 0.0188679245283019 -o testframes_cam0.h5 ~/data/2013-04-14T07-00-CamSer7196_frames_363000-1-369200.DMCdata -s 2013-04-14T06:59:55Z -t 2013-04-14T08:54:10Z 2013-04-14T08:54:10.05Z

    python ConvertDMC2h5.py -p 512 512 -b 1 1 -k 0.0333333333333333 -o testframes_cam1.h5 ~/data/2013-04-14T07-00-CamSer1387_frames_205111-1-208621.DMCdata -s 2013-04-14T07:00:07Z -t 2013-04-14T08:54:10Z 2013-04-14T08:54:10.05Z

### WhenEnd.py

Just predicts the end of a .DMCdata file "does this file cover the
auroral event time?"

## Module Functions

These functions are typically targeted for calling from other programs,
however, many of these can also be used from the Terminal directly.

## Examples

Many more possibilities exist, the `-h` option on most functions will
give some hints as to what the program can do.

## Reference Examples

These examples are old, now we use HDF5 files. Kept for reference only.

### Read .DMCdata file from within a Python script

    from histutils import rawDMCreader
    data = rawDMCreader.goRead('myfile.DMCdata')[0]

### Using rawDMCreader.py from Terminal

    cd histutils/histutils
    python3 rawDMCreader.py ~/data/
NaughtyClustered 0.3.7
Clustered version of Naughty and Nice with a few more addons
Keywords: classifing,learning

#Naughty and Nice (Clustered version)  
###  How to download:
Use `pip3 (or pip ) install -vvv NaughtyClustered`
Download these packages as well:
* dispy
* tweepy
* nltk:
1. Open a file (or Python IDE) and put these to things to download NLTK full
1. import nltk
2. nltk.download()
2. Then you will see a window pop up. This is the NLTK downloader. Click on popular and wait for it to download.
###  How to use the program:
First you have to go to apps.twitter.com and sign in and create an app.
Do all the steps to make your app, then go to your app interface and click on keys and tokens.
You will see two API keys, and you will also see a button that says "Create" under the access token bar. Click on the "Create" button to make your access tokens.
Now you need to store the keys. Make a file named "twitter_auth.json". Put this in the file:
```    
{
"consumer_key": "YOURCONSUMERKEY",
"consumer_secret": "YOURCONSUMERSECRET",
"access_token": "YOURACCESSTOKEN",
"access_token_secret": "YOURACCESSTOKENSECRET"
}
```
Put all of your creditionals in and save.
Now all you need to do is make sure your cluster is active, then go to a python file, type in:
```python
from NaughtyClustered import Calculate
Calculate(PATH_TO_YOUR_TWITTER_AUTH.JSON_FILE)
```
Then it will calculate and you are done.
django-startapps-command 2019.6.29
create multiple apps with one command
Keywords: django startapp

<!--
https://pypi.org/project/readme-generator/
https://pypi.org/project/python-readme-generator/
https://pypi.org/project/django-readme-generator/
-->

[![](https://img.shields.io/pypi/pyversions/django-startapps-command.svg?longCache=True)](https://pypi.org/project/django-startapps-command/)

#### Installation
```bash
$ [sudo] pip install django-startapps-command
```

#### `settings.py`
```python
if DEBUG:
    INSTALLED_APPS = ["django_startapps_command"]+INSTALLED_APPS
```

`APPS_DIR`, optional. `apps/` by default
```python
APPS_DIR = 'path/to/apps'
```

#### Commands
command|`help`
-|-
`python manage.py startapps` |startapp for every folder in apps/

#### Examples
```bash
apps/
apps/app1/
apps/app2/
```

```bash
$ python manage.py startapps
```

```bash
apps/app1/__init__.py
apps/app1/admin.py
...
apps/app2/__init__.py
apps/app2/admin.py
...
```

<p align="center">
    <a href="https://pypi.org/project/django-readme-generator/">django-readme-generator</a>
</p>