semvec/pypi-packages huggingface dataset:
plastron-web 4.6.3
Plastron HTTP web app
Requires Python: >=3.10

# plastron-web

HTTP server for synchronous remote operations

## Running with Python

As a Flask application: 

```bash
flask --app plastron.web:create_app("/path/to/docker-plastron.yml") run
```

To enable debugging, for hot code reloading, set `FLASK_DEBUG=1` either on 
the command line or in a `.env` file:

```bash
FLASK_DEBUG=1 flask --app plastron.web:create_app("/path/to/docker-plastron.yml") run
```

Using the console script entrypoint, which runs the application with the 
[Waitress] WSGI server:

```bash
plastrond-http
```

## Docker Image

The plastron-stomp package contains a [Dockerfile](Dockerfile) for
building the `plastrond-http` Docker image.

### Building

**Important:** This image **MUST** be built from the main _plastron_
project directory, in order to include the other plastron packages in the
build context.

```bash
docker build -t docker.lib.umd.edu/plastrond-http:latest \
    -f plastron-web/Dockerfile .
```

## Configuration

The application is configured through environment variables.

| Name       | Value                                      | Default |
|------------|--------------------------------------------|---------|
| `JOBS_DIR` | Root directory for storing job information | `jobs`  |

[umd-fcrepo-docker]: https://github.com/umd-lib/umd-fcrepo-docker
[Waitress]: https://pypi.org/project/waitress/
plastron-stomp 4.6.3
Plastron STOMP daemon
Requires Python: >=3.10

# plastron-stomp

STOMP listener client for asynchronous and synchronous operations

## Running with Python

As a Python module:

```bash
python -m plastron.stomp.daemon -c <config file>
```

Using the console script entrypoint:

```bash
plastrond-stomp -c <config file>
```

## Integration Tests

See the [integration test README](integration-tests/README.md) for
instructions on running the manual integration tests.

## Docker Image

The plastron-stomp package contains a [Dockerfile](Dockerfile) for 
building the `plastrond-stomp` Docker image.

### Building

**Important:** This image **MUST** be built from the main _plastron_ 
project directory, in order to include the other plastron packages in the 
build context.

```bash
docker build -t docker.lib.umd.edu/plastrond-stomp:latest \
    -f plastron-stomp/Dockerfile .
```

## STOMP Message Headers

The Plastron Daemon expects the following headers to be present in messages
received on the `JOBS` destination:

* `PlastronCommand`
* `PlastronJobId`

Additional arguments for a command are sent in headers with the form `PlastronArg-{name}`.
Many of these are specific to the command, but there is one with standard behavior across
all commands:

| Header                     | Description                                   |
|----------------------------|-----------------------------------------------|
| `PlastronArg-on-behalf-of` | Username to delegate repository operations to |

See the [messages documentation](docs/messages.md) for details on the headers 
and bodies of the messages the Plastron STOMP Daemon emits.

[umd-fcrepo-docker]: https://github.com/umd-lib/umd-fcrepo-docker
plastron-client 4.6.3
HTTP client for interacting with Fedora 4 repositories
Requires Python: >=3.10

# plastron-client

HTTP client for connecting to an LDP server

## Quick Start

```python
from plastron.client import Client, Endpoint

endpoint = Endpoint('http://localhost:8080/fcrepo/rest')
client = Client(endpoint)

response = client.get('http://localhost:8080/fcrepo/rest/foobar123')

graph = client.get_graph('http://localhost:8080/fcrepo/rest/foobar123')
```