A module to download region flags (gerbs) based on ISO codes
Project description
setRegionGerbs
A Python module for downloading region-specific flags (gerbs) from the Flag CDN and saving them to a local directory.
Installation
To install this module, you can use pip:
Using pip:
If you're not using Poetry, you can install the module from PyPI using pip:
pip install setRegionGerbs
Install from source:
If you want to install directly from source, clone the repository and run:
git clone https://github.com/Tato1999/setRegionGerbs.git
cd setRegionGerbs
python3 setup.py install
from setRegionGerbs import setRegionGerbs
# Create an instance of the setRegionGerbs class
gerbs = setRegionGerbs()
# Call the makeDir method to create the necessary directory and start the download process
gerbs.makeDir()
# The flags for the specified regions will be downloaded and saved in the 'gerb_folder' directory.
gerbs.regIso = ['us', 'de', 'fr'] # ISO country codes
gerbs.formatType = 'png' # Format type for the flags (e.g., 'png', 'jpg')
gerbs.makeDir() # Start the process
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
setregiongerbs-0.1.0.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file setregiongerbs-0.1.0.tar.gz.
File metadata
- Download URL: setregiongerbs-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41ed75020a16de16bc7ef968a5720372e0657e479696d93d7ae3c24ae412fa2e
|
|
| MD5 |
f97ecc8dbe2c6f7a425dfb8101bab2de
|
|
| BLAKE2b-256 |
add1aa5196d639abe8686f2fd8f1732a77c6628245c50b4e1820eb51df9fe723
|
File details
Details for the file setRegionGerbs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: setRegionGerbs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38dcdabcd88e27d1ff609d44adf369e9cac88ba029924c6998fea43710c2ba3c
|
|
| MD5 |
73c30875f8bb6c3277add560a019044b
|
|
| BLAKE2b-256 |
06cc7455a950f076e4156f715b385f0c6fcb7029b1a99ab36872d045e5a91f13
|