Compute cost of goods sold (COGS) using Cofactr.
Go to file
dependabot[bot] 314b79d68b
Bump the requests-dependencies group with 2 updates (#21)
Bumps the requests-dependencies group with 2 updates: [types-requests](https://github.com/python/typeshed) and [requests](https://github.com/psf/requests).


Updates `types-requests` from 2.32.0.20240523 to 2.32.0.20240602
- [Commits](https://github.com/python/typeshed/commits)

Updates `requests` from 2.32.0 to 2.32.3
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.32.0...v2.32.3)

---
updated-dependencies:
- dependency-name: types-requests
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: requests-dependencies
- dependency-name: requests
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: requests-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-04 12:03:54 -04:00
.github Fix to update type stubs and package together (#20) 2024-06-03 12:18:12 -04:00
.vscode Initial implementation 2024-05-08 14:25:28 -04:00
cofactr_cogs Change to sort imports (#16) 2024-05-31 19:04:19 -04:00
.gitignore Initial commit 2024-05-06 11:32:05 -04:00
Dockerfile Change search strategy to an enum and split code out to module 2024-05-24 13:24:15 -04:00
LICENSE.txt Add license (#10) 2024-05-15 17:18:50 -04:00
README.md Add link to Cofactr API docs in readme 2024-05-24 13:24:15 -04:00
action.yml Remove defaults for BOM column names 2024-05-24 13:25:53 -04:00
entrypoint.py Move code inside module 2024-05-24 14:35:40 -04:00
pyproject.toml Change to sort imports (#16) 2024-05-31 19:04:19 -04:00
requirements-test.txt Bump the requests-dependencies group with 2 updates (#21) 2024-06-04 12:03:54 -04:00
requirements.txt Bump the requests-dependencies group with 2 updates (#21) 2024-06-04 12:03:54 -04:00

README.md

Cofactr COGS

Generate cost of goods sold (COGS) in AllSpice Actions using Cofactr.

This uses the Cofactr API. See the Cofactr API docs for more information.

Usage

Add the following step to your actions:

- name: Generate COGS using Cofactr
  uses: https://hub.allspice.io/Actions/cofactr-cogs@v1
  with:
    bom_file: bom.csv
    bom_part_number_column: Part Number
    bom_manufacturer_column: Manufacturer
    bom_quantity_column: Quantity
    quantities: "1,10,100,1000"
    search_strategy: mpn_sku_mfr
    client_id: YOUR_COFACTR_CLIENT_ID
    api_key: ${{ secrets.COFACTR_API_KEY }}
    output_file: cogs.csv