Metadata-Version: 2.1
Name: allennlp-server
Version: 1.0.0rc1
Summary: Simple demo server for AllenNLP models and training config builder.
Home-page: https://github.com/allenai/allennlp-server
Author: Allen Institute for Artificial Intelligence
Author-email: allennlp@allenai.org
License: Apache
Keywords: allennlp simple demo server serve models configuration file NLP deep learning machine reading
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Flake8
Classifier: Framework :: Flask
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.6.1
Description-Content-Type: text/markdown
Requires-Dist: allennlp (<3.0,>=2.0)
Requires-Dist: allennlp-models (<3.0,>=2.0)
Requires-Dist: flask (>=1.0.2)
Requires-Dist: flask-cors (>=3.0.7)
Requires-Dist: gevent (>=1.3.6)

<div align="center">
    <br>
    <a href="https://github.com/allenai/allennlp">
    <img src="https://raw.githubusercontent.com/allenai/allennlp/main/docs/img/allennlp-logo-dark.png" width="400"/>
    </a>
    <br>
    <br>
    <p>
    A demo server for AllenNLP models.
    </p>
    <hr/>
</div>
<p align="center">
    <a href="https://github.com/allenai/allennlp/actions">
        <img alt="Build" src="https://github.com/allenai/allennlp-server/workflows/CI/badge.svg?event=push&branch=main">
    </a>
    <a href="https://pypi.org/project/allennlp-server/">
        <img alt="PyPI" src="https://img.shields.io/pypi/v/allennlp-server">
    </a>
    <a href="https://github.com/agururajvais/allennlp-server/blob/master/LICENSE">
        <img alt="License" src="https://img.shields.io/github/license/allenai/allennlp-server?color=blue&cachedrop">
    </a>
    <a href="https://codecov.io/gh/allenai/allennlp">
        <img alt="Codecov" src="https://codecov.io/gh/allenai/allennlp-server/branch/main/graph/badge.svg">
    </a>
    <br/>
</p>

<div align="center">
❗️ To file an issue, please open a ticket on <a href="https://github.com/allenai/allennlp/issues/new/choose">allenai/allennlp</a> and tag it with "Server". ❗️
</div>

##  Installation

### From PyPI

`allennlp-server` is available on PyPI. To install with `pip`, just run

```bash
pip install allennlp-server
```

Note that the `allennlp-server` package is tied to the [`allennlp` core package](https://pypi.org/projects/allennlp) and [`allennlp-models` package](https://pypi.org/projects/allennlp-models). Therefore when you install the server package you will get the latest compatible version of `allennlp` and `allennlp-models` (if you haven't already installed `allennlp` or `allennlp-models`). For example,

```bash
pip install allennlp-server
pip freeze | grep allennlp
# > allennlp==2.2.0
# > allennlp-models==2.2.0
# > allennlp-server==1.0.0
```

### From source

You can install AllenNLP Server by cloning our git repository:

```bash
git clone https://github.com/allenai/allennlp-server
```

Create a Python 3.8 virtual environment, and install AllenNLP Server in `editable` mode by running:

```bash
pip install --editable .
```

## Running AllenNLP Server

AllenNLP Server is a plugin for AllenNLP which adds a "serve" subcommand:

```bash
allennlp serve --help
```


