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 ASSET_STORE_USER and ASSET_STORE_PASSWORD environment variables. You may use a .env file with them but consider security concerns.

  • Write a yaml metadata file with content like this

asset_id: '6666666' # You will obtain this id after the first publish 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

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

  • BUG: Previews are generated as json but the api returns a warning and ignores them
  • Expressive CLI interface with subcommands and options
  • Solve the emoji problem by not removing them
  • Solution to the first upload
  • Identify license available in repository
  • Identify branch from current branch
  • Identify repo name from git remote

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.0.1.tar.gz (42.9 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.0.1-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for godot_asset_library_client-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d6603bf3a2d2575bc3028f71ce00181acd0e3ad3adbc0af9e4e35319c9631d48
MD5 0fdc9ce9426058420fc6a7e9d8f77ea3
BLAKE2b-256 73b93dea44d680b30289f9ae12a28fa823c0d406ceac02960c198335416b393b

See more details on using hashes here.

Provenance

The following attestation bundles were made for godot_asset_library_client-0.0.1.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.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for godot_asset_library_client-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fef5fed38bfb3029c32eeecb404f510e1b0782028812b76d2934e0787d23a8d1
MD5 555d3ea8cf17f353663eacdedbf616a4
BLAKE2b-256 3749e0a7e7c739fcc977f64ae57f6bfe6d295af2b0d4ff37cfd80e854a0077cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for godot_asset_library_client-0.0.1-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