semvec/pypi-packages huggingface dataset:
django-fec-raw-data 0.0.3
A Django app to download, extract and load campaign finance from the Federal Election Commission
License: MIT

# django-fec-raw-data

A Django app to download, extract and load campaign finance from the Federal Election Commission.

It relies on the New York Times [Fech](http://nytimes.github.io/Fech/) library to download filings as CSV files, then loads them
into a database preserving all the fields in the raw data.


[![Build Status](https://travis-ci.org/datadesk/django-fec-raw-data.png?branch=master)](https://travis-ci.org/california-civic-data-coalition/django-fec-raw-data)
[![PyPI version](https://badge.fury.io/py/django-fec-raw-data.png)](http://badge.fury.io/py/django-fec-raw-data)
[![Coverage Status](https://coveralls.io/repos/datadesk/django-fec-raw-data/badge.png?branch=master)](https://coveralls.io/r/california-civic-data-coalition/django-fec-raw-data?branch=master)

* Issues: [github.com/datadesk/django-fec-raw-data/issues](https://github.com/datadesk/django-fec-raw-data/issues)
* Packaging: [pypi.python.org/pypi/django-fec-raw-data](https://pypi.python.org/pypi/django-fec-raw-data)
* Testing: [travis-ci.org/datadesk/django-fec-raw-data](https://travis-ci.org/datadesk/django-fec-raw-data)
* Coverage: [coveralls.io/r/datadesk/django-fec-raw-data](https://coveralls.io/r/datadesk/django-fec-raw-data)


## Quick start

Add this app to your ``INSTALLED_APPS`` in ``settings.py``.

```python
    INSTALLED_APPS = (
        ...
        'fec_raw',
    )
```

Create the raw models.

```bash
$ python manage.py migrate
```

Download the FEC filings.

```bash
$ python manage.py downloadfecrawdata
```

Load them into the database.

```bash
$ python manage.py loadfecrawdata
```
pension 0.0.3
Alert when ec2 instances are scheduled for retirement
License: MIT

# pension

> Plan for your instances' retirement.

Pension checks for EC2 instance retirement (e.g. due to hardware failures) and
other maintenance events that could cause (or be the source of) issues down the
line. It is meant to be run periodically (in a cron or some such) and provide
some warning before bad things happen.

Currently, pension knows how to ping a slack channel or send an email when
something's broken. Additional notification methods are welcome contributions.
Otherwise, parsing the JSON output format should be flexible enough for any
internal notification tooling.

### usage

`pip install pension`

`pension [--dry-run] [--quiet] [--config path/to/pension.toml]`

### configuration

pension uses [toml](https://github.com/mojombo/toml) as its configuration
language. The config file can be specified on the command line via `--config`.
If not provided, pension will try `./pension.toml` and `~/.pension.toml`.

If no config file is available, pension will try to proceed using only AWS
environment variables and the JSON console output.

For more information on AWS credentials, refer to the
[boto3 documentation](http://boto3.readthedocs.org/en/latest/guide/configuration.html).

#### example `pension.toml`

```toml
# (optional) profile names as configured in ~/.aws/credentials, defaults to
#            using boto's AWS environment variables.
aws_profiles = ["dev", "prod"]

# Enable notification via a slack message using webhooks.
# Hooks can be setup here: https://my.slack.com/services/new/incoming-webhook/
[notify.slack]
# (required)
hook_url = "https://hooks.slack.com/..."
# (optional) defaults to channel configured with webhook
channel = "#general"
# (optional) defaults to name configured with webhook
user_name = "Bad News Bot"

# Sends an email using SMTP
[notify.email]
# (required)
server = "smtp.gmail.com"
# (required) login user name
user_name = "foobar@gmail.com"
# (required)
password = "hunter2"
# (optional) defaults to the given user_name
sender = "foo@bar.baz"
# (required)
recipients = ["oh@no.com", "alerts@myco.pagerduty.com"]
# (required)
subject = "Maintenance events detected for ec2 instances!"

[notify.json]
# (optional) file to write to. if not provided, will dump to stdout
file = "output.json"
```