P2P client library
Project description
Install
pip install Pyllab
or
Build .whl package On Linux/Mac:
sh generate_wheel_unix.sh
- On Linux specifically you have to fix the wheel package:
sudo docker run -i -t -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /bin/bash
go in /io and move the libllab.so to /usr/local/lib/
cd io
mv libllab.so /usr/local/lib/
Then repair the wheel package it.
cd dist
auditwheel repair package.whl --plat manylinux2014_x86_64
in the wheelhouse directory you have the fixed wheel package
Build .whl package on Windows
- It is a PIA. Why?
Pyllab is a cython library compiling .C files that use posix calls system. Now you can see the problem here. Just follow me in this journey:
-
Install Mingw with MYSYS2: https://www.msys2.org/ follow the steps and also the passages to install mingw-w64
-
now navigate to Pyllab with MYSYS2 and create the .dll library:
sh create_shared_windows.sh
-
Go to your Python Folder (We assume as example we are using python 3.7):
-
You can find your python folder with:
import sys
locate_python = sys.exec_prefix
print(locate_python)
- Create the file Python37\Lib\distutils\distutils.cfg that should look like this:
[build]
compiler=mingw32
[build_ext]
compiler=mingw32
-
Download this .dll file https://it.dllfile.net/microsoft/vcruntime140-dll:
-
Move it to Python37\libs and to Python37\DLLs
-
Move libllab.dll previously built to Python37\libs
-
Now, Move to Python37\Lib\distutils\cygwinccompiler.py and modify the function get_msvcr() as follows: https://bugs.python.org/file40608/patch.diff
-
The last part
elif msc_ver == '1900':
change it to
elif msc_ver == '1916':
- Now other bug fix: go to Python37\include\pyconfig.h and add these lines:
/* Compiler specific defines */
#ifdef __MINGW32__
#ifdef _WIN64
#define MS_WIN64
#endif
#endif
- Now you can run from MYSYS2:
sh build_python_library.sh
- Links:
- https://www.msys2.org/ (To get MYSYS2 with mingw-w64)
- https://wiki.python.org/moin/WindowsCompilers (distutils.cfg)
- https://datatofish.com/locate-python-windows/ (Python folder search script)
- https://stackoverflow.com/questions/34135280/valueerror-unknown-ms-compiler-version-1900 (vcruntime140-dll lacking dll)
- https://bugs.python.org/file40608/patch.diff (function fix, changing from 1900 to 1916 was my guess and it worked, it enables the use of the .dll previously installed)
- https://github.com/cython/cython/issues/3405 (For the ifdef stuff, cython bug)
Install .whl files
Once you have created the .whl file, you can install it locally using pip:
pip install package.whl
Import the library in python
import pyllab
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file Ezclient-1.0.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 410.3 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a59a7765ae5f7550fa2806deff88186d2404ff8a90c82ee33dc8f6abae5ba244 |
|
MD5 | cdc33781afb692e5f37daa3accf1469d |
|
BLAKE2b-256 | bf96bdd07bbca645e72e79dd096691c4f6c0239324c826447e852a61fef1d2d9 |
File details
Details for the file Ezclient-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 850.1 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ced6d789939ebf3eeaa0dde33dd424e8bd2930028a451d316ffc58ebd140d103 |
|
MD5 | 24c3fbacdb07ba466c78ab1fc7fb9747 |
|
BLAKE2b-256 | 7fbad72c15c6dcff76359acc0a3524737e9b22a6b05af832b973172b0b4dbbfb |
File details
Details for the file Ezclient-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl
- Upload date:
- Size: 498.6 kB
- Tags: CPython 3.10, macOS 12.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 112364ca74baa68a8eda78ba08de642b3e18cb59d04e6f558bcc8fdc8fbb994f |
|
MD5 | a87a2608b828249ac3af950def1645f7 |
|
BLAKE2b-256 | 574aa89f4cb16a5e48799dc5d8cff4becb2d48ff8d99ec21f470bea9e3b12548 |
File details
Details for the file Ezclient-1.0.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 413.9 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a39c06b30f24843ddf679ed2662173c9df6749109ed471a5b3077dc2933bbc59 |
|
MD5 | f63bc64b53acfa299bb5ff9b645f15e3 |
|
BLAKE2b-256 | 667dc2cdea0c0b0e95647179e52e2ba7b2b472b8ab0d235b0b48b9cdf49dd358 |
File details
Details for the file Ezclient-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 857.0 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0989443730d8873a50614587fcfe1b8e235db69201d935fa971c4afe8cc2e857 |
|
MD5 | 1273e895b4b096a5f06c03f8337aa103 |
|
BLAKE2b-256 | 60321280e7c1a27e2bdd08c6372c9bb5f79dcf2e8a64e1a577db36434c06fbfe |
File details
Details for the file Ezclient-1.0.0-cp39-cp39-macosx_12_0_x86_64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp39-cp39-macosx_12_0_x86_64.whl
- Upload date:
- Size: 500.3 kB
- Tags: CPython 3.9, macOS 12.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 001ecf8c7d81b99a5662e0a2b84257f46427891720e56d6ba5d28e6c432d7fa6 |
|
MD5 | 459d374fd1ae333d8e40dc9ac2298c21 |
|
BLAKE2b-256 | 0e85afc2d3aced669293ea6fc22b62f8f7a3aa9f62e81814c14c2bc4a11287f8 |
File details
Details for the file Ezclient-1.0.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 411.7 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 660ff59de87062b5a7adc72648862a06a15bf0cef28b799f72b8d9505ea637aa |
|
MD5 | 45fdf5640d366c09c81e5c0bddac4dfb |
|
BLAKE2b-256 | 4b2981aa6610f50501c8554c87088518ed11c61b085d8f2b9c062f555d15691f |
File details
Details for the file Ezclient-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 921.2 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07eb48a9c4b97efde0734104dbdca170ee08b3b26be2aea77e9bd5e68467f1f2 |
|
MD5 | 4cf876ec39dec89e292e82c29fdc0367 |
|
BLAKE2b-256 | 400b93a2b6b3fa4b494baae44353bcf1a2a2df123648426283ecc8f2d563df19 |
File details
Details for the file Ezclient-1.0.0-cp38-cp38-macosx_12_0_x86_64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp38-cp38-macosx_12_0_x86_64.whl
- Upload date:
- Size: 493.2 kB
- Tags: CPython 3.8, macOS 12.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4f7f22c74abaccd42be664586c9a6e3ccb331b145a8c2a823dc018e476bc1eb |
|
MD5 | 3175ac79c3b3098a4ce4516e685bd0a4 |
|
BLAKE2b-256 | 721694fad3b71673ec3e23ad608f0b93b7086abf79e019844a95f5263a1cc0b8 |
File details
Details for the file Ezclient-1.0.0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 399.3 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 010317bf7b82b1eef310f57a71fd89a08659d98ac7b7613ec0eb98afb7e35dde |
|
MD5 | 236f0489fc9bdb2e1d9fa914b6019391 |
|
BLAKE2b-256 | e0645e050c0dcd8cb040c81d1b0d3430c6ff2b89ccd8050e69848ef313cd484b |
File details
Details for the file Ezclient-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 821.6 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27ed3d4f1ee338f3cf0f62d8eef17cbf37d4df73f9eec90b0922b09efcece9c8 |
|
MD5 | ea21570ec3c028b1d5806a48259c85df |
|
BLAKE2b-256 | ab681c5b3fc8f3e3c704db5936578a3cbca62a8cf61f110fcf4cbe71d6faed6e |
File details
Details for the file Ezclient-1.0.0-cp37-cp37m-macosx_12_0_x86_64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp37-cp37m-macosx_12_0_x86_64.whl
- Upload date:
- Size: 491.0 kB
- Tags: CPython 3.7m, macOS 12.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b84e63315de0a6c5ee74335c047f267b53c42686566133e51192cd2e20f5b9f |
|
MD5 | f6d93630b8fecdd7f144230474fa7fdb |
|
BLAKE2b-256 | 827d3843c5712fba5d047a136d80eadb665b04fc5d60b08cef47299a3bb459bc |
File details
Details for the file Ezclient-1.0.0-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 396.4 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d2862fcc875dec92d22dcfb0af2daf9daf6e610dc7806adf17fe88b530b0c51 |
|
MD5 | bd61952928e1b88ebe43426dd55b7318 |
|
BLAKE2b-256 | 553a2c033cf4425fbe197700e57a78112c4585509a092ce2ce8584d1698fcaea |
File details
Details for the file Ezclient-1.0.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 823.7 kB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1811f01560d93c95c4ceb3a68232dbe353489574fbef35340d3c0a82a6f26cc |
|
MD5 | f4e1f713b8430e5df73739c74556ee18 |
|
BLAKE2b-256 | 1b9dadd8ae64682a8fda16896d201029be9bfae05062a383c7a645c1cc37ec1c |
File details
Details for the file Ezclient-1.0.0-cp36-cp36m-macosx_12_0_x86_64.whl
.
File metadata
- Download URL: Ezclient-1.0.0-cp36-cp36m-macosx_12_0_x86_64.whl
- Upload date:
- Size: 490.3 kB
- Tags: CPython 3.6m, macOS 12.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/10.6.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f27f765abe1ae0265ef2e7553ea1d3d3995ce36ce3b4b73c7df98bc9df49da8 |
|
MD5 | acc1aa1321661de79b43c05c64627d8c |
|
BLAKE2b-256 | c3312171696d5f1c099de4840686a4c48c7517613f1e53f478d80b58e1c2eb58 |