Skip to main content

Transportation Infrastructure Data Toolbox

Project description

PavData (Python)

PavData is an open-source library for storing, validating and exploring asphalt pavement laboratory data. The information is organized in a relational model of eight entities — samples, binders, aggregates, mixtures and their tests, plus the references of origin — and stored in the open .pavdata format, based on JSON.

This is the Python implementation. There is also an equivalent R package that reads and writes the same format.

Installation

pip install pavdata

For the plotting functions, also install matplotlib:

pip install matplotlib

Usage

import pavdata

# Create an object
b = pavdata.pav_new("binder", name="CAP 50/70", binder_type="CAP 50/70",
                    penetration_mm=52, viscosity_135c_cp=305)

# Validate
pavdata.pav_check(b)

# Write and read
pavdata.pav_write(b, "my_data.pavdata")
objects = pavdata.pav_read("my_data.pavdata")

The package includes a dataset of 296 real samples, accessible through the SAMPLE_DATA_PATH constant:

import pavdata
data = pavdata.pav_read(pavdata.SAMPLE_DATA_PATH)

License

The software is distributed under the MIT license. The example data that ships with the library is distributed under the CC-BY-4.0 license.

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

pavdata-0.1.0.tar.gz (85.4 kB view details)

Uploaded Source

Built Distribution

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

pavdata-0.1.0-py3-none-any.whl (90.8 kB view details)

Uploaded Python 3

File details

Details for the file pavdata-0.1.0.tar.gz.

File metadata

  • Download URL: pavdata-0.1.0.tar.gz
  • Upload date:
  • Size: 85.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pavdata-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bc379f92d07ee2c49d016517997dfeecee4eab330899c0e6f1da549ee0edec29
MD5 74494c1d5edd4f89b8423fc6a367c66a
BLAKE2b-256 52436e907271bc630e67faf2d737ed8ef100b64c919f39f5e0a2c882ff7f39a0

See more details on using hashes here.

File details

Details for the file pavdata-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pavdata-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 90.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pavdata-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1507da3bc6f2d83e6b2a239d9eb3d84b8e8d3400a24669039d6971e6c3307b31
MD5 bcce04731f2dbc2ab0936f5ccfa3adda
BLAKE2b-256 e6e94a497e9dca4e5b0c2f3cacb6fe494eb2fcc85cb31216017c0225979a4a28

See more details on using hashes here.

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