Skip to main content

simple, high performance http requests library

Project description

HTTO is high performance and simple HTTP library.

install htto library on windows/linux

pip install htto

how to use:

# 1 import htto library
import htto

# 2 creat client to save your connections session
cn = htto.client(timeout=10)
cn_without_timeout = cn()

# 3 send http request
response = cn.get('https://httpbin.org/ip')

# 4 take response with any format
print(response.json()['origin'])
print(response.text())
print(response.body())
print(response.headers().get('User-Agent'))

# 5 close connection after finish
cn.close_host('httpbin.org')

# 6 close all connections in the client
cn.close()

send http request directly

import htto

# send http request without client
response = htto.get('https://httpbin.org')
print(response.text())

soon htto will support proxies HTTP, HTTPS, SOCKS4, SOCKS5

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

htto-1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

htto-1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file htto-1.0.tar.gz.

File metadata

  • Download URL: htto-1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for htto-1.0.tar.gz
Algorithm Hash digest
SHA256 f7d50634daab4c27c4b902fec4d86eb774319f793bda2e3bf4e0871cf43fed3b
MD5 61fe9f4686cef5d25681fafd1848cb2a
BLAKE2b-256 4495620a4efa4be65dacc77efc2379fd44de507a8c85dd2b1e2126e12cf20075

See more details on using hashes here.

File details

Details for the file htto-1.0-py3-none-any.whl.

File metadata

  • Download URL: htto-1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for htto-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7837e63fcb741d0690690878ccb52d1d16a63dd7cb01aae098260659e19af0cb
MD5 1404002955d47eb0102250c1eced9d42
BLAKE2b-256 7d493ca79de58c62ec779dc169dfa57b55ad2216eff4d0d3581cecfcd83a6195

See more details on using hashes here.

Supported by

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