Skip to main content

PyPI version

Arclight.py

These are python tools related to the Arclight project and also an extestion library for the rollnw python bindings, see the util module.

Installation

Ideally, create and activate a Python venv.

pip install arclight

To uninstall delete the venv created above.

2dilate - v0.5

2dilate is a 2da merger and xlsx<->2da/x converter. It adds a new file type, 2dx (specification below), to simplify and ease the 2da merging process.

Goals:

  • A merger that did not require using directories to separate multiple merge files.
  • A file format that is simple, compact, and familiar. Something that could ideally be distributed with custom content to ease merging or shared by community members. And also trivially implementable in any programming language/environment.
  • A simple straight forward interface, that does not require a PhD to learn.

2dx file format version 2.1

  • Header: 2DX V2.1
  • YAML Metadata: The following is optional . The YAML metadata is enclosed within two lines containing "---". If you are not familiar with YAML visit yaml.org. Please note that you can put anything in the metadata so long as it conforms to the YAML specification. Anything that 2dx doesn't understand, it ignores. Note: YAML does not like tabs, you should always uses spaces for indentation.
  • Column Labels: As 2da, note however that a 2dx file needn't have all the columns of it's parent 2da. Only the columns that are being merged need to be included. Also, new columns can be added.
  • Rows: As 2da with a couple exceptions:
    • Row numbers are significant, this is how 2dilate decides where to merge the 2dx file. Row numbers are not expected to start from 0, they should be start wherever you want to merge. They need not be contiguous or even ordered.
    • Row numbers can be unspecified by '****' in which case the row entry in the YAML metadata is used to calculate new row = 2dx row number + row. They can also be unspecified by '####' in which case the row numbers are calculated by appending rows to the 2da we are merging in to. I.e.: new row = base 2da last row + 2dx row number + 1.
    • #### is a new entry type that tells 2dilate to ignore the row entry as far as merging goes. This is very handy when you want to merge changes from a few different columns but only change some values on certain rows.

Reserved YAML Metadata Entries:

  • tlk - A table of column names and integer offsets.
  • row - Starting row for row numbers that are unspecified i.e. instead of '1', '****'.

All non-reserved YAML metadata entries are ignored. Example:

---
description: | # Custom metadata entry.
  This renames some columns and modifies some TLK entries. It's ignored by the parser.
  Exists only for user edification

tlk:
  SomeColumn: 1000 # For all non-empty column entries the TLK entry will be calculated
  Column2: 1500    # offset + column entry + 0x01000000 (Custom TLK starting point).

row: 1000 # Any unspecified row number ('****') is replaced with 1000 + 2dx row number.

date: 2015-07-04 # Custom metadata entry.  Note that 2dilate and the 2dx reader will simply
                 # ignore this.
---

Usage - 2dilate merge

usage: 2dilate merge [-h] [-o OUTPUT] [--force] input files [files ...]

positional arguments:
  input                 Directory containing 2dx files to be merged.
  files                 2da file(s).

options:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Output directory.
  --force               Force merges non-default row entries.

Usage - 2dilate convert

usage: 2dilate convert [-h] files [files ...]

positional arguments:
  files       File(s) to convert.

options:
  -h, --help  show this help message and exit

erfherder-cli - v0.1

A tool for wrangling containers.

Usage - erfherder-cli extract

usage: erfherder-cli extract [-h] [--regex] [--output OUTPUT] pattern containers [containers ...]

positional arguments:
  pattern          Search pattern
  containers       Containers to search.

options:
  -h, --help       show this help message and exit
  --regex          Use regex instead of Unix wildcard format
  --output OUTPUT  Specify the output directory (default: current directory '.').

nwscriptd

A language server for nwscript. See the README.

nwscript-lint

A wrapper around the script parser and resolver

Usage

usage: nwscript-lint [-h] [-I INCLUDE] [--no-install] [--no-user] scripts [scripts ...]

A linter for nwscript.

positional arguments:
  scripts               List of scripts to lint.

options:
  -h, --help            show this help message and exit
  -I INCLUDE, --include INCLUDE
                        Include path(s).
  --no-install          Disable loading game install files.
  --no-user             Disable user install files.

Sample

output

Metadata

Release files for arclight 0.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arclight 0.16.0
File Size Uploaded Provenance Actions
arclight-0.16.0.tar.gz 768.6 kB Without provenance Details for arclight-0.16.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for arclight 0.16.0
File Interpreter ABI Platform Actions
arclight-0.16.0-py3-none-any.whl Python 3 none any Details for arclight-0.16.0-py3-none-any.whl

Total release size: 1.5 MB

Release files / arclight-0.16.0.tar.gz

Download URL arclight-0.16.0.tar.gz
Size 768.6 kB
Tags Source
SHA-256 checksum
How to use checksums
347d985f13d15a820e6e6af036caa34ce413c28719a64453c8dba0f5bac08951
BLAKE2b-256 checksum
How to use checksums
0c63d384addb23ec0829894436734e8ba0397bcab1eb4490042d8067d97f3136
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.11.11 Linux/5.15.0-1074-azure

Release files / arclight-0.16.0-py3-none-any.whl

Download URL arclight-0.16.0-py3-none-any.whl
Size 778.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2a47ffe87b4df06d6d87ea220b2bc30c021f8b1907aac9f1e305bbef54d843f
BLAKE2b-256 checksum
How to use checksums
e345e2df03c818a748813e9b2e57662f1301971e3ac8ee03fe9d8288cddc53e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.11.11 Linux/5.15.0-1074-azure

Security for arclight 0.16.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page