Skip to content

Commit 0a6881d

Browse files
0.14.2 RC1
1 parent 19e5b7a commit 0a6881d

36 files changed

+435
-308
lines changed

.github/workflows/build_wheels.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Build wheels on ${{ matrix.os }}
1111
runs-on: ${{ matrix.os }}
1212
env:
13-
CIBW_PYPY_VERSION: "7.3.10*"
13+
CIBW_SKIP: "pp36-* pp37-* pp38-*"
1414
strategy:
1515
matrix:
1616
os: [ubuntu-20.04, windows-2019, macos-11]

.github/workflows/unit-tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- name: Upload coverage to Codecov
3636
uses: codecov/codecov-action@v3
3737
with:
38+
token: ${{ secrets.CODECOV_TOKEN }}
3839
flags: unittests
3940
name: codecov-umbrella
4041
verbose: true

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ __pycache__/
1515
# Distribution / packaging
1616
.Python
1717
build/
18+
stubs/
1819
develop-eggs/
1920
dist/
2021
downloads/

CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
99

1010
[How to upgrade to the latest version!](https://unicorn-fy.docs.lucit.tech/readme.html#installation-and-upgrade)
1111

12-
## 0.14.1.dev (development stage/unreleased/unstable)
12+
## 0.14.2.dev (development stage/unreleased/unstable)
13+
14+
## 0.14.2
15+
### Added
16+
- Since Unicorn-Fy is delivered as a compiled C extension, IDEs such as Pycharm and Visual Code cannot use information
17+
about available methods, parameters and their types for autocomplete and other intellisense functions. As a solution,
18+
from now on stub files (PYI) will be created in the build process and attached to the packages. The IDEs can
19+
automatically obtain the required information from these.
20+
1321
## 0.14.1
1422
`unicorn-fy` can now also be installed on all architectures on which there are no precompiled packages from LUCIT. PIP
1523
now automatically recognises whether there is a suitable precompiled package and if not, the source is automatically

README.md

+19-8
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
[Examples](#examples) | [Wiki](#wiki) | [Social](#social) | [Notifications](#receive-notifications) | [Bugs](#how-to-report-bugs-or-suggest-improvements)
3030
| [Contributing](#contributing) | [Disclaimer](#disclaimer) | [Commercial Support](#commercial-support)
3131

32-
A Python API by [LUCIT](https://www.lucit.tech) to convert received raw data from crypto exchange API endpoints
32+
A Python SDK by [LUCIT](https://www.lucit.tech) to convert received raw data from crypto exchange API endpoints
3333
into well-formed python dictionaries.
3434

3535
Part of ['UNICORN Binance Suite'](https://www.lucit.tech/unicorn-binance-suite.html).
@@ -66,7 +66,7 @@ Output:
6666
{'stream_type': 'btcusdt@trade', 'event_type': 'trade', 'event_time': 1556876873656, 'symbol': 'BTCUSDT',
6767
'trade_id': 117727701, 'price': '5786.76000000', 'quantity': '0.03200500', 'buyer_order_id': 341831847,
6868
'seller_order_id': 341831876, 'trade_time': 1556876873648, 'is_market_maker': True, 'ignore': True,
69-
'unicorn_fied': ['binance', '1.14.1']}
69+
'unicorn_fied': ['binance', '0.14.2']}
7070
```
7171

7272
This lib is integrated into
@@ -113,13 +113,26 @@ If you like the project, please
113113
## Installation and Upgrade
114114
The module requires Python 3.7.0 or above.
115115

116+
For Anaconda we offer packages only from Python version 3.8 and higher.
117+
116118
For the PyPy interpreter we offer packages only from Python version 3.9 and higher.
117119

118120
The current dependencies are listed
119121
[here](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/blob/master/requirements.txt).
120122

121123
If you run into errors during the installation take a look [here](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-suite/wiki/Installation).
122124

125+
### Packages are created automatically with GitHub Actions
126+
When a new release is to be created, we start two GitHubActions:
127+
128+
- [Build and Publish Anaconda](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/actions/workflows/build_conda.yml)
129+
- [Build and Publish GH+PyPi](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/actions/workflows/build_wheels.yml)
130+
131+
Both start virtual Windows/Linux/Mac servers provided by GitHub in the cloud with preconfigured environments and
132+
create the respective compilations and stub files, pack them into wheels and conda packages and then publish them on
133+
GitHub, PYPI and Anaconda. This is a transparent method that makes it possible to trace the source code behind a
134+
compilation.
135+
123136
### A Cython binary, PyPy or source code based CPython wheel of the latest version with `pip` from [PyPI](https://pypi.org/project/unicorn-binance-rest-api/)
124137
Our [Cython](https://cython.org/) and [PyPy](https://www.pypy.org/) Wheels are available on [PyPI](https://pypi.org/),
125138
these wheels offer significant advantages for Python developers:
@@ -173,9 +186,9 @@ Run in bash:
173186
`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-fy/archive/$(curl -s https://api.github.com/repos/lucit-systems-and-development/unicorn-fy/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")').tar.gz --upgrade`
174187

175188
#### Windows
176-
Use the below command with the version (such as 1.14.1) you determined [here](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/releases/latest):
189+
Use the below command with the version (such as 0.14.2) you determined [here](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/releases/latest):
177190

178-
`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-fy/archive/1.14.1.tar.gz --upgrade`
191+
`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-fy/archive/0.14.2.tar.gz --upgrade`
179192

180193
### From the latest source (dev-stage) with PIP from [GitHub](https://github.com/LUCIT-Systems-and-Development/unicorn-fy)
181194
This is not a release version and can not be considered to be stable!
@@ -194,16 +207,14 @@ or the [current master branch](https://github.com/LUCIT-Systems-and-Development/
194207
- ./setup.py
195208

196209
## Change Log
197-
[https://unicorn-fy.docs.lucit.tech//CHANGELOG.html](https://unicorn-fy.docs.lucit.tech//CHANGELOG.html)
210+
[https://unicorn-fy.docs.lucit.tech/changelog.html](https://unicorn-fy.docs.lucit.tech/changelog.html)
198211

199212
## Documentation
200213
- [General](https://unicorn-fy.docs.lucit.tech/)
201214
- [Modules](https://unicorn-fy.docs.lucit.tech/modules.html)
202215

203216
## Examples
204-
- [example_logging.py](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/blob/master/example_logging.py)
205-
- [example_unicorn_fy.py](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/blob/master/example_unicorn_fy.py)
206-
- [example_version_of_this_package.py](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/blob/master/example_version_of_this_package.py)
217+
- [Look here!](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/tree/master/examples/)
207218

208219
## Project Homepage
209220
[https://www.lucit.tech/unicorn-fy.html](https://www.lucit.tech/unicorn-fy.html)

dev/reset.sh

+3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ rm dev/*.log
66
rm build -r
77
rm dist -r
88
rm *.egg-info -r
9+
rm stubs -r
10+
rm out -r
911

1012
rm unicorn_fy/*.c
1113
rm unicorn_fy/*.html
1214
rm unicorn_fy/*.dll
1315
rm unicorn_fy/*.so
16+
rm unicorn_fy/*.pyi

dev/set_version_config.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1.14.1
1+
0.14.2
22
meta.yaml,pyproject.toml,setup.py,README.md,.github/workflows/build_wheels.yml,dev/sphinx/source/conf.py,unicorn_fy/unicorn_fy.py

dev/sphinx/source/changelog.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
99

1010
[How to upgrade to the latest version!](https://unicorn-fy.docs.lucit.tech/readme.html#installation-and-upgrade)
1111

12-
## 0.14.1.dev (development stage/unreleased/unstable)
12+
## 0.14.2.dev (development stage/unreleased/unstable)
13+
14+
## 0.14.2
15+
### Added
16+
- Since Unicorn-Fy is delivered as a compiled C extension, IDEs such as Pycharm and Visual Code cannot use information
17+
about available methods, parameters and their types for autocomplete and other intellisense functions. As a solution,
18+
from now on stub files (PYI) will be created in the build process and attached to the packages. The IDEs can
19+
automatically obtain the required information from these.
20+
1321
## 0.14.1
14-
UnicornFy can now also be installed on all architectures on which there are no precompiled packages from LUCIT. PIP
22+
`unicorn-fy` can now also be installed on all architectures on which there are no precompiled packages from LUCIT. PIP
1523
now automatically recognises whether there is a suitable precompiled package and if not, the source is automatically
1624
compiled on the target system during the installation process with Cython. Even if you don't have to do anything
1725
special, please note that this process takes some time!

dev/sphinx/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'LUCIT Systems and Development'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '1.14.1'
25+
release = '0.14.2'
2626

2727
html_last_updated_fmt = "%b %d %Y at %H:%M (CET)"
2828

dev/sphinx/source/readme.md

+20-9
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
[Examples](#examples) | [Wiki](#wiki) | [Social](#social) | [Notifications](#receive-notifications) | [Bugs](#how-to-report-bugs-or-suggest-improvements)
3030
| [Contributing](#contributing) | [Disclaimer](#disclaimer) | [Commercial Support](#commercial-support)
3131

32-
A Python API by [LUCIT](https://www.lucit.tech) to convert received raw data from crypto exchange API endpoints
32+
A Python SDK by [LUCIT](https://www.lucit.tech) to convert received raw data from crypto exchange API endpoints
3333
into well-formed python dictionaries.
3434

3535
Part of ['UNICORN Binance Suite'](https://www.lucit.tech/unicorn-binance-suite.html).
@@ -66,7 +66,7 @@ Output:
6666
{'stream_type': 'btcusdt@trade', 'event_type': 'trade', 'event_time': 1556876873656, 'symbol': 'BTCUSDT',
6767
'trade_id': 117727701, 'price': '5786.76000000', 'quantity': '0.03200500', 'buyer_order_id': 341831847,
6868
'seller_order_id': 341831876, 'trade_time': 1556876873648, 'is_market_maker': True, 'ignore': True,
69-
'unicorn_fied': ['binance', '1.14.1']}
69+
'unicorn_fied': ['binance', '0.14.2']}
7070
```
7171

7272
This lib is integrated into
@@ -113,12 +113,25 @@ If you like the project, please
113113
## Installation and Upgrade
114114
The module requires Python 3.7.0 or above.
115115

116+
For Anaconda we offer packages only from Python version 3.8 and higher.
117+
116118
For the PyPy interpreter we offer packages only from Python version 3.9 and higher.
117119

118120
The current dependencies are listed
119121
[here](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/blob/master/requirements.txt).
120122

121-
If you run into errors during the installation take a look [here](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/wiki/Installation).
123+
If you run into errors during the installation take a look [here](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-suite/wiki/Installation).
124+
125+
### Packages are created automatically with GitHub Actions
126+
When a new release is to be created, we start two GitHubActions:
127+
128+
- [Build and Publish Anaconda](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/actions/workflows/build_conda.yml)
129+
- [Build and Publish GH+PyPi](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/actions/workflows/build_wheels.yml)
130+
131+
Both start virtual Windows/Linux/Mac servers provided by GitHub in the cloud with preconfigured environments and
132+
create the respective compilations and stub files, pack them into wheels and conda packages and then publish them on
133+
GitHub, PYPI and Anaconda. This is a transparent method that makes it possible to trace the source code behind a
134+
compilation.
122135

123136
### A Cython binary, PyPy or source code based CPython wheel of the latest version with `pip` from [PyPI](https://pypi.org/project/unicorn-binance-rest-api/)
124137
Our [Cython](https://cython.org/) and [PyPy](https://www.pypy.org/) Wheels are available on [PyPI](https://pypi.org/),
@@ -173,9 +186,9 @@ Run in bash:
173186
`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-fy/archive/$(curl -s https://api.github.com/repos/lucit-systems-and-development/unicorn-fy/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")').tar.gz --upgrade`
174187

175188
#### Windows
176-
Use the below command with the version (such as 1.14.1) you determined [here](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/releases/latest):
189+
Use the below command with the version (such as 0.14.2) you determined [here](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/releases/latest):
177190

178-
`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-fy/archive/1.14.1.tar.gz --upgrade`
191+
`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-fy/archive/0.14.2.tar.gz --upgrade`
179192

180193
### From the latest source (dev-stage) with PIP from [GitHub](https://github.com/LUCIT-Systems-and-Development/unicorn-fy)
181194
This is not a release version and can not be considered to be stable!
@@ -194,16 +207,14 @@ or the [current master branch](https://github.com/LUCIT-Systems-and-Development/
194207
- ./setup.py
195208

196209
## Change Log
197-
[https://unicorn-fy.docs.lucit.tech//CHANGELOG.html](https://unicorn-fy.docs.lucit.tech//CHANGELOG.html)
210+
[https://unicorn-fy.docs.lucit.tech/changelog.html](https://unicorn-fy.docs.lucit.tech/changelog.html)
198211

199212
## Documentation
200213
- [General](https://unicorn-fy.docs.lucit.tech/)
201214
- [Modules](https://unicorn-fy.docs.lucit.tech/modules.html)
202215

203216
## Examples
204-
- [example_logging.py](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/blob/master/example_logging.py)
205-
- [example_unicorn_fy.py](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/blob/master/example_unicorn_fy.py)
206-
- [example_version_of_this_package.py](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/blob/master/example_version_of_this_package.py)
217+
- [Look here!](https://github.com/LUCIT-Systems-and-Development/unicorn-fy/tree/master/examples/)
207218

208219
## Project Homepage
209220
[https://www.lucit.tech/unicorn-fy.html](https://www.lucit.tech/unicorn-fy.html)

docs/.buildinfo

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 28186c005d890febfe51aa147511105e
3+
config: c0b45cae33dd30d1c08ae05876f1273d
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_modules/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Overview: module code &#8212; unicorn-fy 1.14.1 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Overview: module code &#8212; unicorn-fy 0.14.2 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
88

99
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=92fd9be5" />
1010
<link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?v=fdf8e9ae" />
@@ -248,7 +248,7 @@ <h3>Navigation</h3>
248248
<a href="https://docs.lucit.tech">Index of all LUCIT Software Documentation</a><br />
249249
&copy; <a href="/license.html">Copyright</a> 2023-2023, LUCIT Systems and Development. All Rights Reserved..
250250
See <a href="/license.html">License</a> for more information.<br />
251-
Last updated on Mar 14 2024 at 11:45 (CET).
251+
Last updated on May 09 2024 at 21:03 (CET).
252252
<a href="https://github.com/LUCIT-Systems-and-Development/unicorn-fy/issues/new/choose">Found a bug</a>?
253253
<br />
254254
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.

docs/_modules/unicorn_fy/unicorn_fy.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>unicorn_fy.unicorn_fy &#8212; unicorn-fy 1.14.1 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>unicorn_fy.unicorn_fy &#8212; unicorn-fy 0.14.2 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
88

99
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=92fd9be5" />
1010
<link rel="stylesheet" type="text/css" href="../../_static/pydoctheme.css?v=fdf8e9ae" />
@@ -211,7 +211,7 @@ <h1>Source code for unicorn_fy.unicorn_fy</h1><div class="highlight"><pre>
211211
<span class="sd"> - Binance.org</span>
212212
<span class="sd"> - Jex.com</span>
213213
<span class="sd"> &quot;&quot;&quot;</span>
214-
<span class="n">VERSION</span> <span class="o">=</span> <span class="s2">&quot;1.14.1.dev&quot;</span>
214+
<span class="n">VERSION</span> <span class="o">=</span> <span class="s2">&quot;0.14.2&quot;</span>
215215

216216
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">debug</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
217217
<span class="bp">self</span><span class="o">.</span><span class="n">last_update_check_github</span> <span class="o">=</span> <span class="p">{</span><span class="s1">&#39;timestamp&#39;</span><span class="p">:</span> <span class="n">time</span><span class="o">.</span><span class="n">time</span><span class="p">(),</span>
@@ -221,11 +221,11 @@ <h1>Source code for unicorn_fy.unicorn_fy</h1><div class="highlight"><pre>
221221
<span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="nb">str</span><span class="p">(</span><span class="n">platform</span><span class="o">.</span><span class="n">system</span><span class="p">())</span><span class="si">}</span><span class="s2"> </span><span class="si">{</span><span class="nb">str</span><span class="p">(</span><span class="n">platform</span><span class="o">.</span><span class="n">release</span><span class="p">())</span><span class="si">}</span><span class="s2"> started ...&quot;</span><span class="p">)</span>
222222

223223
<span class="k">def</span> <span class="fm">__enter__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
224-
<span class="n">logger</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Entering &#39;with-context&#39; ...&quot;</span><span class="p">)</span>
224+
<span class="n">logger</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Entering with-context of UnicornFy() ...&quot;</span><span class="p">)</span>
225225
<span class="k">return</span> <span class="bp">self</span>
226226

227227
<span class="k">def</span> <span class="fm">__exit__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">exc_type</span><span class="p">,</span> <span class="n">exc_value</span><span class="p">,</span> <span class="n">error_traceback</span><span class="p">):</span>
228-
<span class="n">logger</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Leaving &#39;with-context&#39; ...&quot;</span><span class="p">)</span>
228+
<span class="n">logger</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Leaving with-context of UnicornFy() ...&quot;</span><span class="p">)</span>
229229
<span class="k">if</span> <span class="n">exc_type</span><span class="p">:</span>
230230
<span class="n">logger</span><span class="o">.</span><span class="n">critical</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;An exception occurred: </span><span class="si">{</span><span class="n">exc_type</span><span class="si">}</span><span class="s2"> - </span><span class="si">{</span><span class="n">exc_value</span><span class="si">}</span><span class="s2"> - </span><span class="si">{</span><span class="n">error_traceback</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
231231

@@ -1680,7 +1680,7 @@ <h3>Navigation</h3>
16801680
<a href="https://docs.lucit.tech">Index of all LUCIT Software Documentation</a><br />
16811681
&copy; <a href="/license.html">Copyright</a> 2023-2023, LUCIT Systems and Development. All Rights Reserved..
16821682
See <a href="/license.html">License</a> for more information.<br />
1683-
Last updated on Mar 14 2024 at 11:45 (CET).
1683+
Last updated on May 09 2024 at 20:42 (CET).
16841684
<a href="https://github.com/LUCIT-Systems-and-Development/unicorn-fy/issues/new/choose">Found a bug</a>?
16851685
<br />
16861686
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.

0 commit comments

Comments
 (0)