Skip to main content

Interaction with the Godot Asset Library

Project description

godot-asset-library-client

CI Coverage PyPi license: AGPL v3 downloads

Interact with the Godot Asset Library

This script retrieves all the information already available in the project to upload an Godot asset into the Godot asset library.

Features

  • Smart metadata gathering: avoid duplicating information already there
  • Smart behaviour with existing pending edits
  • Smart behaviour with existing previews (still not working)
  • Shortcuts for previews hosted youtube or the repository (still not working)

Install

pip install godot-asset-library-client

Usage

  • Define GODOT_ASSET_LIB_USER and GODOT_ASSET_LIB_PASSWORD environment variables. You may use a .env file with them but consider security concerns.

  • Write a yaml metadata file with content similar to this:

# asset-metadata.yaml

asset_id: '6666666' # You will obtain this id after the first publication by hand
repo_hosting: GitHub
repo: vokimon/godot-dice-roller
branch: main
category: "1" # 2D Tools
project_license: AGPLv3
previews:

# Shortcut for youtube previews
- youtube: AD8awHLpFxs

# Shortcut for media commited in the repository
- repoimage: /screenshots/example-landscape.png
  repothumb: /screenshots/example-landscape-thumb.jpg

# If not shortcutted the preview entry should look like this
- type: image
  link: https://raw.githubusercontent.com/vokimon/godot-dice-roller/refs/heads/main/screenshots/example-portrait.png
  thumbnail: https://raw.githubusercontent.com/vokimon/godot-dice-roller/refs/heads/main/screenshots/example-portrait-thumb.jpg

# These will be concatenated and processed as description
description_files:
- README.md
- CHANGES.md

Then, from the root of your project (where project.godot resides):

godot-asset-library-client asset-metadata.yaml

Check that the metadata is correct, and then add the option --do:

godot-asset-library-client asset-metadata.yaml --do

Smart metadata guessing

If not explicitly provided, it takes most metadata from existing files in your repository so you don't have to duplicate that.

From project.godot:

  • Project name
  • Project version
  • Project description
  • Project icon
  • Godot version

From local git:

  • Commit hash

TODO

Sure you can help with those:

  • BUG: Previews are generated as json but the api returns a warning and ignores them
  • Solve the emoji problem by not removing them. The blacklist is quite limited and fragile.
  • Support first upload of a project
  • Auto-identify license available in repository
  • Auto-identify branch from current branch
  • Auto-identify repo name from git remote
  • Auto-identify repo hosting, first just check it is github
  • Support for other repo hosting services

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

godot_asset_library_client-0.1.0.tar.gz (43.7 kB view details)

Uploaded Source

Built Distribution

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

godot_asset_library_client-0.1.0-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

Details for the file godot_asset_library_client-0.1.0.tar.gz.

File metadata

File hashes

Hashes for godot_asset_library_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3596cff7b8fae53b7e9d4650e67e426aac22cca9b55252f12cd4bf5176cdf8ae
MD5 ac57e5447745189389b3eb71ac25fe73
BLAKE2b-256 626526e1d92cf89c578db641e27cb8833f6160b4466ff8f3c25a555d233005df

See more details on using hashes here.

Provenance

The following attestation bundles were made for godot_asset_library_client-0.1.0.tar.gz:

Publisher: python-publish.yml on vokimon/godot-asset-library-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file godot_asset_library_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for godot_asset_library_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c832cd1ac5febfd45aed8b29e280452e2286740b00f07ed489b13ddf9626fe4b
MD5 e9ee2da532407656b28f4e5bf9424d1e
BLAKE2b-256 4de8ebb6124ae64d3f18062b07e02d6748d7267360c0d45a1ba33ccd14af4b17

See more details on using hashes here.

Provenance

The following attestation bundles were made for godot_asset_library_client-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on vokimon/godot-asset-library-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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