Skip to main content

A small tool that crawls a directory for files matching certain wildcards and maintaining a CSV file with all of the files.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cpfr_gadb-1.0.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cpfr_gadb-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file cpfr_gadb-1.0.0.tar.gz.

File metadata

  • Download URL: cpfr_gadb-1.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for cpfr_gadb-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d23e9a10cdda76dd93f237534ddbf60998586b002cd4873259cd94eaed38116e
MD5 fa96f817b1c247597846738989777e1f
BLAKE2b-256 8ca0f06b19dc594d025cd9f873efcf46affbe3b84fe09b892c88bc894970722b

See more details on using hashes here.

File details

Details for the file cpfr_gadb-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cpfr_gadb-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for cpfr_gadb-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 451b6b8e4957a37761fb660171ff0676ca831f9324ca2c03b38354117dbb3f47
MD5 1db676ff1c101d7d0de5412c255188a7
BLAKE2b-256 cb02743edb0bd20313be2f3d8077f721f90fb4cb63f6e2c8adad3329821b37f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page