Skip to main content

RequestsWS

The Requests like WS module

Installation

pip install requestsWS

Usage

Sessions is not documented yet, but it works like requests

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('wss://localhost:8765', interval=20, json=payload)

payload = "hello world"
resp = requestsWS.post("wss://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!

Download files

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

Source Distribution

requestsWS-0.0.17.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

requestsWS-0.0.17-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file requestsWS-0.0.17.tar.gz.

File metadata

  • Download URL: requestsWS-0.0.17.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for requestsWS-0.0.17.tar.gz
Algorithm Hash digest
SHA256 48141d96d07b2fce9458b62cccc9765baf419eadc7d254686562af552245682f
MD5 79b4eddfcc74680f2d88d3d9ea3873bd
BLAKE2b-256 0cbbfc2048c4dd6d31cc1b5b4234627a4e1bcfe3aead2df4472183ca1eddbd9f

See more details on using hashes here.

File details

Details for the file requestsWS-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: requestsWS-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for requestsWS-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 4b00319c9437ef5557e1189e87cddc0fb2e64035f17032314d2b5bf83e92ebc9
MD5 0b2fd84ed2148a6cfccc2dd90ea15de4
BLAKE2b-256 a4a14409756acbb61645cba5093cca23f5b665edca2b5733fedf9b70ea75ed2e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.17 This release

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page