Skip to main content

DataForge Query — library for loading, querying, and traversing Star Citizen DataForge XML

Project description

forge-lens — DataForge Query

PyPI GitHub

Python library for loading, querying, and traversing Star Citizen DataForge XML records extracted by unp4k/unforge.


Install

pip install forge-lens

Quickstart

from forge_lens import DataForgeLoader, Query, Graph

# Load all extracted DataForge XML files
loader = DataForgeLoader(r"C:\SCData\Data\Libs\Foundry\Records")
loader.load()

# Query records by type and attribute
results = (
    Query(loader)
    .of_type("SItemCooler")
    .where("__name", "COOLER_S01_INDUSTRIAL_FLEXI")
    .all()
)

for elem in results:
    print(elem.attrib)

# Build UUID graph for relationship traversal
graph = Graph(loader)
graph.build()

# Resolve a UUID to a display name
name = graph.resolve_name("some-uuid-here")

# Find all blueprints that craft a given entity UUID
blueprints = graph.blueprints_producing("entity-uuid-here")

# Find all reward pools that drop a given blueprint UUID
pools = graph.pools_containing("blueprint-uuid-here")

# Craft tree — nested dict of ingredients and what it produces
tree = graph.crafting_tree("blueprint-uuid-here")

# Reward pool — sorted list of item names in a pool
names = graph.reward_pool("pool-uuid-here")

# Fingerprint — detect when game data has changed after a patch
fp = loader.fingerprint()  # 12-char hex string; compare across sessions

Legal Notice

Star Citizen and all associated game data are the property of Cloud Imperium Rights LLC. forge-lens only reads files from your own licensed installation and does not redistribute any RSI or CIG content. This is an unofficial fan tool, not affiliated with or endorsed by Cloud Imperium Games.


Links

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

forge_lens-0.2.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

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

forge_lens-0.2.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file forge_lens-0.2.0.tar.gz.

File metadata

  • Download URL: forge_lens-0.2.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for forge_lens-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0c7d85dd029690ade2d4332c2cbdcec17fb1d62e74ec4d25cc2088866f129f36
MD5 7af79559cca0f86fbe21807b628c02da
BLAKE2b-256 8737674a27f92bafdc34b0f5d50bb0dffbd354b10ab503ff460bfe9b4d766fd6

See more details on using hashes here.

Provenance

The following attestation bundles were made for forge_lens-0.2.0.tar.gz:

Publisher: publish.yml on jonigirl/forge-lens

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

File details

Details for the file forge_lens-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: forge_lens-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for forge_lens-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7f625fbd37d2a09e1906cefde2bb681cf2450756cd983477b8d3bc91d1d7562
MD5 f287a24637d6f5a1b90e43f145fed392
BLAKE2b-256 afb5e5f384a59dad4a4f633370e0765a58eed265aeea27bb58aae01bcb80f3f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for forge_lens-0.2.0-py3-none-any.whl:

Publisher: publish.yml on jonigirl/forge-lens

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