Http Uploader CLI
Dependencies
- aiohttp
- aiofiles
- aiomultiprocess
| Parameter | Description |
|---|---|
| --input-file [path-to-file] | Path to txt file to read |
| --url [url] | Service url to send POST |
| --filter [a.b.c == [value]] | Filter to handle JSONs (default: None) |
| --n-lines [num] | Number of lines to send (default: all) |
| --cpus [num] | Processes to use for reading file (default: 4) |
| --coroutines [num] | Requests amount to send (default: send all from 1 request) |
Example
$ python -m http_uploader --input-file ./tests/integration/data/test_jsons.txt --filter 'd == "ddd"' --url https://httpbin.org/post
+------------+------------+---------------+---------------+
| Sent lines | Sent bytes | Skipped lines | Skipped bytes |
+------------+------------+---------------+---------------+
| 4 | 204 | 0 | 0 |
+------------+------------+---------------+---------------+
Metadata
Release files for http-uploader-cli 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| http_uploader_cli-0.1.4.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| http_uploader_cli-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / http_uploader_cli-0.1.4.tar.gz
| Download URL | http_uploader_cli-0.1.4.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eeb8d45699450b8513c63b88e473d5f43191e30c6e17ba5b1f48faacbe1a3a7d
|
|
BLAKE2b-256 checksum How to use checksums |
2d4eaa624d722e890d6a53a350d077ebac849d1950ed8c11e304213eb3bae9c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.9 Linux/6.6.30-gentoo-dist
|
Release files / http_uploader_cli-0.1.4-py3-none-any.whl
| Download URL | http_uploader_cli-0.1.4-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99a3bc464bd22fa31182b81e33def499dbc34b1ccf6cd3640338d6baf7d42507
|
|
BLAKE2b-256 checksum How to use checksums |
2a00d0af80391d54e30dc0b90255d8028e5f86b7aefe29850355851afedb8ec7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.9 Linux/6.6.30-gentoo-dist
|