Skip to content

Commit

Permalink
Add summary instructions and copyright notice
Browse files Browse the repository at this point in the history
  • Loading branch information
volcan01010 committed Aug 20, 2021
1 parent 119ea9f commit 7c839c9
Showing 1 changed file with 60 additions and 4 deletions.
64 changes: 60 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,69 @@
# AGS Utilities

A FastAPI implementation of the [AGS Python library](https://gitlab.com/ags-data-format-wg/ags-python-library) to:
HTTP API for the [AGS Python library](https://gitlab.com/ags-data-format-wg/ags-python-library).

It can:

- Validate AGS files to v4.x of the AGS data format standard
- Convert AGS files .ags<>.xlsx
- Convert between AGS format files and spreadsheets files `.ags` <-> `.xlsx`

Additionally .ags files can be validated for submission to the [National Geoscience Data Center (NGDC)](http://transfer.bgs.ac.uk/ingestion)

# Documentation

Read the docs at https://britishgeologicalsurvey.github.io/AGS-Validator/ for full documentation
## Documentation

Read the docs at https://britishgeologicalsurvey.github.io/AGS-Validator/ for full documentation.


## Quick start

The simplest way to run the validation service is via Docker:

```
docker run -p 80:80 --name ags-validator ghcr.io/britishgeologicalsurvey/ags_utilities
```

Navigate to [http://localhost](http://localhost) to see the landing page or
[http://localhost/docs](http://localhost/docs) to see the API documentation via
the Swagger interface.


## Development

### Running locally

AGS Validator is written in Python and based on the
[FastAPI](https://fastapi.tiangolo.com/) framework.
It runs on the [Uvicorn](https://www.uvicorn.org/) ASGI server.

Use the following commands to run the API locally:

```bash
git clone https://github.com/BritishGeologicalSurvey/AGS-validator
cd AGS-validator
pip install -r requirements.txt
uvicorn app.main:app --reload
```

By default, the API is served at
[http://localhost:8000](http://localhost:8000).

### Running tests

Use the following to run the tests:

```bash
pip install -r requirements_dev.txt
export PYTHONPATH=.
pytest -vs test
```

The test environment is configured so that adding `--pdb` to the test command
will start an IPython debugger session in the event of test failure.


### Licence

`AGS Validator` was created by and is maintained by the British Geological Survey.
It is distributed under the [LGPL v3.0 licence](LICENSE).
Copyright: © BGS / UKRI 2021

0 comments on commit 7c839c9

Please sign in to comment.