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
Provenance
- Commit
fa6dac8- Tree
0f987f8- Author
Shiny <zhushiny@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
a7092af
5 files changed+20 added−20 removed
modified:docs/advanced/proxies.md+1 added-1 removed
71 unmodified lines727374757676777879803 unmodified lines71 unmodified lines
You can install SOCKS support using `pip`:
```shell$ pip install httpx[socks]pip install httpx[socks]```
You can now configure a client to make requests via a proxy using the SOCKS protocol:
3 unmodified linesmodified:docs/contributing.md+9 added-9 removed
44 unmodified lines45 Then clone your fork with the following command replacing `YOUR-USERNAME` with46 your GitHub username:47 48 ```shell49-$ git clone https://github.com/YOUR-USERNAME/httpx49+git clone https://github.com/YOUR-USERNAME/httpx50 ```51 52 You can now install the project and its dependencies using:53 54 ```shell55-$ cd httpx56-$ scripts/install55+cd httpx56+scripts/install57 ```58 59 ## Testing and Linting60 2 unmodified lines63 64 To run the tests, use:65 66 ```shell67-$ scripts/test67+scripts/test68 ```69 70 !!! warning71 The test suite spawns testing servers on ports **8000** and **8001**.3 unmodified lines75 76 For example, to run a single test script:77 78 ```shell79-$ scripts/test tests/test_multipart.py79+scripts/test tests/test_multipart.py80 ```81 82 To run the code auto-formatting:83 84 ```shell85-$ scripts/lint85+scripts/lint86 ```87 88 Lastly, to run code checks separately (they are also run as part of `scripts/test`), run:89 90 ```shell91-$ scripts/check91+scripts/check92 ```93 94 ## Documenting95 1 unmodified line97 98 To run the documentation site locally (useful for previewing changes), use:99 100 ```shell101-$ scripts/docs101+scripts/docs102 ```103 104 ## Resolving Build / CI Failures105 15 unmodified lines121 This job failing means there is either a code formatting issue or type-annotation issue.122 You can look at the job output to figure out why it's failed or within a shell run:123 124 ```shell125-$ scripts/check125+scripts/check126 ```127 128 It may be worth it to run `$ scripts/lint` to attempt auto-formatting the code129 and if that job succeeds commit the changes.106 unmodified linesmodified:docs/http2.md+1 added-1 removed
26 unmodified lines2728293031313233343533 unmodified lines26 unmodified linestrying out our HTTP/2 support. You can do so by first making sure to installthe optional HTTP/2 dependencies...
```shell$ pip install httpx[http2]pip install httpx[http2]```
And then instantiating a client with HTTP/2 support enabled:
33 unmodified linesmodified:docs/index.md+5 added-5 removed
26 unmodified lines27 28 Install HTTPX using pip:29 30 ```shell31-$ pip install httpx31+pip install httpx32 ```33 34 Now, let's get started:35 13 unmodified lines49 Or, using the command-line client.50 51 ```shell52 # The command line client is an optional dependency.53-$ pip install 'httpx[cli]'53+pip install 'httpx[cli]'54 ```55 56 Which now allows us to use HTTPX directly from the command-line...57 71 unmodified lines129 130 Install with pip:131 132 ```shell133-$ pip install httpx133+pip install httpx134 ```135 136 Or, to include the optional HTTP/2 support, use:137 138 ```shell139-$ pip install httpx[http2]139+pip install httpx[http2]140 ```141 142 To include the optional brotli and zstandard decoders support, use:143 144 ```shell145-$ pip install httpx[brotli,zstd]145+pip install httpx[brotli,zstd]146 ```147 148 HTTPX requires Python 3.8+149 1 unmodified linemodified:README.md+4 added-4 removed
20 unmodified lines21 22 Install HTTPX using pip:23 24 ```shell25-$ pip install httpx25+pip install httpx26 ```27 28 Now, let's get started:29 12 unmodified lines42 43 Or, using the command-line client.44 45 ```shell46-$ pip install 'httpx[cli]' # The command line client is an optional dependency.46+pip install 'httpx[cli]' # The command line client is an optional dependency.47 ```48 49 Which now allows us to use HTTPX directly from the command-line...50 42 unmodified lines93 94 Install with pip:95 96 ```shell97-$ pip install httpx97+pip install httpx98 ```99 100 Or, to include the optional HTTP/2 support, use:101 102 ```shell103-$ pip install httpx[http2]103+pip install httpx[http2]104 ```105 106 HTTPX requires Python 3.8+.107 42 unmodified lines