Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.rst

aboutcode.federatedcode

license build PyPI - Version

This is a CLI and library of FederatedCode client utilities for fetching and subscribing to package metadata, and utilities for managing activity streams.

Installation

To install the FederatedCode client, use the following command:

pip install aboutcode.federatedcode

CLI Usage

Use the federatedcode CLI to discover and fetch scans using the PURL:

# Display the general help for federatedcode
federatedcode --help

# Display help for a specific command
federatedcode [command] --help

Example

Discover a PURL in the FederatedCode AP Server:

❯ federatedcode discover pkg:npm/%40angular/animation
http://<Your-FederatedCode-Host>/purls/@pkg:npm/%2540angular/animation

Library Usage

Use the client module to fetch scan results, subscribe to packages, or discover packages in the AP server.

from aboutcode.federatedcode import client

Use the contrib module to get the Django mixin and various utilities to manage activity streams.

from aboutcode.federatedcode.contrib import django

License

Copyright (c) nexB Inc. and others. All rights reserved.

SPDX-License-Identifier: Apache-2.0

See https://aboutcode.org for more information about AboutCode OSS projects.

You may not use this software except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.