Skip to main content

A minimal HTTP/1.x client that is only used to deal with APIs. It is not designed to be bulletproof or full-featured like requests.

Project description

getcontents

A minimal HTTP/1.x client that is only used to deal with APIs. It is not designed to be bulletproof or full-featured like requests.

import asyncio

from getcontents import HTTPClient


async def main():
    async with HTTPClient('www.google.com', 80) as client:
        response = await client.send('GET /', data=b'')

        print(response.header)


if __name__ == '__main__':
    asyncio.run(main())

License

MIT License

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

getcontents-0.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

getcontents-0.0.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file getcontents-0.0.0.tar.gz.

File metadata

  • Download URL: getcontents-0.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for getcontents-0.0.0.tar.gz
Algorithm Hash digest
SHA256 c6c2c7f6fec6deb44a16a5631169b7714793fd2aa2309b6b0dc27efc8b5d0421
MD5 ba7a2dbe31e021b77ed9722341400f1d
BLAKE2b-256 acfc9344bb9d48fe5106d5245c2f9e51f2f45efef969d54647343a6e9a17fd33

See more details on using hashes here.

File details

Details for the file getcontents-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: getcontents-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for getcontents-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3cec089bdc4d5b88d43dadee5d30e55deb95f5e187cd9fe777919cdea0c636b8
MD5 776631bb46c1853ff172a6e0e2813e9a
BLAKE2b-256 cc6abcf617bffea1936d806c0cebefabddc51abff97cdcd7310791954752e3a9

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