Skip to main content

Pipeline materials file for static integrity calculation

GitHub Workflow Status GitHub Workflow Status Codacy Badge

Installation

pip install pipeline-materials-file

Usage

from pipeline_materials_file import Materials
from pipeline_csv.csvfile import File
from pipeline_csv.csvfile.row import Row

deftable = File(1000)
deftable.data = [
  Row.as_weld(1000),
  Row.as_thick(1010, 105),
  Row.as_weld(12000),
  Row.as_thick(12010, 110),
  Row.as_weld(24000),
  Row.as_thick(12010, 110),
  Row.as_weld(36000),
]

warnings = []
data = Materials.from_deftable(deftable, warnings)

assert len(data.data) == 2
assert not warnings

data.to_csv('materials.csv')

Development

$ git clone git@github.com:vb64/pipeline.material.git
$ cd pipeline.material
$ make setup PYTHON_BIN=/path/to/python3
$ make tests

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipeline_materials_file-1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

pipeline_materials_file-1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file pipeline_materials_file-1.0.tar.gz.

File metadata

  • Download URL: pipeline_materials_file-1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for pipeline_materials_file-1.0.tar.gz
Algorithm Hash digest
SHA256 ecc91fcb1eba0f878633f16ca2b1904e87221c597cfe541a290199b88ef55393
MD5 61c4af9545e3147d776f5a7730789470
BLAKE2b-256 e3a36776ae196e7e46f1a58bc4f1441326ed962fe9fe76cf6dedc61c72e25ee1

See more details on using hashes here.

File details

Details for the file pipeline_materials_file-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pipeline_materials_file-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fe83713b2fcfc965faa00e338fdbb3adea468796f6813e62daf440cf9cb84e6
MD5 49846c6e5a6dfef522bf8ac4ad990541
BLAKE2b-256 bea5c509acc80226dc7e4b3c795e3aa6068e4b3b86d55c56cc73c948d488c0ba

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page