Skip to main content

Simple HTTP CLI json data uploader

Project description

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       |
+------------+------------+---------------+---------------+

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

http_uploader_cli-0.1.4.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

http_uploader_cli-0.1.4-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file http_uploader_cli-0.1.4.tar.gz.

File metadata

  • Download URL: http_uploader_cli-0.1.4.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.6.30-gentoo-dist

File hashes

Hashes for http_uploader_cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 eeb8d45699450b8513c63b88e473d5f43191e30c6e17ba5b1f48faacbe1a3a7d
MD5 70bdf780c612303ff35fc56e86cd017a
BLAKE2b-256 2d4eaa624d722e890d6a53a350d077ebac849d1950ed8c11e304213eb3bae9c3

See more details on using hashes here.

File details

Details for the file http_uploader_cli-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: http_uploader_cli-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.6.30-gentoo-dist

File hashes

Hashes for http_uploader_cli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 99a3bc464bd22fa31182b81e33def499dbc34b1ccf6cd3640338d6baf7d42507
MD5 e2e48f4bef33ae52c3fb71b34a882aad
BLAKE2b-256 2a00d0af80391d54e30dc0b90255d8028e5f86b7aefe29850355851afedb8ec7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page