ETP client
Project description
Etpclient
==========
Installation :
Poetry is required to use the client. Poetry documentation
poetry update
poetry install
Sample commands :
poetry run python client --host RDDMS_HOST --port 9002 -t MY_TOKEN
poetry run python client --host MY_HOST --port 80 --sub-path etp -t MY_TOKEN
poetry run python client --host 127.0.0.1 --port 17000 --sub-path etp --username login --password passwordTest
poetry run python client --host 127.0.0.1 --port 5432 --username testerlogin --password passwordtester
ETP supported commands :
When the client is connected you can send your request.
This is the help menu :
[XXX] : replace XXX with your value
[XXX=Y] : replace XXX with your value, default is Y
[[XXX]] : optional parameter
Help : show this menu
Quit : hard quit (no CloseSession sent)
CloseSession : close this session
GetDataArrayMetadata [URI] [PATH_IN_RESOURCE]
GetDataArray [URI] [PATH_IN_RESOURCE]
GetDataSubArray [URI] [PATH_IN_RESOURCE] [START] [COUNT]
PutDataArray [[UUIDS]]* [DATASPACE_NAME] [EPC_FILE_PATH] [H5_FILE_PATH]
GetDataObject [URI_1] [...] [URI_N]
PutDataObject [FILE_PATH] [[DATASPACE_NAME]]
GetResources [[uri=eml:/// or notUri=DataspaceName]] [[depth=1]] [[SCOPE]]
GetDataspaces
PutDataspace [NAME]
DeleteDataspace [NAME]
Configuration
It is possible to change the "capabilities" of your client in the prefilled RequestSession object in etpclient/etp/requester.py
To add/remove supported protocols and request, modify the file etpclient/etp/serverprotocols.py. Do not forget to decorate your protocols to allow the class ETPConnection to use your protocol. Example :
@ETPConnection.on(CommunicationProtocol.CORE)
class myCoreProtocol(CoreHandler):
...
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
etpclient-0.0.3.tar.gz
(30.9 kB
view details)
Built Distribution
etpclient-0.0.3-py3-none-any.whl
(34.6 kB
view details)
File details
Details for the file etpclient-0.0.3.tar.gz
.
File metadata
- Download URL: etpclient-0.0.3.tar.gz
- Upload date:
- Size: 30.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/6.2.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0fab184830a7432b0dc386735ce946f1353b6173f58ccbe57167d589cd61852 |
|
MD5 | d82ab4d8e54d5e3bb7c848ffeab7c668 |
|
BLAKE2b-256 | 64c39fc595e5f0dc062dc0d004f7dd4ea67692e40e2409fb121c4fa413f079dc |
File details
Details for the file etpclient-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: etpclient-0.0.3-py3-none-any.whl
- Upload date:
- Size: 34.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/6.2.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab6ca73bee6486733d202475f8bda65869c4ba94bd3d9ff0cf5b3cbad2555e17 |
|
MD5 | 6e872a205938be9ac82ab3778a9fa6c2 |
|
BLAKE2b-256 | fda5ccf70f0c266fdb4d3057df966ca071bfff5c67462526785d812acb659270 |