Skip to content
Myr

Removed leading $ from cli code blocks (#3174)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Shiny · committed by GitHub · parent a7092af · Browse files · 5 files+20 added−20 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Tom Christie <tom@tomchristie.com>

Diff stats

5 files+20 added−20 removed

  • other:+20 added−20 removed

5 files+20 added−20 removed

modified:docs/advanced/proxies.md+1 added-1 removed
modified:docs/contributing.md+9 added-9 removed
44 unmodified lines
45Then clone your fork with the following command replacing `YOUR-USERNAME` with46your GitHub username:4748```shell49$ git clone https://github.com/YOUR-USERNAME/httpx49git clone https://github.com/YOUR-USERNAME/httpx50```5152You can now install the project and its dependencies using:5354```shell55$ cd httpx56$ scripts/install55cd httpx56scripts/install57```5859## Testing and Linting60
2 unmodified lines
6364To run the tests, use:6566```shell67$ scripts/test67scripts/test68```6970!!! warning71 The test suite spawns testing servers on ports **8000** and **8001**.
3 unmodified lines
7576For example, to run a single test script:7778```shell79$ scripts/test tests/test_multipart.py79scripts/test tests/test_multipart.py80```8182To run the code auto-formatting:8384```shell85$ scripts/lint85scripts/lint86```8788Lastly, to run code checks separately (they are also run as part of `scripts/test`), run:8990```shell91$ scripts/check91scripts/check92```9394## Documenting95
1 unmodified line
9798To run the documentation site locally (useful for previewing changes), use:99100```shell101$ scripts/docs101scripts/docs102```103104## Resolving Build / CI Failures105
15 unmodified lines
121This job failing means there is either a code formatting issue or type-annotation issue.122You can look at the job output to figure out why it's failed or within a shell run:123124```shell125$ scripts/check125scripts/check126```127128It may be worth it to run `$ scripts/lint` to attempt auto-formatting the code129and if that job succeeds commit the changes.
106 unmodified lines
modified:docs/http2.md+1 added-1 removed
modified:docs/index.md+5 added-5 removed
26 unmodified lines
2728Install HTTPX using pip:2930```shell31$ pip install httpx31pip install httpx32```3334Now, let's get started:35
13 unmodified lines
49Or, using the command-line client.5051```shell52# The command line client is an optional dependency.53$ pip install 'httpx[cli]'53pip install 'httpx[cli]'54```5556Which now allows us to use HTTPX directly from the command-line...57
71 unmodified lines
129130Install with pip:131132```shell133$ pip install httpx133pip install httpx134```135136Or, to include the optional HTTP/2 support, use:137138```shell139$ pip install httpx[http2]139pip install httpx[http2]140```141142To include the optional brotli and zstandard decoders support, use:143144```shell145$ pip install httpx[brotli,zstd]145pip install httpx[brotli,zstd]146```147148HTTPX requires Python 3.8+149
1 unmodified line
modified:README.md+4 added-4 removed
20 unmodified lines
2122Install HTTPX using pip:2324```shell25$ pip install httpx25pip install httpx26```2728Now, let's get started:29
12 unmodified lines
4243Or, using the command-line client.4445```shell46$ pip install 'httpx[cli]' # The command line client is an optional dependency.46pip install 'httpx[cli]' # The command line client is an optional dependency.47```4849Which now allows us to use HTTPX directly from the command-line...50
42 unmodified lines
9394Install with pip:9596```shell97$ pip install httpx97pip install httpx98```99100Or, to include the optional HTTP/2 support, use:101102```shell103$ pip install httpx[http2]103pip install httpx[http2]104```105106HTTPX requires Python 3.8+.107
42 unmodified lines