improved docs, dep bump, and switched to setuptools

This commit is contained in:
Kevin Froman 2020-04-06 03:21:04 -05:00
parent 48d38192d2
commit 80ef09fa1a
3 changed files with 41 additions and 5 deletions

View File

@ -2,6 +2,19 @@
This project uses Semantic Versioning This project uses Semantic Versioning
## 1.0.2
Fixed setup.py url
## 1.0.1
Updated requests version
Switched to setuptools
Updated readme
## 1.0.0 ## 1.0.0
Post and get now return a tuple with a full requests response object and the response data Post and get now return a tuple with a full requests response object and the response data

View File

@ -4,6 +4,29 @@
Python module to stream HTTP requests in order to ensure content length sanity. Python module to stream HTTP requests in order to ensure content length sanity.
# Install
`$ pip install StreamedRequests`
# Basic Usage
```
from streamedrequests import get, post
def my_func(data):
# prints every 5 bytes of data from site
print(data)
get('https://example.com/', callback=my_func, chunk_size=5)
```
sync: bool (default True) when set to false creates and starts a new thread for streaming
request_headers param can be used to set req headers
post() is the same, but use post_data to set request body.
# Contact # Contact
https://chaoswebs.net/ https://chaoswebs.net/

View File

@ -1,12 +1,12 @@
from distutils.core import setup from setuptools import setup, find_packages
setup(name='streamedrequests', setup(name='streamedrequests',
version='1.0.0', version='1.0.2',
description='Library for streaming http get or post request\'s responses', description='Library for streaming http get or post request\'s responses',
author='Kevin Froman', author='Kevin Froman',
author_email='beardog@mailbox.org', author_email='beardog@mailbox.org',
url='https://github.com/beardog108/streamedrequests', url='https://github.com/beardog108/StreamedRequests',
packages=['streamedrequests'], packages=find_packages(exclude=['contrib', 'docs', 'tests']),
install_requires=['requests'], install_requires=['requests'],
classifiers=[ classifiers=[
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",