Skip to content

Commit

Permalink
Lint README
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Dec 7, 2023
1 parent 19b6461 commit 00945d8
Showing 1 changed file with 27 additions and 13 deletions.
40 changes: 27 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# agentarchives

[![PyPI version](https://img.shields.io/pypi/v/agentarchives.svg)](https://pypi.python.org/pypi/agentarchives)
[![GitHub CI](https://github.com/artefactual-labs/agentarchives/actions/workflows/test.yml/badge.svg)](https://github.com/artefactual-labs/agentarchives/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/artefactual-labs/agentarchives/branch/master/graph/badge.svg?token=rNmMA59AqJ)](https://codecov.io/gh/artefactual-labs/agentarchives)

# agentarchives

Clients to retrieve, add, and modify records from archival management systems.

## Installation
Expand All @@ -17,17 +17,22 @@ Or you can install it directly from git
`pip install git+https://github.com/artefactual-labs/agentarchives.git`

### Dependency issue on MacOs
Agentarchvies depends on the [mysqlclient](https://pypi.org/project/mysqlclient/) package which has a [bug](https://bugs.mysql.com/bug.php?id=86971) which can possibly fail an install when using homebrew on MacOs computers. A solution suggested on the mysqlclient site is to change `mysql_config` on or about line 112:

```
Agentarchvies depends on the [mysqlclient](https://pypi.org/project/mysqlclient/)
package which has a [bug](https://bugs.mysql.com/bug.php?id=86971) which can
possibly fail an install when using homebrew on MacOs computers. A solution
suggested on the mysqlclient site is to change `mysql_config` on or about line
112:

```text
# Create options
libs="-L$pkglibdir"
libs="$libs -l "
```

to

```
```text
# Create options
libs="-L$pkglibdir"
libs="$libs -lmysqlclient -lssl -lcrypto"
Expand All @@ -48,16 +53,20 @@ First, you need to import the module in your Python script:
from agentarchives import archivesspace
```

Then, initiate a new client, passing in the URL, user name, password, port and repository for your AS instance:
Then, initiate a new client, passing in the URL, user name, password, port and
repository for your AS instance:

```python
client = archivesspace.ArchivesSpaceClient('http://localhost', 'admin', 'admin', 8089, 2)
```

Using your client, call one of the included functions (documented in `client.py`). For example, the following:
Using your client, call one of the included functions (documented in `client.py`).
For example, the following:

$ resource = client.get_record('/repositories/2/resources/1')
$ print resource
```python
resource = client.get_record('/repositories/2/resources/1')
print resource
```

will return:

Expand Down Expand Up @@ -135,16 +144,20 @@ First, you need to import the module in your Python script:
from agentarchives import atom
```

Then, initiate a new client, passing in the URL, REST API access token, password, and port for your AtoM instance:
Then, initiate a new client, passing in the URL, REST API access token, password,
and port for your AtoM instance:

```python
client = atom.AtomClient('http://localhost', '68405800c6612599', 80)
```

Using your client, call one of the included functions (documented in `client.py`). For example, the following:
Using your client, call one of the included functions (documented in `client.py`).
For example, the following:

$ resource = client.get_record('test-fonds')
$ print resource
```python
resource = client.get_record('test-fonds')
print resource
```

Will return:

Expand All @@ -171,6 +184,7 @@ Will return:
```

Current AtoM client limitations (versus the ArchivesSpace client):

* Identifier wildcard search not supported
* Creation of multiple notes not supported
* Nested digital objects not supported
Expand Down

0 comments on commit 00945d8

Please sign in to comment.