Game Asset DB (GADB)
The game asset DB script crawls your asset directory for files you specify via wildcard patterns and writes the list into a CSV file. You can also specify columns you wish to add for metadata. This way, you can easily track metadata for your assets (for example where you downloaded the asset, who the author is and what the license terms are). It is recommended to store the csv file under version control (such as git) to track changes to your assets and to run the script frequently. You can then open it up in your favorite spreadsheet application and manage the metadata for your assets or create exports for credits, license audits etc.
The script uses a yaml config file (usually 'gadb.yml', but it can be changed using the '-c' command line option). A sample config file looks like the following:
gadb.yml
db: gadb.csv
delimiter: ","
wildcards:
- assets/**/*.xcf
- assets/**/*.ogg
columns:
- URL
- Description
- Author
- Date
- License
In the example, the CSV database file is specified as 'gadb.csv'. The delimiter for the CSV im- and export is specified as ',' (which is important for languages where the comma is used for number formatting) The wildcards option specifies which files are being crawled And the columns list specifies which metadata columns should be used in the CSV.
You can either copy the gadb/__init__.py file as gadb.py to your directory and run it like this:
python gadb.py
or
python gadb.py -c myConfigFile.yml
if you want to use a custom config file name. The script then tries to read any old gadb.csv file, list the current files and merge the data from the old file into the new list of files.
The other way would be to install cpfr-gadb via PIP, so you can just run it as
gadb
or
gadb -c myConfigFile.yml
Metadata
Release files for cpfr-gadb 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cpfr_gadb-1.0.0.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cpfr_gadb-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / cpfr_gadb-1.0.0.tar.gz
| Download URL | cpfr_gadb-1.0.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d23e9a10cdda76dd93f237534ddbf60998586b002cd4873259cd94eaed38116e
|
|
BLAKE2b-256 checksum How to use checksums |
8ca0f06b19dc594d025cd9f873efcf46affbe3b84fe09b892c88bc894970722b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / cpfr_gadb-1.0.0-py3-none-any.whl
| Download URL | cpfr_gadb-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
451b6b8e4957a37761fb660171ff0676ca831f9324ca2c03b38354117dbb3f47
|
|
BLAKE2b-256 checksum How to use checksums |
cb02743edb0bd20313be2f3d8077f721f90fb4cb63f6e2c8adad3329821b37f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|