Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

HTTPStream is an HTTP client library for Python that is designed to allow incremental receipt and handling of web content.

Project Description

HTTPStream

HTTPStream is an HTTP client library for Python that wraps the standard library HTTP client with a convenient resource-based interface and also provides support for incremental JSON document retrieval and RFC 6570 URI Templates.

Installation

HTTPStream is hosted on PyPI and so to install, simply use pip:

pip install httpstream

Quick Start

>>> from httpstream import get
>>> get("https://api.duckduckgo.com/?q=neo4j&format=json").content
{'Abstract': 'Neo4j is an open-source graph database, implemented in Java.',
 'AbstractSource': 'Wikipedia',
 'AbstractText': 'Neo4j is an open-source graph database, implemented in Java.',
 'AbstractURL': 'https://en.wikipedia.org/wiki/Neo4j',
 'Answer': '',
 'AnswerType': '',
 'Definition': '',
 'DefinitionSource': '',
 'DefinitionURL': '',
 'Heading': 'Neo4j',
 'Image': 'https://i.duckduckgo.com/i/4d74091a.jpg',
 'Redirect': '',
 'RelatedTopics': [{'FirstURL': 'http://duckduckgo.com/noSQL',
   'Icon': {'Height': '', 'URL': '', 'Width': ''},
   'Result': '<a href="http://duckduckgo.com/noSQL">Structured storage</a> - A NoSQL database provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases.',
   'Text': 'Structured storage - A NoSQL database provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases.'},
  {'FirstURL': 'http://duckduckgo.com/CODASYL',
   'Icon': {'Height': '', 'URL': '', 'Width': ''},
   'Result': '<a href="http://duckduckgo.com/CODASYL">CODASYL</a> - CODASYL (often spelled Codasyl) is an acronym for "Conference on Data Systems Languages".',
   'Text': 'CODASYL - CODASYL (often spelled Codasyl) is an acronym for "Conference on Data Systems Languages".'},
  {'FirstURL': 'http://duckduckgo.com/Cypher_Query_Language',
   'Icon': {'Height': '', 'URL': '', 'Width': ''},
   'Result': '<a href="http://duckduckgo.com/Cypher_Query_Language">Cypher Query Language</a>',
   'Text': 'Cypher Query Language'},
  {'FirstURL': 'http://duckduckgo.com/c/Software_companies_of_Sweden',
   'Icon': {'Height': '', 'URL': '', 'Width': ''},
   'Result': '<a href="http://duckduckgo.com/c/Software_companies_of_Sweden">Software companies of Sweden</a>',
   'Text': 'Software companies of Sweden'},
  {'FirstURL': 'http://duckduckgo.com/c/Structured_storage',
   'Icon': {'Height': '', 'URL': '', 'Width': ''},
   'Result': '<a href="http://duckduckgo.com/c/Structured_storage">Structured storage</a>',
   'Text': 'Structured storage'},
  {'FirstURL': 'http://duckduckgo.com/c/NoSQL',
   'Icon': {'Height': '', 'URL': '', 'Width': ''},
   'Result': '<a href="http://duckduckgo.com/c/NoSQL">NoSQL</a>',
   'Text': 'NoSQL'},
  {'FirstURL': 'http://duckduckgo.com/c/Free_software_programmed_in_Java',
   'Icon': {'Height': '', 'URL': '', 'Width': ''},
   'Result': '<a href="http://duckduckgo.com/c/Free_software_programmed_in_Java">Free software programmed in Java</a>',
   'Text': 'Free software programmed in Java'}],
 'Results': [{'FirstURL': 'http://neo4j.org',
   'Icon': {'Height': 16,
    'URL': 'https://i.duckduckgo.com/i/neo4j.org.ico',
    'Width': 16},
   'Result': '<a href="http://neo4j.org"><b>Official site</b></a><a href="http://neo4j.org"></a>',
   'Text': 'Official site'}],
 'Type': 'A'}

Full Documentation

For further information on how to use HTTPStream, go to http://nigelsmall.com/httpstream.

Release History

This version
History Node

1.3.0

History Node

1.2.1

History Node

1.2.0

History Node

1.1.0

History Node

1.0.10

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

History Node

0.9.9

History Node

0.9.8

History Node

0.9.7

History Node

0.9.6

History Node

0.9.5

History Node

0.9.4

History Node

0.9.3

History Node

0.9.2

History Node

0.9.1

History Node

0.9.0

History Node

0.2

History Node

0.1

Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
httpstream-1.3.0.tar.gz
(25.2 kB) Copy SHA256 Hash SHA256
Source None Jul 18, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting