blib - Banner Library
Library for drawing images of community created banners in M&B Bannerlord game.
Get started
Download the source images in img/
$ git clone -b source-img https://github.com/Niklas-Seppala/blib; \
mv blib/img img/; \
rm -rf blib
Install blib
$ pip install blib
Example usage
from blib import blib_init, Banner, Files
blib_init(out='out/', src='img/')
code = '9.116.116.1327.1327.768.788.1.0.0.316.127.143.1080.3840.764.764.1.0.0.512.116.116.240.120.764.764.1.1.90.512.116.116.240.120.644.764.1.1.90.512.116.116.240.120.524.764.1.1.90.512.116.116.240.120.884.764.1.1.90.512.116.116.240.120.1004.764.1.1.90.512.116.116.240.120.764.609.1.1.90.512.116.116.240.120.884.609.1.1.90.512.116.116.240.120.524.609.1.1.90.512.116.116.240.120.644.609.1.1.90.512.116.116.240.120.1004.609.1.1.90.512.116.116.240.120.1004.454.1.1.90.512.116.116.240.120.884.454.1.1.90.512.116.116.240.120.764.454.1.1.90.512.116.116.240.120.644.454.1.1.90.512.116.116.240.120.524.454.1.1.90.512.116.116.240.120.524.919.1.1.90.512.116.116.240.120.644.919.1.1.90.512.116.116.240.120.764.919.1.1.90.512.116.116.240.120.884.919.1.1.90.512.116.116.240.120.1004.919.1.1.90.512.116.116.240.120.1004.1074.1.1.90.512.116.116.240.120.884.1074.1.1.90.512.116.116.240.120.764.1074.1.1.90.512.116.116.240.120.644.1074.1.1.90.512.116.116.240.120.524.1074.1.1.90.424.143.116.120.120.579.684.1.0.0.424.143.116.120.120.698.684.1.0.0.424.143.116.120.120.818.684.1.0.0.424.143.116.120.120.938.684.1.0.0.424.143.116.120.120.938.526.1.0.0.424.143.116.120.120.819.526.1.0.0.424.143.116.120.120.699.526.1.0.0.424.143.116.120.120.579.526.1.0.0.424.143.116.120.120.457.526.1.0.0.424.143.116.120.120.457.684.1.0.0.424.143.116.120.120.457.841.1.0.0.424.143.116.120.120.457.996.1.0.0.424.143.116.120.120.578.996.1.0.0.424.143.116.120.120.699.996.1.0.0.424.143.116.120.120.818.996.1.0.0.424.143.116.120.120.938.996.1.0.0.424.143.116.120.120.1059.996.1.0.0.424.143.116.120.120.1059.840.1.0.0.424.143.116.120.120.938.840.1.0.0.424.143.116.120.120.818.840.1.0.0.424.143.116.120.120.698.840.1.0.0.424.143.116.120.120.578.840.1.0.0.424.143.116.120.120.1059.681.1.0.0.424.143.116.120.120.1059.525.1.0.0.424.143.116.120.120.1059.375.1.0.0.424.143.116.120.120.939.375.1.0.0.424.143.116.120.120.820.375.1.0.0.424.143.116.120.120.699.375.1.0.0.424.143.116.120.120.578.375.1.0.0.424.143.116.120.120.455.375.1.0.0.424.143.116.120.120.455.375.1.0.0.424.143.116.120.120.579.1147.1.0.0.424.143.116.120.120.699.1147.1.0.0.424.143.116.120.120.819.1147.1.0.0.424.143.116.120.120.939.1147.1.0.0.512.127.127.60.60.1186.764.1.0.0.512.127.127.60.60.1226.764.1.0.0.512.127.127.60.60.1266.764.1.0.0.512.127.127.60.60.1306.764.1.0.0.512.127.127.60.60.1346.764.1.0.0.512.127.127.60.60.1386.764.1.0.0.512.127.127.60.60.1426.764.1.0.0.512.127.127.60.60.1466.764.1.0.0.512.127.127.60.60.1186.704.1.0.0.512.127.127.60.60.1226.704.1.0.0.512.127.127.60.60.1266.704.1.0.0.512.127.127.60.60.1306.704.1.0.0.512.127.127.60.60.1346.704.1.0.0.512.127.127.60.60.1386.704.1.0.0.512.127.127.60.60.1426.704.1.0.0.512.127.127.60.60.1466.704.1.0.0.512.127.127.60.60.342.764.1.1.0.512.127.127.60.60.302.764.1.0.0.512.127.127.60.60.262.764.1.0.0.512.127.127.60.60.222.764.1.0.0.512.127.127.60.60.182.764.1.0.0.512.127.127.60.60.142.764.1.0.0.512.127.127.60.60.102.764.1.0.0.512.127.127.60.60.62.764.1.0.0.512.127.127.60.60.62.704.1.0.0.512.127.127.60.60.102.704.1.0.0.512.127.127.60.60.142.704.1.0.0.512.127.127.60.60.182.704.1.0.0.512.127.127.60.60.222.704.1.0.0.512.127.127.60.60.262.704.1.0.0.512.127.127.60.60.302.704.1.0.0.512.127.127.60.60.342.704.1.0.0'
b = Banner(code).rescale(0.5).crop(650, 500).save(Files.Format.PNG)
Metadata
Release files for blib 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| blib-0.0.3.tar.gz | 7.6 kB | Without provenance | Details for blib-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blib-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for blib-0.0.3-py3-none-any.whl |
Total release size: 18.2 kB
Release files / blib-0.0.3.tar.gz
| Download URL | blib-0.0.3.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c02063f99a42220aaf4df91a5925298ac38645949464edc7a6e50432e8e7ec64
|
|
BLAKE2b-256 checksum How to use checksums |
e7ba423b349b9d98e139d9fa623de5a361384805be6ff97d0368bddadff4bd38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / blib-0.0.3-py3-none-any.whl
| Download URL | blib-0.0.3-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8bf99d1e2161b41f5520bf300621f91de6b97c52cf7154db675ca3af026d87b5
|
|
BLAKE2b-256 checksum How to use checksums |
5786a180956a80f27429b59cb353f129f56d9ce6c8842cd483d47c432ae9b7f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Security for blib 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.