Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ nosetests.xml
coverage.xml
*,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
Expand Down Expand Up @@ -79,10 +80,12 @@ celerybeat-schedule

# dotenv
.env
.envrc

# virtualenv
ENV/
venv*/
.direnv/

# Spyder project settings
.spyderproject
Expand All @@ -92,3 +95,6 @@ venv*/

# PyCharm project settings
.idea

# Poetry
poetry.lock
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

45 changes: 45 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "simplefix"
version = "1.0.17"
description = "Simple FIX Protocol implementation for Python"
authors = ["David Arnold <d+simplefix@0x1.org>"]
license = "MIT"
readme = "README.rst"
homepage = "https://github.com/da4089/simplefix"
repository = "https://github.com/da4089/simplefix"
documentation = "https://simplefix.readthedocs.io"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Networking",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
packages = [{include = "simplefix"}]

[tool.poetry.dependencies]
python = ">=3.8"

[tool.poetry.group.dev.dependencies]
pytest = ">=7.0.0"
coverage = "*"
sphinx = "*"
twine = "*"
wheel = "*"
freezegun = "*"

[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["test"]
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
pythonpath = .
testpaths = test
5 changes: 0 additions & 5 deletions requirements/dev.txt

This file was deleted.

59 changes: 0 additions & 59 deletions setup.py

This file was deleted.

9 changes: 5 additions & 4 deletions simplefix/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def fix_tag(value):
return str(value).encode('ASCII')



class FixMessage:
"""FIX protocol message.

Expand Down Expand Up @@ -196,9 +197,9 @@ def append_utc_timestamp(self, tag, timestamp=None, precision=3,
:param header: Append to FIX header if True; default to body.

The `timestamp` value should be a datetime, such as created by
datetime.datetime.utcnow(); a float, being the number of seconds
utcnow(); a float, being the number of seconds
since midnight 1 Jan 1970 UTC, such as returned by time.time();
or, None, in which case datetime.datetime.utcnow() is used to
or, None, in which case utcnow() is used to
get the current UTC time.

Precision values other than zero (seconds), 3 (milliseconds),
Expand All @@ -221,9 +222,9 @@ def append_utc_time_only(self, tag, timestamp=None, precision=3,
:param header: Append to FIX header if True; default to body.

The `timestamp` value should be a datetime, such as created by
datetime.datetime.utcnow(); a float, being the number of seconds
utcnow(); a float, being the number of seconds
since midnight 1 Jan 1970 UTC, such as returned by time.time();
or, None, in which case datetime.datetime.utcnow() is used to
or, None, in which case utcnow() is used to
get the current UTC time.

Precision values other than zero (seconds), 3 (milliseconds),
Expand Down
1 change: 1 addition & 0 deletions test/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Empty conftest.py to help pytest discover tests
Loading