<commit_before># B2.NET
[![ghit.me](https://ghit.me/badge.svg?repo=coryrwest/B2.NET)](https://ghit.me/repo/coryrwest/B2.NET) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

B2.NET is a C# client for the [Backblaze B2 Cloud Storage](https://secure.backblaze.com/b2/) service.

B2.NET is still in Beta, so use it in production at your own risk.

[B2 Documentation](https://www.backblaze.com/b2/docs/)

## Features

*  Full implementation of the B2 REST API (excluding some Large File API's)
*  Experimental support for file FriendlyURL's
*  UFT-8 and Url Encoding support
*  Full Async support
*  Full test coverage
*  Targets .NET 4.5 and .NET Standard 1.5

## nuget
[nuget package](https://www.nuget.org/packages/B2Net/)

```
Install-Package B2Net
```

## Install

Stick the B2Net.ddl in your project.

## Usage
```csharp
// the B2Client will default to the bucketId provided here
// for all subsequent calls if you set PersistBucket to true.
var options = new B2Options() {
	AccountId = "YOUR ACCOUNT ID",
	ApplicationKey = "YOUR APPLICATION KEY",
	BucketId = "OPTIONAL BUCKET ID",
	PersistBucket = true/false
};
var client = new B2Client(Options);
```<commit_msg>Little typo (ddl instead of dll)<commit_after># B2.NET
[![ghit.me](https://ghit.me/badge.svg?repo=coryrwest/B2.NET)](https://ghit.me/repo/coryrwest/B2.NET) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

B2.NET is a C# client for the [Backblaze B2 Cloud Storage](https://secure.backblaze.com/b2/) service.

B2.NET is still in Beta, so use it in production at your own risk.

[B2 Documentation](https://www.backblaze.com/b2/docs/)

## Features

*  Full implementation of the B2 REST API (excluding some Large File API's)
*  Experimental support for file FriendlyURL's
*  UFT-8 and Url Encoding support
*  Full Async support
*  Full test coverage
*  Targets .NET 4.5 and .NET Standard 1.5

## nuget
[nuget package](https://www.nuget.org/packages/B2Net/)

```
Install-Package B2Net
```

## Install

Stick the B2Net.dll in your project.

## Usage
```csharp
// the B2Client will default to the bucketId provided here
// for all subsequent calls if you set PersistBucket to true.
var options = new B2Options() {
	AccountId = "YOUR ACCOUNT ID",
	ApplicationKey = "YOUR APPLICATION KEY",
	BucketId = "OPTIONAL BUCKET ID",
	PersistBucket = true/false
};
var client = new B2Client(Options);
```
{'fraction_non_alphanumeric': 0.13411078717201166, 'fraction_numerical': 0.01749271137026239, 'mean_word_length': 4.199134199134199, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 4, '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': '1127209', 'n_tokens_mistral': 878, 'n_tokens_neox': 838, 'n_words': 251}