Skip to content

Commit

Permalink
client updates
Browse files Browse the repository at this point in the history
Signed-off-by: Praneeth Bedapudi <praneeth@bpraneeth.com>
  • Loading branch information
bedapudi6788 committed Mar 14, 2024
1 parent 82823ab commit f2e15f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions clients/python/fdclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@

class FDClient:
def __init__(self, server_url, compression=True):
assert (
server_url.startswith("http://") or server_url.startswith("https://")
), "Server URL must start with http:// or https://"

assert (
server_url.count("/") == 2
), "Server URL must be in the format http(s)://<ip>:<port>"

self.server_url = server_url
self.local_storage = threading.local()
self.requests_session = requests.Session()
Expand Down
2 changes: 1 addition & 1 deletion clients/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
EMAIL = "praneeth@bpraneeth.com"
AUTHOR = "BEDAPUDI PRANEETH"
REQUIRES_PYTHON = ">=3.6.0"
VERSION = "3.0.1"
VERSION = "3.0.2"

# What packages are required for this module to be executed?
REQUIRED = ["zstandard", "requests", "msgpack"]
Expand Down

0 comments on commit f2e15f3

Please sign in to comment.