semvec/pypi-packages huggingface dataset:
checkspot 1.0.1
A simple CLI tool to check the spot prices of AWS instances. 

CheckSpot
=========

A simple CLI tool to check the spot prices of AWS instances. Available
for Python3 only

Installation
------------

To install, use pip such that

.. code:: bash

    pip3 install --user checkspot

Setup
-----

Since ``checkspot`` uses boto3, you’ll have to setup the same way. You
can view the `docs
here <http://boto3.readthedocs.io/en/latest/guide/quickstart.html>`__

Usage
-----

To use, run

.. code:: bash

    checkspot

and a series of questions will be prompted.

Repeatable Usage
~~~~~~~~~~~~~~~~

If you don’t want to enter the CLI every time, you can run the CLI with
the options

::

    checkspot --InstanceType=t2.micro --ProductDescription=Linux/UNIX --StartTime=$(date -d "3 days ago" +"%Y-%m-%d") --EndTime=$(date +"%Y-%m-%d")

Version
-------

-  **1.0.0**

   -  First publish
spotcheck 1.0.1
A simple CLI tool to check the spot prices of AWS instances.

SpotCheck
=========

A simple CLI tool to check the spot prices of AWS EC2 instances. This
tool is utilized to check the recent prices of spot instances for
different instance type, so the user can make an informed decision on
the price to set for spot instances.

Background
----------

`Spot Instances <https://aws.amazon.com/ec2/spot/>`__ are a good
resource to use AWS EC2 instances for fairly cheap, and I am very
frugal. This tool allows me (and you, the user) to check historical
prices of spot instances to make an informed decision on the prices to
set when creating an EC2 instance.

Installation
------------

To install, use pip such that

.. code:: bash

    pip3 install --user spotcheck

Setup
-----

Since ``spotcheck`` uses boto3, you’ll have to setup the same way. You
can view the `docs
here <http://boto3.readthedocs.io/en/latest/guide/quickstart.html>`__

Usage
-----

To use, run

.. code:: bash

    spotcheck

and a series of questions will be prompted.

The results is of the form

::

    +------------------+-------------------+---------------+--------------+---------------+
    | Timestamp        | Availability Zone | Instance Type | Product Desc | Spot Price($) |
    +------------------+-------------------+---------------+--------------+---------------+
    | 2017-11-28 01:00 | ca-central-1a     | t2.micro      | Linux/UNIX   | 0.006100      |
    | 2017-11-28 01:00 | ca-central-1b     | t2.micro      | Linux/UNIX   | 0.006100      |
    | 2017-11-29 01:00 | ca-central-1a     | t2.micro      | Linux/UNIX   | 0.006100      |
            .                   .                   .               .           .
            .                   .                   .               .           .
            .                   .                   .               .           .
            .                   .                   .               .           .
    +------------------+-------------------+---------------+--------------+---------------+

Repeatable Usage
~~~~~~~~~~~~~~~~

If you don’t want to enter the CLI every time, you can run the CLI with
the options

::

    spotcheck --InstanceType=t2.micro --ProductDescription=Linux/UNIX --StartTime=$(date -d "3 days ago" +"%Y-%m-%d") --EndTime=$(date +"%Y-%m-%d")

Version
-------

-  **1.0.x**

   -  Fix Bugs

-  **1.0.0**

   -  First publish
django-pubtools 2.0.4
A set of reusable base classes and helpers for django
Keywords: django,publishing

django-pubtools is a helper library for creating publishable django models.

[![Circle CI](https://circleci.com/gh/gregplaysguitar/django-pubtools.svg?style=svg)](https://circleci.com/gh/gregplaysguitar/django-pubtools)
[![codecov](https://codecov.io/gh/gregplaysguitar/django-pubtools/branch/master/graph/badge.svg)](https://codecov.io/gh/gregplaysguitar/django-pubtools)
[![Latest Version](https://img.shields.io/pypi/v/django-pubtools.svg?style=flat)](https://pypi.python.org/pypi/django-pubtools/)

## Overview

Extend the `AbstractPublishableModel` class to create a publishable model class.

- Publishable content can be in either draft, preview, or published status.
- Draft content may be previewed on the site by a logged-in staff member
- Preview content may be previewed publicly, via a special url


## Installation

    pip install django-pubtools


## Example implementation

models.py:

```python
from django.db import models
import pubtools.models

class Article(pubtools.models.AbstractPublishableModel):
    title = models.CharField(max_length=100)
```

views.py:

```python
from django.http import HttpResponse
from .models import Article

def article(request, id):
    # pass the request to enable staff preview
    articles = Article.objects.published(request)
    article = articles.get(id=id)
    return HttpResponse(article.title)
```

admin.py:

```python
from django.contrib import admin
from baseclasses.admin import PublishableModelAdminMixin

from .models import Article

@admin.register(Article)
class ArticleAdmin(PublishableModelAdminMixin, admin.ModelAdmin):
    list_display = ['title']
```

## Reference

### `pubtools.models.AbstractPublishableModel`

##### Model fields

- `created` (datetime, set on creation)
- `last_updated` (datetime, updated on save)
- `pub_date` (date)
- `pub_status` (one of draft, review or published)

##### Model methods

- `published` (property) return True if the instance is published
- `get_prev_published(qs=None, loop=False)` get previous published instance
- `get_next_published(qs=None, loop=False)` get next published instance

### `pubtools.models.PublishableModelQuerySet`

##### Manager/queryset methods

- `published(self, request=None)` If request is passed, and a preview status
  flag is in request.GET, then check if the user is a staff member, and
  return objects with the requested status if so. Otherwise, return only
  published objects.

### `pubtools.admin.PublishableModelAdminMixin`

- Overrides `view_on_site` to add a flag to urls for draft/preview content.
- Adds a "Publish selected" action to the admin