<commit_before># Pomares

Pomares is a distributed content distribution system written in python 3 (asyncio) that relies on a closed network of trusted peers.

## Features

* Export local content
* Import remote content
* Set logical imports/exports
* Manage peer aliases and public keys
* Peer-to-peer content


## Dependencies

* Python 3.4+
* libnacl
* whoosh
* cerberus
* msgpack-python

## Installation

    pip3 install msgpack-python cerberus Whoosh libnacl
    git clone https://github.com/ramaro/pomares.git
    alias pomares='python3.4 pomares.py' # optional

## Getting Started

#### Generate keypair
    pomares genkey

#### Display public key and info
    pomares about

#### Run Server
    pomares run 

#### Export a local directory
    pomares export ~/public_stuff public

#### Add a peer (example)
    pomares pubkey friend1 eYgtH9qbZFiiVbeGxuVpSyGv6HTkBHiROx5siwyaK3E= friend1.host.name:8111

#### Import a tree from a peer
    pomares import friend1 his_public_stuff

#### List imported trees
    pomares ls

#### Copy imported content
    pomares cp path/to/remote/content local_dir/

<commit_msg>README cleanup<commit_after># Pomares

Pomares is a distributed content distribution system written in python 3 (asyncio) that relies on a closed network of trusted peers.

## Features

* Seed (export) local content
* Plant (import) remote content
* Set logical trees 
* Manage peer aliases and public keys
* Peer-to-peer content


## Dependencies

* Python 3.4+
* libnacl
* whoosh
* cerberus
* msgpack-python

## Installation

    pip3 install msgpack-python cerberus Whoosh libnacl
    git clone https://github.com/ramaro/pomares.git
    alias pomares='python3.4 pomares.py' # optional

## Getting Started

#### Generate keypair
    pomares genkey

#### Display public key and info
    pomares about

#### Run Server
    pomares run 

#### Seed a local directory
    pomares seed ~/public_stuff public

#### Add a peer (example)
    pomares pubkey friend1 eYgtH9qbZFiiVbeGxuVpSyGv6HTkBHiROx5siwyaK3E= friend1.host.name:8111

#### Plant a tree from a peer
    pomares plant friend1 his_public_stuff

#### List planted trees
    pomares ls


{'fraction_non_alphanumeric': 0.08012968967114405, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 3.920273348519362, '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': '1478346', 'n_tokens_mistral': 710, 'n_tokens_neox': 693, 'n_words': 232}