<commit_before>Thredds Client for Python
=========================
[![Build Status](https://travis-ci.org/bird-house/threddsclient.svg?branch=master)](https://travis-ci.org/bird-house/threddsclient)
[![Install with Conda](https://binstar.org/birdhouse/threddsclient/badges/installer/conda.svg)](https://binstar.org/birdhouse/threddsclient)
[![Binstar Build](https://binstar.org/birdhouse/threddsclient/badges/build.svg)](https://binstar.org/birdhouse/threddsclient)


Start reading a catalogue

```python
    import threddsclient
    cat = threddsclient.read_url('http://example.com/thredds/catalog.xml')
```

Get a list of links to other catalogues & follow them

```python
    links = c.references

    print links[0].name
    cat2 = links[0].follow
```

Get a list of datasets in this catalogue

```python
    data  = cat.datasets
```

Get flat list of all direct datasets (data files) in the catalogue

```python
    datasets = cat.flat_datasets()
```

Get flat list of all references in the catalogue

```python
    datasets = cat.flat_references()
```

Get download URLs of all direct datasets

```python
    urls = cat.download_urls()
    # or use shortcut
    urls = threddsclient.download_urls('http://example.com/thredds/catalog.xml')

Get OpenDAP URLs of all direct datasets

```python
    urls = cat.opendap_urls()
    # or use shortcut
    urls = threddsclient.opendap_urls('http://example.com/thredds/catalog.xml')

<commit_msg>fixed readme<commit_after>Thredds Client for Python
=========================
[![Build Status](https://travis-ci.org/bird-house/threddsclient.svg?branch=master)](https://travis-ci.org/bird-house/threddsclient)
[![Install with Conda](https://binstar.org/birdhouse/threddsclient/badges/installer/conda.svg)](https://binstar.org/birdhouse/threddsclient)
[![Binstar Build](https://binstar.org/birdhouse/threddsclient/badges/build.svg)](https://binstar.org/birdhouse/threddsclient)


Start reading a catalogue

```python
    import threddsclient
    cat = threddsclient.read_url('http://example.com/thredds/catalog.xml')
```

Get a list of links to other catalogues & follow them

```python
    links = c.references

    print links[0].name
    cat2 = links[0].follow
```

Get a list of datasets in this catalogue

```python
    data  = cat.datasets
```

Get flat list of all direct datasets (data files) in the catalogue

```python
    datasets = cat.flat_datasets()
```

Get flat list of all references in the catalogue

```python
    datasets = cat.flat_references()
```

Get download URLs of all direct datasets

```python
    urls = cat.download_urls()
    # or use shortcut
    urls = threddsclient.download_urls('http://example.com/thredds/catalog.xml')
```

Get OpenDAP URLs of all direct datasets

```python
    urls = cat.opendap_urls()
    # or use shortcut
    urls = threddsclient.opendap_urls('http://example.com/thredds/catalog.xml')
```

{'fraction_non_alphanumeric': 0.14878892733564014, 'fraction_numerical': 0.0020761245674740486, 'mean_word_length': 4.343807763401109, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5719069', 'n_tokens_mistral': 988, 'n_tokens_neox': 941, 'n_words': 211}