All Projects → package-url → packageurl-swift

package-url / packageurl-swift

Licence: MIT license
Swift implementation of the package url spec

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to packageurl-swift

scancode.io
ScanCode.io is a server to script and automate software composition analysis pipelines with ScanPipe pipelines. This project is sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase/ Google Summer of Code, nexB and others generous sponsors!
Stars: ✭ 66 (+214.29%)
Mutual labels:  purl, package-url
cyclonedx-dotnet
Creates CycloneDX Software Bill of Materials (SBOM) from .NET Projects
Stars: ✭ 110 (+423.81%)
Mutual labels:  purl, package-url
cyclonedx-cli
CycloneDX CLI tool for SBOM analysis, merging, diffs and format conversions.
Stars: ✭ 154 (+633.33%)
Mutual labels:  purl, package-url
cyclonedx-maven-plugin
Creates CycloneDX Software Bill of Materials (SBOM) from Maven projects
Stars: ✭ 103 (+390.48%)
Mutual labels:  purl, package-url
packageurl-python
Python implementation of the package url spec
Stars: ✭ 26 (+23.81%)
Mutual labels:  purl, package-url
cyclonedx-python
Creates CycloneDX Software Bill of Materials (SBOM) from Python projects and environments.
Stars: ✭ 78 (+271.43%)
Mutual labels:  purl, package-url
cyclonedx-php-composer
Create CycloneDX Software Bill of Materials (SBOM) from PHP Composer projects
Stars: ✭ 20 (-4.76%)
Mutual labels:  purl, package-url

PackageURL

CI

Swift implementation of the package url specification.

Requirements

  • Swift 5.3+

Usage

import PackageURL

let purl: PackageURL = "pkg:swift/apple/[email protected]"
purl.type // "swift"
purl.namespace // "apple"
purl.name // "swift-argument-parser"
purl.version // "0.4.3"

purl.description // "pkg:swift/apple/[email protected]"

Installation

To use the PackageURL library in a Swift project, add the following line to the dependencies in your Package.swift file:

.package(url: "https://github.com/mattt/packageurl-swift", from: "0.0.1"),

Finally, include "PackageURL" as a dependency for your executable target:

let package = Package(
    // name, platforms, products, etc.
    dependencies: [
        .package(url: "https://github.com/mattt/packageurl-swift", from: "0.0.1"),
        // other dependencies
    ],
    targets: [
        .target(name: "<#target#>", dependencies: [
            .product(name: "PackageURL", package: "packageurl-swift"),
        ]),
        // other targets
    ]
)

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].