<commit_before>[![Selectel](http://blog.selectel.ru/wp-content/themes/selectel/static/img/selectel.png)](https://selectel.ru/)

Selectel api
=======
```
    Language  Files   Code  Comment  Blank  Total
          Go     11   2093      132    114   2339
    Markdown      1     22        0      8     30

  Assertions: ~700
  Integrational tests included
```

[![Build Status](https://travis-ci.org/ernado/selectel.svg?branch=master)](https://travis-ci.org/ernado/selectel)
[![Coverage Status](https://img.shields.io/coveralls/ernado/selectel.svg)](https://coveralls.io/r/ernado/selectel)
[![GoDoc](https://godoc.org/github.com/ernado/selectel?status.svg)](https://godoc.org/github.com/ernado/selectel)
[![Documentation Status](https://readthedocs.org/projects/selectel-api/badge/?version=latest)](http://selectel-api.readthedocs.org/en/latest/)

Usage
=======

```bash
go get github.com/ernado/selectel
```

```golang
import "github.com/ernado/selectel/storage"
```

<commit_msg>added example<commit_after>[![Selectel](http://blog.selectel.ru/wp-content/themes/selectel/static/img/selectel.png)](https://selectel.ru/)

Selectel api
=======
```
    Language  Files   Code  Comment  Blank  Total
          Go     11   2093      132    114   2339
    Markdown      1     22        0      8     30

  Assertions: ~700
  Integrational tests included
```

[![Build Status](https://travis-ci.org/ernado/selectel.svg?branch=master)](https://travis-ci.org/ernado/selectel)
[![Coverage Status](https://img.shields.io/coveralls/ernado/selectel.svg)](https://coveralls.io/r/ernado/selectel)
[![GoDoc](https://godoc.org/github.com/ernado/selectel?status.svg)](https://godoc.org/github.com/ernado/selectel)
[![Documentation Status](https://readthedocs.org/projects/selectel-api/badge/?version=latest)](http://selectel-api.readthedocs.org/en/latest/)

Usage
=======

```bash
go get github.com/ernado/selectel
```

Example: 
```golang
package main

import (
	"fmt"
	"github.com/ernado/selectel/storage"
	"log"
)

const (
	user = "123456"
	key  = "password"
)

func main() {
	api, err := storage.New(user, key)
	if err != nil {
		log.Fatal(err)
	}

	info := api.Info()
	fmt.Printf("Used %d bytes\n", info.BytesUsed)

	containers, _ := api.Containers()
	fmt.Printf("You have %d containers\n", len(containers))

	for _, container := range containers {
		objects, _ := container.Objects()
		fmt.Printf("Container %s has %d objects\n", container.Name(), len(objects))
	}
}

```


{'fraction_non_alphanumeric': 0.1826688364524003, 'fraction_numerical': 0.023596419853539462, 'mean_word_length': 3.7379576107899806, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, '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': '4896881', 'n_tokens_mistral': 950, 'n_tokens_neox': 868, 'n_words': 129}