# fixclient-python
Python client for Fix
## Installation
```bash
pip install fixclient
```
For GraphVis and Pandas support:
```bash
pip install fixclient[extras]
```
## Usage
```python
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
```python
df = client.dataframe("is(instance)")
```
### GraphViz Digraph
```python
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:
```bash
$> fixcore --graphdb-database fixclient_test --psk changeme
```
A local test environment is required. See the [contribution guide](https://fix.com/docs/contributing/components) for instructions.
When the virtual environment is available, use those commands to set up the project and run the tests:
```bash
$> 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`
Raw data
{
"_id": null,
"home_page": "https://github.com/someengineering/fixclient-python",
"name": "fixclient",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Some Engineering Inc.",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/1f/10/7109cd7fcdbb7d9983c7cc4ba1370c4fa565a68c02eaa5a51e969140ac14/fixclient-2.0.0.tar.gz",
"platform": null,
"description": "# fixclient-python\nPython client for Fix\n\n## Installation\n```bash\npip install fixclient\n```\n\nFor GraphVis and Pandas support:\n\n```bash\npip install fixclient[extras]\n```\n\n## Usage\n\n```python\nfrom fixclient import FixClient\n\nclient = FixClient(url=\"https://localhost:8900\", psk=\"changeme\")\ninstances_csv = client.cli_execute(\"search is(instance) | tail 5 | list --csv\")\n\nfor instance in instances_csv:\n print(instance)\n```\n\n### Pandas Dataframes\n```python\ndf = client.dataframe(\"is(instance)\")\n```\n\n### GraphViz Digraph\n```python\ngraph = client.graphviz(\"is(graph_root) -->\")\n```\n\n## Test\nThe tests expect a FixCore on localhost with the default PSK `changeme`.\nYou can start it locally via:\n\n```bash\n$> fixcore --graphdb-database fixclient_test --psk changeme\n```\n\nA local test environment is required. See the [contribution guide](https://fix.com/docs/contributing/components) for instructions.\nWhen the virtual environment is available, use those commands to set up the project and run the tests:\n\n```bash\n$> pip install --upgrade pip poetry nox nox-poetry\n$> nox\n```\n\nFor more examples see the examples directory.\n\n## Publish\n- bump the version number in pyproject.toml\n- `poetry build`\n- `poetry publish`\n\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Fix Python client library",
"version": "2.0.0",
"project_urls": {
"Changelog": "https://github.com/someengineering/fixclient-python/releases",
"Homepage": "https://github.com/someengineering/fixclient-python",
"Repository": "https://github.com/someengineering/fixclient-python"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b33bf695b896489744f9278074e54f46adbaaa2cfc78a9ef287fb9413a588b2b",
"md5": "09ad84b48ddd25693d335d7942f368d6",
"sha256": "3d273fbcfdf549bb075725df8e9fd0d8fed155d64c2d5e943d236bb64d5d72be"
},
"downloads": -1,
"filename": "fixclient-2.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "09ad84b48ddd25693d335d7942f368d6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0",
"size": 24803,
"upload_time": "2024-02-26T17:05:43",
"upload_time_iso_8601": "2024-02-26T17:05:43.712843Z",
"url": "https://files.pythonhosted.org/packages/b3/3b/f695b896489744f9278074e54f46adbaaa2cfc78a9ef287fb9413a588b2b/fixclient-2.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1f107109cd7fcdbb7d9983c7cc4ba1370c4fa565a68c02eaa5a51e969140ac14",
"md5": "9a19815e9fbcc8a6efb74f38087c3896",
"sha256": "c86c7c70c2544538964321c4a36e959b78dd0793c2f34dc25a5d772ced2a5d91"
},
"downloads": -1,
"filename": "fixclient-2.0.0.tar.gz",
"has_sig": false,
"md5_digest": "9a19815e9fbcc8a6efb74f38087c3896",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0",
"size": 21223,
"upload_time": "2024-02-26T17:05:44",
"upload_time_iso_8601": "2024-02-26T17:05:44.881748Z",
"url": "https://files.pythonhosted.org/packages/1f/10/7109cd7fcdbb7d9983c7cc4ba1370c4fa565a68c02eaa5a51e969140ac14/fixclient-2.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-26 17:05:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "someengineering",
"github_project": "fixclient-python",
"github_not_found": true,
"lcname": "fixclient"
}