<commit_before># Awscosts

AWSCosts allows programmatic access to AWS pricing.

Useful for calculating the running costs of your fleet of EC2 instances and
associated services such as ELBs, RDS, CloudWatch, etc.

## Installation

Add this line to your application's Gemfile:

    gem 'awscosts'

Or install it yourself as:

    $ gem install awscosts

## Usage

Pricing is usually defined by region

    region = AWSCosts.region 'us-east-1'

### On Demand

To find the price of all on-demand EC2 instances running linux

    region.ec2.on_demand(:linux).price

You can pass an argument to price to filter by the instance type.

    region.ec2.on_demand(:linux).price('m1.medium')
<commit_msg>Add travis ci status<commit_after># AWSCosts

AWSCosts allows programmatic access to AWS pricing.

Useful for calculating the running costs of your fleet of EC2 instances and
associated services such as ELBs, RDS, CloudWatch, etc.

[![Build Status](https://travis-ci.org/srbartlett/awscosts.png)](https://travis-ci.org/srbartlett/awscosts)

## Installation

Add this line to your application's Gemfile:

    gem 'awscosts'

Or install it yourself as:

    $ gem install awscosts

## Usage

Pricing is usually defined by region

    region = AWSCosts.region 'us-east-1'

### On Demand

To find the price of all on-demand EC2 instances running linux

    region.ec2.on_demand(:linux).price

You can pass an argument to price to filter by the instance type.

    region.ec2.on_demand(:linux).price('m1.medium')

{'fraction_non_alphanumeric': 0.07866666666666666, 'fraction_numerical': 0.008, 'mean_word_length': 4.003333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7498638', 'n_tokens_mistral': 498, 'n_tokens_neox': 467, 'n_words': 177}