3pc-utils
3pc-utils is a Python library containing mathematical functions and operators used in composite analysis. It provides various delta operators, Kronecker delta, and utilities for managing pairs of indices for composite lamination theory computations.
Installation
Use the package manager pip to install 3pc-utils. Since the package is publicly available on PyPI, you can install it directly:
pip install 3pc-utils
API Reference
Mathematical Operators
The package provides a wide range of delta operators used in the solution of composite plate problems.
delta1(m, n, p, q) to delta92(m, n, p, q)
Calculates various delta operators based on integer indices m, n, p, q. These operators typically return a float value or zero based on parity and index equality.
kronecker(m, n)
Calculates the Kronecker delta. Returns 1 if m == n, else 0.
Utility Functions
get_odd_even(m)
Creates two lists of index pairs (i, j) for i, j in range(1, m+1).
odd: Pairs wherei + jis odd.even: Pairs wherei + jis even.
get_pairs(m)
Creates a list of all possible index pairs (i, j) for i, j in range(1, m+1).
Usage Examples
Using Delta Operators
from utils.utils import delta1, kronecker
# Calculate delta1 operator
val = delta1(1, 2, 3, 4)
print(f"Delta1 value: {val}")
# Calculate kronecker delta
k = kronecker(1, 1) # returns 1
print(f"Kronecker(1, 1): {k}")
Managing Index Pairs
from utils.utils import get_odd_even, get_pairs
# Get all pairs for a 4x4 system
all_pairs = get_pairs(4)
# Separate into odd and even combinations
odd_pairs, even_pairs = get_odd_even(4)
Commands
The package provides a command-line interface entry point. After installing, you can run the main application using:
utils
(Currently, this serves as an entry point defined in utils.main:main)
Metadata
Release files for 3pc-utils 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| 3pc_utils-1.0.0.tar.gz | 4.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 3pc_utils-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / 3pc_utils-1.0.0.tar.gz
| Download URL | 3pc_utils-1.0.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d66f5ec9e78b65538bcc46bb346e4c9188bebb8b4302c7c68e29415e9a755cb
|
|
BLAKE2b-256 checksum How to use checksums |
9ff2d115d0786fddc5019b0b632d177b5b64b4127190ac069a1dded1b840e2ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / 3pc_utils-1.0.0-py3-none-any.whl
| Download URL | 3pc_utils-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68f8a0d396ecdf3157d89b4105d07643178dc8235d37fa33c6341e76190ee74d
|
|
BLAKE2b-256 checksum How to use checksums |
c6ce407bc47af9faee47885638fee7ad3c0ad995c972c18dea6772990cf036bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Security for 3pc-utils 1.0.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.