Skip to content

Commit

Permalink
Release v0.14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jcass77 committed Apr 29, 2020
2 parents 43652b9 + 2814bf9 commit 7a49855
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 26 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/ambv/black
rev: 19.3b0
rev: 19.10b0
hooks:
- id: black
args: [--safe, --quiet]
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
rev: v2.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -15,12 +15,12 @@ repos:
exclude: _pytest/debugging.py
language_version: python3
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.7
rev: 3.7.9
hooks:
- id: flake8
language_version: python3
- repo: https://github.com/asottile/pyupgrade
rev: v1.15.0
rev: v2.3.0
hooks:
- id: pyupgrade
args: [--keep-percent-format]
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: xenial
dist: bionic

services:
- redis
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ routines or new application features.

```python
PIPELINE_APPS = [
"wtfix.apps.utils.PipelineTerminationApp", # Post-processing / cleanup
"my_app.apps.SecretAlgoTradingRecipe", # <-- Your application logic
"wtfix.apps.api.RESTfulServiceApp", # REST API for sending messages
"wtfix.apps.brokers.RedisPubSubApp", # Redis Pub/Sub broker for sending / receiving messages
Expand Down Expand Up @@ -116,6 +117,7 @@ messages mean that you never need to deal with byte sequences directly.
# Create a new Message from a byte sequence received over the wire
>>> fields = Field.fields_frombytes(b"35=A\x0198=0\x01108=30\x01553=my_username\x01554=my_password\x01")
>>> logon_msg = generic_message_factory(*fields)

>>> str(logon_msg)
'A: {(35, A) | (98, 0) | (108, 30) | (553, my_username) | (554, my_password)}'

Expand All @@ -134,7 +136,7 @@ messages mean that you never need to deal with byte sequences directly.
>>> username
Field(553, 'my_username_123')
```
- Access to the underlying byte sequence when you need it:
- Access the underlying byte sequence when you need it by casting the message back to `bytes`:

```python
>>> bytes(logon_msg)
Expand All @@ -147,12 +149,12 @@ messages mean that you never need to deal with byte sequences directly.
>>> f"{logon_msg:t}"
'Logon (A): {MsgType (35): A | EncryptMethod (98): 0 | HeartBtInt (108): 30 | Username (553): my_username | Password (554): my_password | PossDupFlag (43): Y}'

# Most FIX field values can be cast to their corresponding Python built-in type
# Most FIX field types can be cast to equivalent Python built-in types to make processing easier
>>> bool(logon_msg.PossDupFlag) is True
True

```
- A very forgiving approach to repeating groups of message tags:
- A very forgiving approach to parsing repeating groups of message tags; with or without pre-defined templates:

```python
from wtfix.protocol.common import Tag, MsgType
Expand Down
7 changes: 7 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

This changelog is used to track all major changes to WTFIX.

## v0.14.3 (2020-04-29)

**Enhancements**

- Relax dependency version requirements in setup.py.
- Update dependencies to latest major versions.

## v0.14.2 (2019-12-16)

**Fixes**
Expand Down
8 changes: 4 additions & 4 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python-dotenv~=0.10.3 # https://github.com/theskumar/python-dotenv
flask-restful~=0.3.7 # https://github.com/flask-restful/flask-restful
requests~=2.22.0 # https://github.com/kennethreitz/requests
gunicorn~=19.9.0 # https://gunicorn.org
python-dotenv~=0.13 # https://github.com/theskumar/python-dotenv
flask-restful~=0.3 # https://github.com/flask-restful/flask-restful
requests~=2.23 # https://github.com/kennethreitz/requests
gunicorn~=20.0 # https://gunicorn.org
aioredis~=1.3 # https://github.com/aio-libs/aioredis
14 changes: 7 additions & 7 deletions requirements/local.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

# Testing
# ------------------------------------------------------------------------------
pytest~=5.0 # https://github.com/pytest-dev/pytest
pytest~=5.4 # https://github.com/pytest-dev/pytest
pytest-sugar~=0.9 # https://github.com/Frozenball/pytest-sugar
pytest-socket~=0.3 # https://github.com/miketheman/pytest-socket
pytest-env~=0.6 # https://github.com/MobileDynasty/pytest-env
pytest-asyncio~=0.9 # https://github.com/pytest-dev/pytest-asyncio
faker~=2.0 # https://github.com/joke2k/faker
pytest-asyncio~=0.11 # https://github.com/pytest-dev/pytest-asyncio
faker~=4.0 # https://github.com/joke2k/faker

# Code quality
# ------------------------------------------------------------------------------
flake8~=3.7 # https://github.com/PyCQA/flake8
coverage~=4.5 # https://github.com/nedbat/coveragepy
black~=19.3b # https://github.com/ambv/black
pre-commit~=1.15 # https://pre-commit.com
pyupgrade~=1.16 # https://github.com/asottile/pyupgrade
coverage~=5.0 # https://github.com/nedbat/coveragepy
black~=19.10b # https://github.com/ambv/black
pre-commit~=2.1 # https://pre-commit.com
pyupgrade~=2.1 # https://github.com/asottile/pyupgrade
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="wtfix",
version="0.14.2",
version="0.14.3",
author="John Cass",
author_email="john.cass77@gmail.com",
description="The Pythonic Financial Information eXchange (FIX) client for humans.",
Expand All @@ -27,11 +27,11 @@
keywords="FIX financial information exchange",
packages=find_packages(exclude=["contrib", "docs", "tests"]),
install_requires=[
"python-dotenv~=0.10.3",
"flask-restful~=0.3.7",
"requests~=2.22.0",
"gunicorn~=19.9.0",
"aioredis~=1.3",
"python-dotenv>=0.10.3",
"flask-restful>=0.3.7",
"requests>=2.22",
"gunicorn>=19.9",
"aioredis>=1.3",
],
python_requires=">=3.7",
project_urls={
Expand Down
2 changes: 1 addition & 1 deletion wtfix/core/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class StopMessageProcessing(Exception):
Used to stop a message from propagating further up or down the pipeline.
This should be used to interrupt message processing during normal operation (i.e. as part of an optimization
or if the message is not relevant to other applications in the pipeline.
or if the message is not relevant to other applications in the pipeline).
"""

pass
Expand Down

0 comments on commit 7a49855

Please sign in to comment.