Fix Python client library
Project description
fixclient-python
Python client for Fix
Installation
pip install fixclient
For GraphVis and Pandas support:
pip install fixclient[extras]
Usage
from fixclient import FixClient
client = FixClient(url="https://localhost:8900", psk="changeme")
instances_csv = client.cli_execute("search is(instance) | tail 5 | list --csv")
for instance in instances_csv:
print(instance)
Pandas Dataframes
df = client.dataframe("is(instance)")
GraphViz Digraph
graph = client.graphviz("is(graph_root) -->")
Test
The tests expect a FixCore on localhost with the default PSK changeme
.
You can start it locally via:
$> fixcore --graphdb-database fixclient_test --psk changeme
A local test environment is required. See the contribution guide for instructions. When the virtual environment is available, use those commands to set up the project and run the tests:
$> pip install --upgrade pip poetry nox nox-poetry
$> nox
For more examples see the examples directory.
Publish
- bump the version number in pyproject.toml
poetry build
poetry publish
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
fixclient-2.0.0.tar.gz
(21.2 kB
view details)
Built Distribution
fixclient-2.0.0-py3-none-any.whl
(24.8 kB
view details)
File details
Details for the file fixclient-2.0.0.tar.gz
.
File metadata
- Download URL: fixclient-2.0.0.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c86c7c70c2544538964321c4a36e959b78dd0793c2f34dc25a5d772ced2a5d91 |
|
MD5 | 9a19815e9fbcc8a6efb74f38087c3896 |
|
BLAKE2b-256 | 1f107109cd7fcdbb7d9983c7cc4ba1370c4fa565a68c02eaa5a51e969140ac14 |
File details
Details for the file fixclient-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: fixclient-2.0.0-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d273fbcfdf549bb075725df8e9fd0d8fed155d64c2d5e943d236bb64d5d72be |
|
MD5 | 09ad84b48ddd25693d335d7942f368d6 |
|
BLAKE2b-256 | b33bf695b896489744f9278074e54f46adbaaa2cfc78a9ef287fb9413a588b2b |