DataForge Query — library for loading, querying, and traversing Star Citizen DataForge XML
Project description
forge-lens — DataForge Query
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c7d85dd029690ade2d4332c2cbdcec17fb1d62e74ec4d25cc2088866f129f36
|
|
| MD5 |
7af79559cca0f86fbe21807b628c02da
|
|
| BLAKE2b-256 |
8737674a27f92bafdc34b0f5d50bb0dffbd354b10ab503ff460bfe9b4d766fd6
|
Provenance
The following attestation bundles were made for forge_lens-0.2.0.tar.gz:
Publisher:
publish.yml on jonigirl/forge-lens
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forge_lens-0.2.0.tar.gz -
Subject digest:
0c7d85dd029690ade2d4332c2cbdcec17fb1d62e74ec4d25cc2088866f129f36 - Sigstore transparency entry: 1432713594
- Sigstore integration time:
-
Permalink:
jonigirl/forge-lens@2ced16c04e2d38a34804661b202c65f77d576c56 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/jonigirl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2ced16c04e2d38a34804661b202c65f77d576c56 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7f625fbd37d2a09e1906cefde2bb681cf2450756cd983477b8d3bc91d1d7562
|
|
| MD5 |
f287a24637d6f5a1b90e43f145fed392
|
|
| BLAKE2b-256 |
afb5e5f384a59dad4a4f633370e0765a58eed265aeea27bb58aae01bcb80f3f7
|
Provenance
The following attestation bundles were made for forge_lens-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on jonigirl/forge-lens
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forge_lens-0.2.0-py3-none-any.whl -
Subject digest:
c7f625fbd37d2a09e1906cefde2bb681cf2450756cd983477b8d3bc91d1d7562 - Sigstore transparency entry: 1432713745
- Sigstore integration time:
-
Permalink:
jonigirl/forge-lens@2ced16c04e2d38a34804661b202c65f77d576c56 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/jonigirl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2ced16c04e2d38a34804661b202c65f77d576c56 -
Trigger Event:
release
-
Statement type: