semvec/pypi-packages huggingface dataset:
simpleclient 0.0.5
Python Simple HTTP Client
License: MIT

# simpleclient
simpleclient "Python Simple HTTP Client" is a simple [guzzle](https://github.com/guzzle/guzzle)-like library built on top of The Standard Python Library. Unlike guzzle, simpleclient is smaller, and not full of features. It is compatible with Python 2.x and 3.x. There is also a [php-simple-client](https://github.com/nggit/php-simple-client) written in PHP.

## Install
```
pip install simpleclient
```
## Quick Start
```python
import simpleclient

client = simpleclient.Stream()
```
## Simple GET
**Send a GET Request**
```python
client.seturl('https://www.google.com/') # required to set an url
client.send()
```
**Display Responses**
```python
print(client.getheader())
# HTTP/1.1 200 OK
# Date: Mon, 14 Jan 2021 14:14:48 GMT
# Expires: -1
# Cache-Control: private, max-age=0
# Content-Type: text/html; charset=UTF-8
# ...

print(client.getheader(0))
# HTTP/1.1 200 OK

print(client.getheader('Content-Type'))
# text/html; charset=UTF-8

print(client.getbody())
# <!doctype html>...</html>
```
## Custom Requests
Custom requests using the request() method.
```python
client.seturl('https://www.google.com/') # required to set an url
client.request('HEAD')
client.send()
```
You can also provide a payload, for example, for a POST request. The payload can be a dictionary, or a string. It will automatically send a 'Content-Type: application/x-www-form-urlencoded' header. You can set it manually with the setheaders() method for other types required.
```python
client.request('POST', {'user': 'myusername', 'pass': 'mypassword'})
```
## Setting Headers To Be Sent
Setting Headers must be done before calling request() and send() method.
```python
client.setheaders([
    'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0',
    'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
    'Accept-Language: en-US,en;q=0.5'
])
```
## Common
```python
print(client.getprotocol())        # HTTP
print(client.getprotocolversion()) # 1.1
print(client.getstatuscode())      # 200
print(client.getreasonphrase())    # OK
```
## Debug
You can enable debug mode. This will allow you to monitor the request header being sent.
```python
client = simpleclient.Stream(debug=True)
client.seturl('https://www.google.com/') # required to set an url
client.request('HEAD')
client.send()

# finally, show the response
print(client.getheader())
```
And other features to hack like the getresponse() method.
fastlayers 0.0.1
Fast-Layers is a python library for Keras and Tensorflow users: The fastest way to build complex deep neural network architectures with sequential models
License: MIT
Keywords: keras

# Fast-Layers
Fast-Layers is a python library for Keras and Tensorflow users: The fastest way to build complex deep neural network architectures with sequential models



## Introduction
Tensorflow's sequential model is a very intuitive way to start learning about Deep Neural Networks.
However it is quite hard to dive into more complex networks without learning more about Keras.

Well it won't be hard anymore with Fast-layers! Define your Connectors and Pipes to start building complex layers in a sequential fashion.

I create fast-layers for beginners who wants to build more advanced networks and for experimented users who wants to quickly build and test complex module architectures.



## Try it yourself: Tensorflow's MNIST tutorial but using Inception modules

MNIST tutorial: https://www.tensorflow.org/datasets/keras_example

Szegedy et al. 2014, Going deeper with convolutions: https://arxiv.org/pdf/1409.4842.pdf!