Skip to content

Commit

Permalink
uv shill
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Oct 12, 2024
1 parent 8c384ba commit 42b0f5d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,26 @@ Visit the [website](https://posting.sh) for more information, the roadmap, and t

Posting can be installed via [uv](https://docs.astral.sh/uv/getting-started/installation/) on MacOS, Linux, and Windows.

`uv` is a single Rust binary that you can use to install Python packages in an isolated environment on MacOS, Linux, and Windows. It's significantly faster than alternative tools, and will have you up and running in seconds.
`uv` is a single Rust binary that you can use to install Python apps. It's significantly faster than alternative tools, and will get you up and running with Posting in seconds.

You don't even need to worry about installing Python yourself - `uv` will manage everything for you.

```bash
# quick install on MacOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# install Posting
uv tool install --python 3.11 posting
# install Posting (will also quickly install Python 3.12 if needed)
uv tool install --python 3.12 posting
```

`uv` can also be installed via Homebrew, Cargo, Winget, pipx, and more. See the [installation guide](https://docs.astral.sh/uv/getting-started/installation/) for more information.

`uv` also makes it easy to install additional Python packages into your Posting environment, which you can then use in your pre-request/post-response scripts.

### Prefer `pipx`?

If you'd prefer to use `pipx`, that works too: `pipx install posting`.

## Learn More

Learn more about Posting at [https://posting.sh](https://posting.sh).
Expand Down
7 changes: 7 additions & 0 deletions src/posting/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ class FocusSettings(BaseModel):
If this value is unset, focus will not shift when a response is received."""

on_request_open: (
Literal["headers", "body", "query", "auth", "info", "scripts", "options"] | None
) = Field(default=None)
"""On opening a request using the sidebar collection browser, move focus to the specified target.
If this value is unset, focus will not shift when a request is opened."""


class CertificateSettings(BaseModel):
"""Configuration for SSL CA bundles and client certificates."""
Expand Down

0 comments on commit 42b0f5d

Please sign in to comment.