-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04154d2
commit a970114
Showing
11 changed files
with
594 additions
and
155 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,3 +153,6 @@ dmypy.json | |
|
||
# Cython debug symbols | ||
cython_debug/ | ||
|
||
# pytest | ||
.pytest_cache |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright (c) 2024, Honza Javorek <[email protected]> | ||
Copyright (c) 2025, Honza Javorek <[email protected]> | ||
|
||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
fiobank | ||
======= | ||
|
||
|PyPI version| |Build Status| |Test Coverage| | ||
|
||
`Fio Bank API <http://www.fio.cz/bank-services/internetbanking-api>`__ | ||
`Fio Bank API <http://www.fio.cz/bank-services/internetbanking-api>`_ | ||
in Python. | ||
|
||
Installation | ||
------------ | ||
|
||
.. code:: sh | ||
From PyPI:: | ||
|
||
pip install fiobank | ||
|
||
$ pip install fiobank | ||
In case you have an adventurous mind, give a try to the source:: | ||
|
||
pip install git+https://github.com/honzajavorek/fiobank.git#egg=fiobank | ||
|
||
Usage | ||
----- | ||
|
@@ -76,35 +78,28 @@ Listing the latest transactions: | |
Conflict Error | ||
-------------- | ||
|
||
`Fio API documentation <http://www.fio.cz/docs/cz/API_Bankovnictvi.pdf>`__ | ||
(Section 8.2) states that a single token should be used only once per | ||
`Fio API documentation <http://www.fio.cz/docs/cz/API_Bankovnictvi.pdf>`_ | ||
(Section 8.3) states that a single token should be used only once per | ||
30s. Otherwise, an HTTP 409 Conflict will be returned and | ||
``fiobank.ThrottlingError`` will be raised. | ||
|
||
Contributing | ||
------------ | ||
Development | ||
----------- | ||
|
||
.. code:: shell | ||
Install using `poetry <https://python-poetry.org/>`_:: | ||
|
||
$ pip install -e .[tests] | ||
$ pytest | ||
git clone [email protected]:honzajavorek/fiobank.git | ||
cd fiobank | ||
poetry install | ||
|
||
Changelog | ||
--------- | ||
Then run tests:: | ||
|
||
See `GitHub Releases <https://github.com/honzajavorek/fiobank/releases>`_. | ||
pytest | ||
|
||
License: ISC | ||
------------ | ||
|
||
© 2024 Honza Javorek [email protected] | ||
© 2025 Honza Javorek <[email protected]> | ||
|
||
This work is licensed under the `ISC | ||
license <https://en.wikipedia.org/wiki/ISC_license>`__. | ||
|
||
.. |PyPI version| image:: https://badge.fury.io/py/fiobank.svg | ||
:target: https://badge.fury.io/py/fiobank | ||
.. |Build Status| image:: https://github.com/honzajavorek/fiobank/actions/workflows/test.yml/badge.svg | ||
:target: https://github.com/honzajavorek/fiobank/actions/workflows/test.yml | ||
.. |Test Coverage| image:: https://coveralls.io/repos/github/honzajavorek/fiobank/badge.svg?branch=master | ||
:target: https://coveralls.io/github/honzajavorek/fiobank?branch=master | ||
license <https://en.wikipedia.org/wiki/ISC_license>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[tool.poetry] | ||
name = "fiobank" | ||
version = "4.0.0" | ||
description = "Fio Bank API in Python (unofficial)" | ||
authors = ["Honza Javorek <[email protected]>"] | ||
license = "ICS" | ||
readme = "README.rst" | ||
repository = "https://github.com/honzajavorek/fiobank" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: ISC License (ISCL)", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Internet", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
requests = "^2.28.2" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "^7.2.1" | ||
pylama = "^8.4.1" | ||
responses = "^0.22.0" | ||
mock = "^5.0.1" | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = "tests" | ||
norecursedirs = "env venv .git" | ||
|
||
[tool.pylama] | ||
skip = "env/*,venv/*" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters