Metadata-Version: 2.1
Name: requestsWS
Version: 0.0.6
Summary: The Requests like WS module
Home-page: https://github.com/jona799t/RequestsWS
Author: jona799t
License: UNKNOWN
Keywords: python,requests,websocket
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown

# RequestsWS
The Requests like WS module

# Installation
```
pip install requestsWS
```

# Usage
Sessions is not documented yet, but it works like requests
```python
import requestsWS

payload = {
    "message": "hello world!"
}
resp = requestsWS.post("wss://localhost:8765", identifiers={"message": "Hi there!"}, json=payload)
print(resp.text)

payload = {
    "method": "server.ping"
}
requestsWS.keepConnection('ws://localhost:8765', interval=20, json=payload)

payload = "hello world"
resp = requestsWS.post("ws://localhost:8765", data=payload)
print(resp.json())
```

# TO DO
   - Multiple connections at once (Use array instead of string), until then use Sessions
   - Add support for identifiers that are deeper into the json
   - Add string support for identifier (Check if identifier in string)
   - Add string support for identifier (Check if identifier in string)  
   - Fix timeout  

# Documentation
Coming soon!


