Python client for Baratine
Project description
This is a Python client for Baratine.
import baratine
# Python interface for your Baratine service
class CounterService:
def addAndGet(value):
pass
def incrementAndGet():
pass
def get():
pass
client = baratine.BaratineClient('http://127.0.0.1:8085/s/pod')
# create a proxy for the remote service
counter = client._lookup('/counter/123')._as(CounterService)
# now call your service using your API
# the library supports all the good python features like default args and named args
result = counter.addAndGet(2222)
print(result)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
baratine-0.9.0.tar.gz
(4.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file baratine-0.9.0.tar.gz.
File metadata
- Download URL: baratine-0.9.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c2da4ca1b3a30085b8956ff0db1d13cebce184cc899557afdc326e2396d277e
|
|
| MD5 |
797e70fac9bfb7471ca2e397e2c80246
|
|
| BLAKE2b-256 |
265b96e383bdbafbe34d286dc26428a9ba3db74260f2c8c7c3d5613adef71f0f
|
File details
Details for the file baratine-0.9.0-py3-none-any.whl.
File metadata
- Download URL: baratine-0.9.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c52d244c8eda06a210ed1d9c2b3758da806dcb8a5a19c5bad7ce93e2f5994a9
|
|
| MD5 |
c94b9ea4932ddf5e543c5b84cbb29b5a
|
|
| BLAKE2b-256 |
0fa5b6cf40b2e800e64e1041e801433ba640aa17f286e4e6f2cc4ec233c0c57b
|