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)
Metadata
Release files for baratine 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| baratine-0.9.0.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| baratine-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / baratine-0.9.0.tar.gz
| Download URL | baratine-0.9.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c2da4ca1b3a30085b8956ff0db1d13cebce184cc899557afdc326e2396d277e
|
|
BLAKE2b-256 checksum How to use checksums |
265b96e383bdbafbe34d286dc26428a9ba3db74260f2c8c7c3d5613adef71f0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / baratine-0.9.0-py3-none-any.whl
| Download URL | baratine-0.9.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c52d244c8eda06a210ed1d9c2b3758da806dcb8a5a19c5bad7ce93e2f5994a9
|
|
BLAKE2b-256 checksum How to use checksums |
0fa5b6cf40b2e800e64e1041e801433ba640aa17f286e4e6f2cc4ec233c0c57b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |