Skip to main content

Artifact upload tool for Sonatype Nexus 3

Project description

image image image image image

Snaut

Artifact upload tool for Sonatype Nexus 3

Alternative to curl -X POST -u user:pwd -F "pypi.asset=@mypackage.whl" ...

Supported asset types: pypi, rubygems, nuget, npm

See API docs

Installation

pip install snaut

Usage

snaut --help

snaut -r http://host/service/rest/v1/components?repository=myrepo -a pypi mypackage.whl

Environment variables or .env file can be useful in your CI/CD pipeline:

  • SNAUT_REPO
  • SNAUT_ASSET
  • SNAUT_DIRECTORY
  • SNAUT_USERNAME
  • SNAUT_PASSWORD
  • SNAUT_VERBOSE
  • SNAUT_TIMEOUT
  • SNAUT_NO_VERIFY

Example:

python setup.py sdist bdist_wheel
snaut dist/*

RAW asset type:

snaut -d /mypath dist/*
snaut -d / myfile.zip

Requirements

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

snaut-1.1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

snaut-1.1.0-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page